Google Translate

Google Cloud Translation translates text and detects its source language. Provide text and a target language for translation, or use language detection when the source language is unknown.

Usage Instructions

Translate and detect languages using the Google Cloud Translation API. Supports auto-detection of the source language.

Actions

Google Translate

Translate text between languages using the Google Cloud Translation API. Supports auto-detection of the source language.

Input

ParameterTypeRequiredDescription
apiKeystringYesGoogle Cloud API key with Cloud Translation API enabled
textstringYesThe text to translate
targetstringYesTarget language code (e.g., "es", "fr", "de", "ja")
sourcestringNoSource language code. If omitted, the API will auto-detect the source language.
formatstringNoFormat of the text: "text" for plain text, "html" for HTML content

Output

ParameterTypeDescription
translatedTextstringThe translated text
detectedSourceLanguagestringThe detected source language code (if source was not specified)

Google Translate Detect Language

Detect the language of text using the Google Cloud Translation API.

Input

ParameterTypeRequiredDescription
apiKeystringYesGoogle Cloud API key with Cloud Translation API enabled
textstringYesThe text to detect the language of

Output

ParameterTypeDescription
languagestringThe detected language code (e.g., "en", "es", "fr")
confidencenumberConfidence score of the detection