AptlyStar

Google Translate

Translate text using Google Cloud Translation

Nutzungsanweisungen

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

Tools

google_translate_text

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

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaGoogle Cloud API key with Cloud Translation API enabled
textstringJaThe text to translate
targetstringJaTarget language code (e.g., "es", "fr", "de", "ja")
sourcestringNeinSource language code. If omitted, the API will auto-detect the source language.
formatstringNeinFormat of the text: "text" for plain text, "html" for HTML content
pricingcustomNeinNo description
metadatastringNeinNo description
rateLimitstringNeinNo description

Ausgabe

ParameterTypBeschreibung
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.

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaGoogle Cloud API key with Cloud Translation API enabled
textstringJaThe text to detect the language of
pricingcustomNeinNo description
metadatastringNeinNo description
rateLimitstringNeinNo description

Ausgabe

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

On this page