Skip to content

ai-i18n

v0.5.0 Bugfix

This release fixes issues for SREs watching stability and regressions.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai angular angular-i18n anthropic crowdin i18n
+8 more
internationalization llm localization lokalise openai phrase react-intl vue-i18n

Summary

AI summary

Fixed incorrect merging of same‑named inline XML elements causing placeholder misplacement.

Full changelog

What's Changed

Bug Fixes

  • fix: use preserveOrder parser for correct inline element extraction — The preserveOrder:false XMLParser was merging all same-named inline elements (like <x id="PH"/>) into a single property and concatenating text nodes, causing placeholders to appear at wrong positions in extracted source text. Switched to a preserveOrder:true parser for source/target extraction, correctly preserving element ordering while keeping the existing {{marker}} + XliffPlaceholder metadata approach.

Since v0.4.7

  • Fixed hash store snapshot before language loop so all languages see same baseline
  • Fixed insertion of new trans-units that don't exist in target XLIFF files
  • Fixed prettier formatting compliance
  • Fixed whitespace preservation around XLIFF placeholders in AI translations
  • Fixed hash instability and XLIFF formatter rewriting entire file
  • Fixed inline placeholder preservation during translation
  • Fixed hash store merge and relative path handling

Testing

  • Added XLIFF 1.2 fixture with inline placeholder elements
  • Added 5 new tests verifying correct placeholder extraction with position preservation

Full Changelog: https://github.com/i18n-actions/ai-i18n/compare/v0.4.7...v0.5.0

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track ai-i18n

Get notified when new releases ship.

Sign up free

About ai-i18n

GitHub Action that automatically translates i18n files (XLIFF, JSON) using LLM providers (Anthropic, OpenAI, Ollama) with glossary support, change detection, and reviewed translation preservation.

All releases →

Related context

Beta — feedback welcome: [email protected]