Skip to main content Home Business intelligence Community, Social, and Gaming Customer Support Education Internal Communications Live and Remote Communications Readiness and Training Web Localization and Ecommerce More Solutions Text Translation Document Translation Custom Translator Translator Apps Office SharePoint Yammer Visual Studio Speech Translation Computer Vision Conversational Language Understanding More Languages Blog FAQ Text Translation Document Translation Custom Translator Other Cognitive Services Support Contact Confidentiality Attribution Machine Translation Customers Partners Partner Program Community Partners Try for free now Microsoft 365 Azure Copilot Windows Surface XBOX Deals Small Business Support Windows Apps Outlook OneDrive Microsoft Teams OneNote Microsoft Edge Moving from Skype to Teams Computers Shop XBOX Accessories VR & mixed reality Certified Refurbished Trade-in for cash XBOX Game Pass Ultimate PC Game Pass XBOX games PC games Microsoft AI Microsoft Security Dynamics 365 Microsoft 365 for business Microsoft Power Platform Windows 365 Small Business Digital Sovereignty Azure Microsoft Developer Microsoft Learn Support for AI marketplace apps Microsoft Tech Community Microsoft Marketplace Software companies Visual Studio Microsoft Rewards Free downloads & security Education Gift cards Licensing Unlocked stories View Sitemap

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.

Python

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#

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 www.aka.ms/TranslatorADM to develop, test, and launch your new app.

Have fun coding!

Learn More:


English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Contact us Privacy Manage cookies Terms of use Trademarks About our ads