Translate text
translate_textTranslate supplied text into one of Poly-Glot's 38 supported languages while aiming to preserve meaning, names, formatting, code, and URLs. Use for translation rather than cultural adaptation; use localize_text when audience, tone, or regional conventions must change. Specify required targetLanguage (language name or code, e.g. 'es'); set sourceLanguage to 'auto' to detect the source automatically. Returns JSON containing translated text, targetLanguage, provider, and model; quality can vary with idiom and context. Requires an active trial or Pro; text is processed by the configured translation provider.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Nonempty original text to translate, including any formatting to preserve. | |
| sourceLanguage | No | Original language name or code, such as 'en' or 'English'; 'auto' (default) asks the provider to detect it. | auto |
| targetLanguage | Yes | Required desired output language name or code among the 38 supported, e.g. 'Spanish' or 'es'. |