Importing a Project with Existing Translations

How to initialize the translation index for a project that already contains translated content produced outside the AI translation workflow.

If a project already contains translated content (created manually, by a translation vendor, or with another tool), you do not need to translate it again when you start using the translation agent. Instead, have the agent record the existing translations in a translation index so they are recognized as current rather than missing the next time you run a translation. See Running an Incremental Translation for an explanation of these statuses.

Building the Index for Existing Translations

  1. Start a translation job. In the Instructions field, tell the agent that the content is already translated and should be imported instead of translated. For example:
    The files are already translated. Import them into the
    translation index instead of translating them.
  2. The agent pairs each translated file with its source file, following your project's layout (or explicit guidance you give it when the pairing is not obvious), and records an index entry for each pair using the source file's current Git blob SHA-1. No content is translated in this step; only the index is written.
  3. Review the resulting index and translated files, and then commit them.
Important:
Each translated file must declare its language in the xml:lang attribute on its root element, set to the target language tag (for example, xml:lang="fr-FR" on the <topic> element of a French topic). If a file is missing this attribute, or if the attribute does not match the language being imported, the file is rejected and is not recorded in the index. The agent can add the attribute and retry, but the import is faster and more predictable when the files already include it.

Verify Before You Rely on It

Importing marks a translation as current without checking its quality, so confirm the imported state before you rely on it:

  • Spot-check that the imported translations match the source content at the revision recorded in the index.
  • Check for source files that do not have a matching translation. These remain missing and are translated during the next job.
  • If you are not sure whether a translation is still accurate, leave it out of the import or delete its index entry so the agent retranslates it instead of treating it as current.

This is a one-time preparation step. Once the index reflects your existing translations, later jobs follow the same incremental workflow as any other project.