Keep each string identifiable
The goal is to retain the structure that connects translated text to your project. In the sample, all four unit IDs and English source elements remain unchanged.
Translate the text in your XLIFF file while aiming to keep the structure your localization project needs. See the XLIFF 1.2 example below: four Spanish targets alongside the unchanged English sources, with matching inline codes.
Translation example
A four-unit XLIFF 1.2 example with two x placeholders and two g elements in its English sources. All four Spanish targets are filled, with matching inline-code IDs and ctype attributes. The source text and one note remain unchanged.
Two x placeholders and two g elements are added to the targets; their IDs and ctype attributes match the source codes.
Both files declare source-language="en" and target-language="es".
2026-10-08 verified — Amanda Lee
The goal is to retain the structure that connects translated text to your project. In the sample, all four unit IDs and English source elements remain unchanged.
Download both example files to inspect the two placeholders and two link-code elements. Their IDs and ctype attributes match between each source and its translated target.
Use XLIFF when your project exports text for translation in this format. Keeping the original structure helps you match each translated string to its source when you bring the file back into the project.
In the OASIS XLIFF 1.2 specification, a translation unit holds source text and its target translation. Inline elements can represent codes within that text. Those codes need attention during review: a translated sentence may read well even when a placeholder is missing.
The English-to-Spanish example keeps all four unit IDs and all four English source elements. Its four empty targets become Spanish translations. The two x placeholders and two g elements in the source text have matching IDs and ctype attributes in the targets; the text inside the g elements is translated.
The note about the message count stays in English. Both files already declare English as the source language and Spanish as the target language, so this example does not show an automatic language-attribute change. It also has no translation-state attributes or pre-existing target translations to test.
Review the translated targets, then try importing a copy into your localization tool before replacing a project file. Check that each unit maps to the right string and that placeholders appear where the translated sentence needs them.
For interface text, check the actual screen as well as the XLIFF. A short label can need a different translation from the same word in a sentence, and longer wording may not fit a button. The sample covers a small XLIFF 1.2 file; it does not establish compatibility with every exporter or with XLIFF 2.0.
Upload your XLIFF file
Choose the .xlf or .xliff export from your project. Keep the original so you can compare it with the translated result.
Choose the target language
Select the language you need for this localization file. Check the source language before starting.
Translate the file
Start the translation. When the result is available, download it for review.
Review and test an import
Compare unit IDs and inline codes, read the translated targets, then import a copy into your project to check the strings in context.
Both extensions are used for XLIFF files. The extension alone does not identify the version; check the version attribute on the xliff root element. The downloadable example uses version 1.2.
Some inline elements surround translatable words. In this example, the g elements contain the terms-of-service and privacy-policy labels, which become Spanish in the targets. Their IDs and ctype attributes stay the same. The empty x placeholders contain no words to translate.
No. Neither file contains state attributes. Four filled targets show that translations are present; they do not establish that a reviewer approved the wording or that a workflow state was updated.
Keep a copy and compare those targets after translation before replacing your project file. The example starts with empty targets, so it does not demonstrate how existing translations are handled or establish an option to translate only empty targets.
Upload your localization file, choose the target language and review the translated text before importing it into your project.