Smartling icon

Smartling

Interact with Smartling translation management

Machine Translation → Translate Text via Machine Translation

AI-generated

Summary

Translate one or multiple text strings from a source language to a target language using Smartling's machine translation.

Inputs

  • Source Locale Name or ID — Language code of the text to translate (e.g., "en" for English). Select "Auto-Detect" to detect automatically, or specify via expression.
  • Target Locale Name or ID (required) — Language code for translation output (e.g., "es" for Spanish). Choose from the list or specify via expression.
  • Text to Translate (required) — Text string(s) to translate. For multiple strings, separate each with a newline.

Output shape

a single JSON object containing sourceLocaleId, targetLocaleId, a dictionary of source strings keyed as string_1, string_2, etc., and a dictionary of translated strings keyed the same way

Maximum 1000 text items allowed, each up to 65536 characters. If source locale is omitted or blank, the source language is auto-detected using the first text string. Throws error if translation is empty or if input limits are exceeded.

Examples

Example 1: Translate English greeting and farewell texts to Spanish

sourceLocale: 'en', targetLocale: 'es', sourceText: 'Hello
Goodbye'

Links

Discussion