Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.35 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.35 KB

Auto Translate Azure Blobs

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.

Supported formats

  • HTML files.
  • Text files.
  • Word files (soon).

Challenges

  • Maintain the structure of HTML document.
  • Address the API Limit of 5000 charcters per call, so we need to slice the content.

Requirments

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": "",

Known Limitations

  • Areas of improvments for handling complex and sizable HTML documents.
  • One target language. There is a posibility to fan-out to many target languages.

Credits

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

Porting to .Net standard 3.0

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/