AptlyStar

Google Translate

Translate text using Google Cloud Translation

使用方法

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

ツール

google_translate_text

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

入力

パラメータ型必須説明
apiKeystringはいGoogle Cloud API key with Cloud Translation API enabled
textstringはいThe text to translate
targetstringはいTarget language code (e.g., "es", "fr", "de", "ja")
sourcestringいいえSource language code. If omitted, the API will auto-detect the source language.
formatstringいいえFormat of the text: "text" for plain text, "html" for HTML content
pricingcustomいいえNo description
metadatastringいいえNo description
rateLimitstringいいえNo description

出力

パラメータ型説明
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.

入力

パラメータ型必須説明
apiKeystringはいGoogle Cloud API key with Cloud Translation API enabled
textstringはいThe text to detect the language of
pricingcustomいいえNo description
metadatastringいいえNo description
rateLimitstringいいえNo description

出力

パラメータ型説明
languagestringThe detected language code (e.g., "en", "es", "fr")
confidencenumberConfidence score of the detection

On this page