This is an Azure Function to Auto Translate HTML and Text files once they arrive in an Azure Blob container. Then store the translated one in a different container.
- HTML files.
- Text files.
- Word files (soon).
- Maintain the structure of HTML document.
- Address the API Limit of 5000 charcters per call, so we need to slice the content.
You need to provide the following configuration or app settings either from the portal or by creating "local.settings.json" to test locally.
"AzureWebJobsStorage": "",
"FromLang": "Auto-Detect",
"ToLang": "Arabic",
"AzureTranslateKey": "",
- Areas of improvments for handling complex and sizable HTML documents.
- One target language. There is a posibility to fan-out to many target languages.
I ported the "TranslationAssistant.TranslationServices.Core" from "DocumentTranslator" to dotnet standard to be able to use it in Functions runtime.
DocumentTranslator: https://github.com/MicrosoftTranslator/DocumentTranslator
https://devblogs.microsoft.com/dotnet/how-to-port-desktop-applications-to-net-core-3-0/ https://devblogs.microsoft.com/dotnet/are-your-windows-forms-and-wpf-applications-ready-for-net-core-3-0/