Lodol Docs

Google Translate

API actions for the Google Translate integration.

Google Translate

Translate text between languages using Google Translate.


Translate text

Translate text from one language to another using Google Translate.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to translate
target_languagestringYesThe language to translate the text into.
source_languagestringNoThe language the original text is written in. Leave on 'Detect automatically' to let Google figure it out.
formatstringNoWhether the original text is plain text or contains HTML (web page content).

Response

{
  "detected_source_language": "es",
  "model": "nmt",
  "translated_text": "Hello, how are you?"
}

On this page