AptlyStar

Google Translate

Translate text using Google Cloud Translation

Instructions d'utilisation

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

Outils

google_translate_text

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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiGoogle Cloud API key with Cloud Translation API enabled
textstringOuiThe text to translate
targetstringOuiTarget language code (e.g., "es", "fr", "de", "ja")
sourcestringNonSource language code. If omitted, the API will auto-detect the source language.
formatstringNonFormat of the text: "text" for plain text, "html" for HTML content
pricingcustomNonNo description
metadatastringNonNo description
rateLimitstringNonNo description

Sortie

ParamètreTypeDescription
translatedTextstringThe translated text
detectedSourceLanguagestringThe detected source language code (if source was not specified)

google_translate_detect

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

Entrée

ParamètreTypeObligatoireDescription
apiKeystringOuiGoogle Cloud API key with Cloud Translation API enabled
textstringOuiThe text to detect the language of
pricingcustomNonNo description
metadatastringNonNo description
rateLimitstringNonNo description

Sortie

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

On this page