Actions4
- Machine Translation Actions
- Translation Actions
- File Actions
Machine Translation → Translate File via Machine Translation
AI-generatedSummary
Translate a binary file using Smartling's machine translation service into one or more target locales.
Inputs
- Binary Property (required) — Name of the binary property containing the file to translate.
- File Type — Type of the file to translate (e.g., HTML, JSON). Leave as Auto-Detect to determine automatically.
- Source Locale Name or ID — Language code of the source file (e.g., 'en'). Leave blank for auto-detection.
- Target Locale Names or IDs (required) — Language codes of the target locales to translate the file into (e.g., 'es' for Spanish).
Output shape
A single item with JSON metadata and binary data containing the translated file or archive.
If multiple target locales are specified, the node returns a ZIP archive containing all translated files. The JSON output includes metadata about the translation job and file. If the translation is still processing, the returned JSON includes status and identifiers to check or download later.
Examples
Example 1: Translate a Word document from English to Spanish and French
Set Binary Property to the binary file, select File Type as Microsoft Word, set Source Locale 'en', and Target Locales as 'es' and 'fr'.