Skip to content

This is an Azure Function to Auto Translate files once it arrives in an Azure Blob container. Then store the translated one in a different container

Notifications You must be signed in to change notification settings

saffiali/AutoTranslateBlobs

Repository files navigation

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/

About

This is an Azure Function to Auto Translate files once it arrives in an Azure Blob container. Then store the translated one in a different container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published