Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Translate API

Hi,

I would like to use Google Translate API in plain javascript.

As far as I understand from this guide, the supported languages are : 

  • Go
  • Java
  • Node.js
  • Python

... and some additional languages :

  • C#
  • Php
  • Ruby

Does translate API is supported for Javascript as well? If so, where is the guide?

Thanks in advance.

Solved Solved
0 3 1,281
1 ACCEPTED SOLUTION

Here is a third-party solution you may find useful [1]. You may also report it to the Public Issue Tracker (PIT) [2]  as well as feature request.

[1]  https://github.com/topics/javascript-translate

[2] https://cloud.google.com/support/docs/issue-trackers

View solution in original post

3 REPLIES 3

I could not find any official documentation/tutorial on Google Translate API for plain JavaScript. It looks like the previously used "Google Transliterate API" which was officially deprecated as of May 26, 2011 had support for plain JavaScript [1].
The client libraries are currently available for seven popular programming languages – C#, Go, Java, Node.js, PHP, Python, and Ruby.

However, the following un-official link [2] (July 20, 2021) may help.

[1] https://developers.google.com/transliterate/v1/getting_started
[2] https://rapidapi.com/blog/google-translate-api-tutorial/

Thanks for the reply sf. 

How can it be that there is not documentation for one of the most popular programming languages such as Javascript?

Here is a third-party solution you may find useful [1]. You may also report it to the Public Issue Tracker (PIT) [2]  as well as feature request.

[1]  https://github.com/topics/javascript-translate

[2] https://cloud.google.com/support/docs/issue-trackers