Commit graph

7 commits

Author SHA1 Message Date
Virgil
43cf530b9d fix(i18n): honor default translation context count
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
2026-04-02 13:41:48 +00:00
Virgil
9aca9b443f fix(i18n): coerce string counts and numeric args
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 10:01:33 +00:00
Virgil
92add102a8 feat(i18n): add count support to translation context
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:59:58 +00:00
Virgil
6758585c36 feat(i18n): accept structured handler args
All checks were successful
Security Scan / security (push) Successful in 11s
Test / test (push) Successful in 1m45s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 02:58:46 +00:00
Virgil
3b2f6ec2ec feat(i18n): accept subjects in namespace handlers
Some checks failed
Security Scan / security (push) Successful in 11s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 01:41:43 +00:00
Virgil
945070c0da feat(i18n): respect subject counts in plural resolution
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m12s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 22:30:32 +00:00
Claude
e8a87b0f50
feat: grammar-aware i18n module extracted from core
Standalone grammar-aware translation engine with:
- 3-tier verb/noun fallback (JSON locale → irregular maps → regular rules)
- 6 built-in i18n.* namespace handlers (label, progress, count, done, fail, numeric)
- Nested en.json with gram/prompt/time/lang sections (no flat command keys)
- CLDR plural rules for 10 languages
- Subject fluent API, number/time formatting, RTL detection
- 55 tests passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 19:51:27 +00:00