Skip to main content

Microsoft Translator Blog

Build Your Own Translation App with Help from Translator on GitHub

Do you want to add automatic translation to your app but don’t know exactly how to get started? No problem, we’ve got you covered. We have plenty of examples of using the Microsoft Translator API in various coding languages available on GitHub. Pair that with our API documentation on MSDN and our customer support forums, and you’ve got everything you need to add translation to your web or mobile app.

Currently, Microsoft Translator on GitHub hosts demonstrator apps in Python and C#, as well as examples for using Microsoft Translator in PowerShell, Node JS, and Bash.


PythonConsole is a command line application in a Visual Studio solution. It demonstrates how to get an access token and how to use the text-to-text translator API to translate from one language to another. The app only offers translation for 5 languages, but the Microsoft Translator service offers translations for 50+ languages.


C#/WPF is a C# application designed using WPF to demonstrate how to use the Microsoft Translator API. The app gives examples for:

  • How to get an access token
  • How to get the list of supported languages for translation from the service
  • How to get the list of supported languages for text-to-speech from the service
  • How to do text-to-text translation
  • How to do text to text-to-speech of a translation


Document Translator is written in C# and compiled in Visual Studio 2013. The Document Translator translates Microsoft Office, plain text, HTML, and PDF files from any of the 50+ languages supported by the Microsoft Translator web service, to any other of these 50+ languages. Document Translator uses your own credentials and subscription to perform the service and will make use of any translation stored in the Collaborative Translations Framework, as well as making use of a custom MT system trained via the Microsoft Translator Hub.

Access to the Microsoft Translator API is offered for free for the first 2 million characters per month. You can sign up for your free subscription at to develop, test, and launch your new app.

Have fun coding!

Learn More: