Codementor Events

Use the Google Translate API for Free

Published Jan 28, 2019

The official Google Translate API is available for businesses only but you can use Google Apps Script to create your own Google Language Translation API without having to pay the enterprise license fee.

The text can be translated from one language to another using the LanguageApp service or, if you run out of quota, you can make a call to the secret translate.googleapis.com API that is internally used by the Google Translate extension for Chrome and requires no authentication.

You can publish the Google script and deploy it as a web app with parameters for source and target languages and the text query. You can specify any ISO language pair or say “auto” and the Google Translation API will auto detect the language of the source text.

Start w```
link = 'https://translate.googleapis.com/translate_a/single' .'?client=gtx&sl=auto&tl=ru&dt=t&q='.urlencode(text_part);
result=gocurl(result = go_curl(link);

riting here...
Discover and read more posts from Евгения Гуляева
get started
post commentsBe the first to share your opinion
orborneee
7 months ago

Anyway, Google Translate is also a product that I regularly use to write content for Super Mario

Rob Chaves
2 years ago

Google Translate makes mistakes and can be quite inaccurate at times. However, in general, it performs admirably. I frequently use it for everyday translations. However, for translation marathi to english, I use a trusted source. Recently, this assisted me greatly in completing a difficult task with high quality and on time.

Show more replies