AptlyStar

Google Translate

Translate text using Google Cloud Translation

Instrucciones de uso

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

Herramientas

google_translate_text

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

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíGoogle Cloud API key with Cloud Translation API enabled
textstringSíThe text to translate
targetstringSíTarget 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
pricingcustomNoNo description
metadatastringNoNo description
rateLimitstringNoNo description

Salida

ParámetroTipoDescripción
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.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíGoogle Cloud API key with Cloud Translation API enabled
textstringSíThe text to detect the language of
pricingcustomNoNo description
metadatastringNoNo description
rateLimitstringNoNo description

Salida

ParámetroTipoDescripción
languagestringThe detected language code (e.g., "en", "es", "fr")
confidencenumberConfidence score of the detection

On this page