This release fixes issues for SREs watching stability and regressions.
✓ No known CVEs patched in this version
Topics
+8 more
Summary
AI summaryFixed 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:falseXMLParser 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 apreserveOrder:trueparser for source/target extraction, correctly preserving element ordering while keeping the existing{{marker}}+XliffPlaceholdermetadata 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
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.
Related context
Related tools
Beta — feedback welcome: [email protected]