Translate text
translate_textTranslates text (a sentence, a message or a whole document's text, up to 10,000 characters) into another language. About 100 languages, names and numbers kept. Detects the source language when you don't give it. Use when: you need to translate a text or document into English, French, Dutch, German, Spanish, Chinese… Paste the document's text in "text". Example: {"text":"Hello, how are you?","target_lang":"fr"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate (up to 10,000 characters; paragraphs are kept) | |
| source_lang | No | Language of the text (two-letter code). Optional: detected if missing. | |
| target_lang | Yes | Language to translate into: two-letter code (fr, nl, en, de, es, it, pt, ja, zh, ar…) |