Translate

Translate Angular $localize files, then check every line

ng extract-i18n writes XLIFF by default, with interpolations as <x> tags and ICU plurals inside. Drop a tag and ng build --localize fails. KAERIS writes a <target> for each unit and keeps every tag and id.

Interpolations stay as <x> tags

The equiv-text of each tag is kept, so the build still knows what {{ name }} was.

Beforesrc/locale/messages.xlf
<trans-unit id="welcome" datatype="html">
  <source>Welcome back, <x id="INTERPOLATION" equiv-text="{{ name }}"/>!</source>
</trans-unit>
<trans-unit id="save" datatype="html">
  <source>Save changes</source>
</trans-unit>
Aftersrc/locale/messages.de.xlf
<trans-unit id="welcome" datatype="html">
  <source>Welcome back, <x id="INTERPOLATION" equiv-text="{{ name }}"/>!</source>
  <target>Willkommen zurück, <x id="INTERPOLATION" equiv-text="{{ name }}"/>!</target>
</trans-unit>
<trans-unit id="save" datatype="html">
  <source>Save changes</source>
  <target>Änderungen speichern</target>
</trans-unit>

What KAERIS does with it

Questions

Does it read --format json too?

Yes. The JSON that ng extract-i18n --format json writes is translated key by key, ICU blocks included.

Is XLIFF 2.0 supported?

Not yet. Angular's default xlf is XLIFF 1.2, which works.

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 with your file and --langs de,ja. A GitHub Action opens a pull request when new keys land. Docs