The Translation Index
The workspace file that records which source files have been translated, into which languages, and from which source version.
The translation index is a workspace file that records which source files have been translated, where the translated copies are stored, and which version of each source file was used to produce the translation.
Location and Lifecycle
By default, the index is stored at
.contentfusion/i18n/translation-index.xml.
The file is created automatically the first time the agent records a translation or copies a non-translatable asset. Commit it to your DITA project repository so the translation state stays with your branches and merges and follows the same access-control model as your content.
Agent-Maintained, Human-Editable
Under normal conditions, you do not need to edit the index yourself. It is maintained by the translation agent.
The agent also keeps entries sorted and writes one entry per line so diffs remain readable and merge conflicts are less likely.
You can still edit it when needed. The index is plain XML stored in your repository, so you can open it in any text editor, review it in pull requests, and edit it directly when that is faster or more precise than running the agent again. Common reasons to edit it manually include:
- Force a retranslation - Delete the
<entry>for a file, or delete the entire index to reset everything (see Redoing Translations). - Fix an incorrect path - Correct a
<source href>or<target href>after you moved or renamed files in the repository outside Oxygen Content Fusion. - Split or reorganize the index - Add
<include href="..."/>pointers to divide a large index into smaller files. For example, you can split it by product area, such as hardware and software products. - Import existing translations - Generate the index from translations created outside Oxygen Content Fusion (see Importing a Project with Existing Translations).
File Example
Here is an example, indented to be easier to read:
<translation-index version="1">
<entry lang="de-DE">
<source href="../../en/topics/install.dita" sha="b225ce…"/>
<target href="../../de-DE/topics/install.dita" sha="08971e…"/>
</entry>
<entry lang="fr-FR">
<source href="../../en/topics/install.dita" sha="b225ce…"/>
<target href="../../fr-FR/topics/install.dita" sha="500c34…"/>
</entry>
</translation-index>This example shows one source topic,
../../en/topics/install.dita, translated into two target languages:
German (de-DE) and French (fr-FR).Each <entry> represents one (language,
source file) pair. Because both entries point to the same source
href, they record two translations of the same English file, not two
different source files.
The identical source sha value in both entries means
that both translations were produced from the same version of the English topic. The
different target href and sha values identify the separate
translated files and the exact recorded version of each translation.
See the file format reference for full details.
Resolving Conflicts
The format is designed to make merge conflicts uncommon by using one entry per line, keeping entries sorted, and allowing the content to be split across fragments. However, conflicts can still occur when two translation jobs or two branches record translations independently. The simplest ways to avoid them are to run only one job at a time and to translate on a single branch. See Resolving Translation Index Conflicts.