Document Translation

Translate Office documents, PDFs, InDesign files, structured text and plain text through your translation memory, with the layout kept.

Document Translation turns a file into the same file in another language: the text changes, and the layout, styles and structure stay as they were. Every translation runs through one of your translation memories, so earlier translations are reused and new ones are stored back. One translation is one file in one target language.

Upload the file

Files up to 25 MB go in the file part of the next step, or pick one from your organization's assets with assetId. For a Word, PowerPoint, Excel, PDF or InDesign file up to 500 MB, call Get an upload URL, PUT the file to uploadUrl with exactly the size you declared, and keep the objectKey.

Start the translation

Call Translate a document as multipart/form-data with format, sourceLanguage, targetLanguage, tmId, suite and the source (file, assetId, objectKey, or sourceText for plain text). You get the translation id back straight away. Credits are charged at this point. For another language, call it again with the same source.

Track it

Poll Get a translation until status is DONE or FAILED. Every 5 to 30 seconds is enough. For plain text, poll Get a text result instead: it returns the translated text too.

Download the result

Call Download the translated file to get the file in its original format, or save it to your assets.

Formats

Set format when you translate. Prices per source word, from the same rate table that charges you, are on Translate a document; your organization may have its own rates.

formatFilesNotes
DOCXWord .docxBold, colours and fonts inside a paragraph are kept. Up to 500 MB with an upload URL.
PPTXPowerPoint .pptxAs Word.
XLSXExcel .xlsxSend translateFirstRow=false to leave column headings as they are.
CSV.csvChoose the columns to translate with translateColumns; only those are charged.
PDF.pdfText is replaced in place; images and graphics are untouched. Not every script is supported as a target.
IDMLInDesign .idmlExport .indd files to IDML first.
JSON, XML, HTML, XLIFF.json, .xml, .html, .xliff / .xlfOnly the text values are translated; keys, tags and attributes stay. Up to 25 MB.
TEXTPlain text, or a .txt fileUp to 10,000 characters.

Languages

Languages are the codes your translation memory uses, such as en-US or hi-IN (BCP 47). Send a sourceLanguage and a targetLanguage your translation memory has. Each translation has one target language.

Statuses

statusMeaning
INPROGRESSRunning.
DONEFinished. Download the result.
FAILEDStopped with an error; metadata says why. Retry it on the same id.

Older translations may also show TODO or INIT.

Many files at once

Translate a batch of files takes up to 20 files of one format into one language. Translate a folder translates every matching file in a folder of your assets into up to 10 languages and saves the results next to the folder; preview it first to see the files and the price. Both return batches you follow with Get a batch. These endpoints must be turned on for your organization; otherwise they return 403.

Review and edit

List segments shows the source and translation side by side, segment by segment. Correct a segment with Edit a segment, mark segments verified or approved with Set review status, and send your changes to the translation memory with Sync edits to the translation memory. The next download includes every edit.

Permissions

Each endpoint page lists the permission it needs. The API key needs them on the role of the person who created it.

ResourceCoversActions used
playground.documentTranslate documents and text, and manage the translations.create, read, update, export, delete
assetFiles in your organization's assets: needed to translate an assetId or a folder.read
translation_memoryWriting edits back with Sync edits to the translation memory.update

Credits

Translations are charged per source word when they start, and settled on the words actually translated when they finish. Use Count billable words to see the count before you start. Without enough credits, Translate a document returns 402 and nothing is created. A translation that fails on our side is refunded; a retry is charged as a new attempt. See Credits.

On this page