Google Translate

App · Translation · 2 actions

Translate text between languages and detect the language of text using Google Translate.

Detect language

Detect which language a piece of text is written in using Google Translate.

Inputs

TexttexttextRequired
The text whose language you want to detect.

Outputs

confidencenumber
Google's confidence in the detection, from 0 to 1
is_reliabletrue/false
Whether Google considers the detection reliable
languagetext
The detected language as a Google Translate language code (e.g. 'es')
language_nametext
The friendly name of the detected language (e.g. 'Spanish')
Example output
{
  "confidence": 0.98,
  "is_reliable": true,
  "language": "es",
  "language_name": "Spanish"
}

Translate text

Translate text from one language to another using Google Translate.

Inputs

TexttexttextRequired
The text to translate.
Translate intotarget_languagetextRequired
The language to translate the text into.One of: en (English (en)), es (Spanish (es)), fr (French (fr)), de (German (de)), it (Italian (it)), pt (Portuguese (pt)), nl (Dutch (nl)), ru (Russian (ru)), zh-CN (Chinese, Simplified (zh-CN)), zh-TW (Chinese, Traditional (zh-TW)), and 20 more.
Original languagesource_languagetext
The language the original text is written in. Leave on 'Detect automatically' to let Google figure it out.One of: "" (Detect automatically), en (English (en)), es (Spanish (es)), fr (French (fr)), de (German (de)), it (Italian (it)), pt (Portuguese (pt)), nl (Dutch (nl)), ru (Russian (ru)), zh-CN (Chinese, Simplified (zh-CN)), and 21 more.

Outputs

detected_source_languagetext
The detected source language code (when the original language was auto-detected)
modeltext
The model used for translation
translated_texttext
The translated text
Example output
{
  "detected_source_language": "en",
  "model": "nmt",
  "translated_text": "Hola, \u00bfc\u00f3mo est\u00e1s?"
}

On this page