Translate

Translate XLIFF 1.2 files

XLIFF puts the source and the translation side by side, with inline tags in between. Move or drop one tag and the placeholder or link in the app is gone. KAERIS keeps the tags and tells you if one is missing.

How an XLIFF 1.2 file is built

Each <trans-unit> holds a <source> and a <target>. Inside the text, <x/>, <g> and <ph> stand for variables and markup. Angular's messages.xlf is this format.

Source filemessages.xlf
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file source-language="en" target-language="de" datatype="plaintext" original="app">
    <body>
      <trans-unit id="welcome">
        <source>Welcome back, <x id="1" ctype="x-name"/>!</source>
      </trans-unit>
      <trans-unit id="terms">
        <source>I accept the <g id="2" ctype="x-link">terms</g>.</source>
      </trans-unit>
    </body>
  </file>
</xliff>

What to watch for in XLIFF translations

A real run: translated to German and checked

A real run, 27 October 2026, nothing edited by hand: kaeris translate messages.xlf --langs de with kaeris 0.2.35, 1.9 seconds, model google/gemini-2.5-flash-lite, the free-tier default. Below, the German file it wrote and what kaeris check says about it.

German resultde/messages.xlf
<?xml version="1.0" encoding="utf-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file original="app" source-language="en" target-language="de" datatype="plaintext">
    <body>
      <trans-unit id="welcome">
        <source>Welcome back, <x id="1" ctype="x-name" />!</source>
        <target state="translated">Willkommen zurück, <x id="1" ctype="x-name" />!</target>
      </trans-unit>
      <trans-unit id="terms">
        <source>I accept the <g id="2" ctype="x-link">terms</g>.</source>
        <target state="translated">Ich akzeptiere die <g id="2" ctype="x-link">Nutzungsbedingungen</g>.</target>
      </trans-unit>
    </body>
  </file>
</xliff>
kaeris checkexit code 0
$ kaeris check --source messages.xlf --langs de
✓ de: complete & placeholder-safe
✓ all locales complete & placeholder-safe

What KAERIS does with it

Run it in three steps

  1. Install the CLI

    Run pip install kaeris.

  2. Translate the file

    Run kaeris translate src/locale/messages.xlf --langs de,ja.

  3. Check the result

    Open the free check page and upload the translated file. A catalog with source and target in one file is checked alone.

pip install kaeris
kaeris translate src/locale/messages.xlf --langs de,ja --verify

Questions

Is XLIFF 2.0 supported?

No. Version 1.2 is supported; a 2.0 file is refused with a message that says so.

Will the inline tags survive?

They are kept as raw markup and compared with the source after translation. In the real run above the <x/> and <g> tags came back with the same ids and the check had nothing to report; a dropped one would be reported.

Is it free?

Yes, without an account: 10,000 characters per file and up to 8 languages per run. A free API key raises the file limit to 50,000 characters. Lifetime is $79 once, on your own OpenRouter key; monthly plans start at $19. Pricing

Can I run it from the terminal or in CI?

Yes. pip install kaeris, then kaeris translate src/locale/messages.xlf --langs de,ja. See also Angular. The GitHub Action runs the same translation in a pull request. CLI docs · GitHub Action

Keep going

CLI reference · Check reference · Translate in the browser · Free check · Convert formats · Pseudo-localization

Other formats: JSON · YAML · .po · ARB · .strings · .xcstrings · .properties · .resx · CSV · Markdown · Fluent · Android XML

Framework guides: react-i18next · next-intl · vue-i18n · Flutter · iOS · Android