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.
入力
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
apiKey | string | はい | Google Cloud API key with Cloud Translation API enabled |
text | string | はい | The text to translate |
target | string | はい | Target language code (e.g., "es", "fr", "de", "ja") |
source | string | いいえ | Source language code. If omitted, the API will auto-detect the source language. |
format | string | いいえ | Format of the text: "text" for plain text, "html" for HTML content |
pricing | custom | いいえ | No description |
metadata | string | いいえ | No description |
rateLimit | string | いいえ | No description |
出力
| パラメータ | 型 | 説明 |
|---|---|---|
translatedText | string | The translated text |
detectedSourceLanguage | string | The detected source language code (if source was not specified) |
google_translate_detect
Detect the language of text using the Google Cloud Translation API.
入力
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
apiKey | string | はい | Google Cloud API key with Cloud Translation API enabled |
text | string | はい | The text to detect the language of |
pricing | custom | いいえ | No description |
metadata | string | いいえ | No description |
rateLimit | string | いいえ | No description |
出力
| パラメータ | 型 | 説明 |
|---|---|---|
language | string | The detected language code (e.g., "en", "es", "fr") |
confidence | number | Confidence score of the detection |