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.
<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>
<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
Your ids, unchanged
Custom
@@idsand generated ones stay as they are, so translations stay attached to their messages.Variables checked without AI
After translation a plain counting check compares every variable and tag with the original. A line that lost one is marked and shown on top.
Each line translated back
A different model, Gemini 2.5 Flash-Lite, translates every line back into your language, and DeepSeek V3.2 on US hosts (DeepInfra, DigitalOcean, Google) judges whether the meaning changed. You read what each line now says.
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