Insights from Our Experts

Blog image

Python Text Translator using Bing API

Author Image

Renjith Raj,Chief Technology Officer

A Django Based system that will help you to translate the content from english to any other language using Microsoft Bing Translation Service

Checkout the translator plugin from github.

Sample Usage 

Sign in to Bing to get the client id and client secret form here.

You can find out the language code from here.

 

from translator import BingTranslator

translator = BingTranslator(CLIENT_ID,CLIENT_SECRET)
translated = translator.translate(TEXT_STRING,FROM_LANG_CODE,TO_LANG_CODE)