Curate Azure updates topics and translation it as Markdown file.
Currentrly, distination language is Japanese only. (Welcome multi-language support update Pull request :) )
- Fast parallel processes using Durable Functions.
- Selectable transration service.
- DeepL (Default)
- Azure Cognitive Service Translator
-
Clone or ZIP download this repo to your machine.
-
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.)
- The Azure Cognitive Services Translator's regsion should set
-
Publish AzureUpdateTranslator.Server project to Azure Functions.
- Move to the directory where you cloned the sample code.
cd /path/to/AzureUpdateTranslator/AzureUpdateTranslator.Server
- Log in to Azure.
az login
- 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>
- 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
- 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>
- Deploy the function to Azure.
func azure functionapp publish <function app name>
- Move to the directory where you cloned the sample code.
-
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
- ExclusionTags : Exclusion tags e.g.
-
Set Azure Functions endpoint URL to AzureUpdateTranslator.Client code.
-
Bluild AzureUpdateTranslator.Client project.
-
Make URLs file. (Sample)
-
Run application in build artifacts directory.
Basic usage
AzureUpdateTranslator.exe -f {Target urls file path}.csv
-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, -
Get outputfile (Sample) and use it as you like!
MIT