Git Product home page Git Product logo

azureupdatetranslator's Introduction

AzureUpdateTranslator

What is this?

Curate Azure updates topics and translation it as Markdown file.

Currentrly, distination language is Japanese only. (Welcome multi-language support update Pull request :) )

Feature

  • Fast parallel processes using Durable Functions.
  • Selectable transration service.
    • DeepL (Default)
    • Azure Cognitive Service Translator

Architecture

Architecture

Environmental construction

  1. Clone or ZIP download this repo to your machine.

  2. Create Azure Cognitive Services Translator and DeepL API.

    • The Azure Cognitive Services Translator's regsion should set global. (Specific regions are not supported currently)
    • If it is guaranteed that only one service will be used, there is no need to create both resources. (The environment variable is registered with an empty string.)
  3. Publish AzureUpdateTranslator.Server project to Azure Functions.

    1. Move to the directory where you cloned the sample code.
      cd /path/to/AzureUpdateTranslator/AzureUpdateTranslator.Server
      
    2. Log in to Azure.
      az login
      
    3. Create a resource group in any region. You can name the resource group whatever you like.
      az group create --name <resource group name> --location <region>
      
    4. Within the resource group and region you created in step 3, create a Blob Storage. You can name the storage account whatever you like.
      az storage account create --name <storage account name> --resource-group <resource group name> --location <region> --sku Standard_LRS --allow-blob-public-access false
      
    5. Create a function app in Azure. You can name the function app whatever you like.
      az functionapp create --resource-group <resource group name> --consumption-plan-location <region> --runtime dotnet --functions-version 4 --name <function app name> --storage-account <storage account name>
      
    6. Deploy the function to Azure.
      func azure functionapp publish <function app name>
      
  4. Set Azure Functions environment variable.

    • ExclusionTags : Exclusion tags e.g. Features,Services
    • DeeplAuthKey : DeepL API auth key.
    • CognitiveAuthKey : Azure Cognitive Services Translation subscription key.
    • FUNCTIONS_WORKER_RUNTIME : dotnet
  5. Set Azure Functions endpoint URL to AzureUpdateTranslator.Client code.

  6. Bluild AzureUpdateTranslator.Client project.

Client application usage

  1. Make URLs file. (Sample)

  2. Run application in build artifacts directory.

    Basic usage

    AzureUpdateTranslator.exe -f {Target urls file path}.csv
    

    Args

    • -f "xxx.cxv" / --file "xxx.cxv" : Required. Path to URLs file.
    • -c / --cognitive : Using Azure Cognitive translation service instead of DeepL.
    • -n / --no-translate : No translate only curate.

    * No translation. when you use -c and -n simultaneously,

  3. Get outputfile (Sample) and use it as you like!

License

MIT

azureupdatetranslator's People

Contributors

07jp27 avatar marumaru1019 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.