Commit graph

49 commits

Author SHA1 Message Date
Virgil
dd9d0832af refactor(i18n): centralise namespace lookups
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:43:40 +00:00
Virgil
f487e427e9 chore(i18n): align public API with AX
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:35:27 +00:00
Virgil
afe7b6e9de refactor(i18n): delegate prompt and lang wrappers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:12:34 +00:00
Virgil
4608de8def refactor(i18n): simplify default state wrappers
All checks were successful
Security Scan / security (push) Successful in 15s
Test / test (push) Successful in 1m34s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 14:09:23 +00:00
Virgil
fdb151a0af fix(i18n): keep default state snapshot explicit
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 13:38:04 +00:00
Virgil
5dc9847eec refactor(i18n): centralise default state snapshot
All checks were successful
Security Scan / security (push) Successful in 15s
Test / test (push) Successful in 2m24s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 13:20:34 +00:00
Virgil
d868f21ab2 feat(i18n): enrich service state snapshot
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 2m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 13:06:07 +00:00
Virgil
852b11fda5 refactor(i18n): align helper formatting with core primitives
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m19s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:59:09 +00:00
Virgil
cdc396269c fix(i18n): accept prefixed prompt and lang keys
All checks were successful
Security Scan / security (push) Successful in 15s
Test / test (push) Successful in 2m20s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:52:13 +00:00
Virgil
9d4af96d3d feat(i18n): add service state snapshot aliases
Some checks failed
Security Scan / security (push) Successful in 18s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:48:49 +00:00
Virgil
24eaadda8a feat(i18n): add current prompt alias
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m29s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:31:00 +00:00
Virgil
8551af74be feat(i18n): add current language alias
All checks were successful
Security Scan / security (push) Successful in 22s
Test / test (push) Successful in 2m27s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:48:29 +00:00
Virgil
a69868f18b refactor(i18n): forward current aliases through primary wrappers
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m29s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:41:07 +00:00
Virgil
e7bbae8d18 fix(i18n): avoid duplicate lang miss dispatch
All checks were successful
Security Scan / security (push) Successful in 17s
Test / test (push) Successful in 2m29s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:34:08 +00:00
Virgil
2abe15c2b1 refactor(i18n): simplify current-state aliases
Some checks failed
Security Scan / security (push) Successful in 15s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:30:28 +00:00
Virgil
7f09ee550f feat(i18n): add current RTL and handler aliases
Some checks are pending
Test / test (push) Waiting to run
Security Scan / security (push) Successful in 19s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:26:14 +00:00
Virgil
4c80cd16fe feat(i18n): make numeric shorthand direct
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m25s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:17:05 +00:00
Virgil
53bf8f39fd feat(i18n): add package current-state aliases
All checks were successful
Security Scan / security (push) Successful in 21s
Test / test (push) Successful in 2m25s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:13:09 +00:00
Virgil
b7029eeb64 chore(i18n): return empty slices from package getters
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 2m20s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:02:08 +00:00
Virgil
01a6ba4378 feat(i18n): add current available languages alias
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 10:44:39 +00:00
Virgil
2195d42413 feat(i18n): add message helper wrappers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 10:29:18 +00:00
Virgil
9d1f266be7 feat(i18n): add reset handlers helper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 10:18:13 +00:00
Virgil
de5bd091be refactor(i18n): use explicit loader in LoadFS
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 10:13:43 +00:00
Virgil
4d8b288a9c refactor(i18n): centralize default-service wrappers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:52:50 +00:00
Virgil
0bb3d59ca9 docs(i18n): add AX usage examples to public api
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:43:45 +00:00
Virgil
02339893ee feat(i18n): add handler chain replacement helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:40:20 +00:00
Virgil
2ad5b66272 fix(i18n): surface loader wrapper errors
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:49:51 +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
440f96fc16 refactor(i18n): align core primitives with ax conventions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:37:58 +00:00
Virgil
ac8645466f feat(i18n): restore package-level LoadFS helper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:17:56 +00:00
Virgil
c60a5e0474 fix(i18n): flag missing translations in Translate
Some checks are pending
Test / test (push) Waiting to run
Security Scan / security (push) Successful in 13s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:40:52 +00:00
Virgil
459876c8b7 feat(i18n): expose available languages helper
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 2m5s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:27:30 +00:00
Virgil
1a0cb1b7f9 feat(i18n): add package-level translate wrapper
Some checks failed
Security Scan / security (push) Successful in 14s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:24:32 +00:00
Virgil
9eca049323 feat(i18n): forward variadic numeric shorthand
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m54s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:30:09 +00:00
Virgil
a2e7f01cbb feat(i18n): expose fallback language accessors
Some checks failed
Security Scan / security (push) Successful in 9s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:20:04 +00:00
Virgil
edbfde8c6f fix(i18n): normalise shorthand lookups
All checks were successful
Security Scan / security (push) Successful in 15s
Test / test (push) Successful in 1m47s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:00:33 +00:00
Virgil
c5a56a8606 feat(i18n): refine byte formatting precision
Some checks failed
Security Scan / security (push) Successful in 13s
Test / test (push) Has been cancelled
2026-04-02 02:42:28 +00:00
Codex
18d7ba1f2c feat(i18n): add package-level clear handlers
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 1m43s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 02:17:51 +00:00
Virgil
9502bef6da feat(i18n): add current debug getter
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m23s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 23:59:26 +00:00
Virgil
7e827ab3ce feat(i18n): expose current formality getter
All checks were successful
Security Scan / security (push) Successful in 11s
Test / test (push) Successful in 1m17s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 23:56:57 +00:00
Virgil
6bf02fd0bd feat(i18n): add location to translation context
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m23s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 23:53:16 +00:00
Virgil
bc0ec5129b feat(i18n): add lang shorthand
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 1m7s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 22:42:36 +00:00
Virgil
97cffe8dbd feat(i18n): add prompt shorthand
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m11s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 22:38:31 +00:00
Virgil
514bc6bd83 feat(i18n): allow grammar funcs in message templates
All checks were successful
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m0s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 08:54:27 +00:00
Virgil
71e0049622 feat(i18n): render context extras in templates
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m1s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 08:47:09 +00:00
Virgil
caec3ad026 feat(i18n): allow bulk handler registration
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 49s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 07:07:14 +00:00
Claude
c4ef1e6205 feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports
All checks were successful
Security Scan / security (push) Successful in 8s
Test / test (push) Successful in 49s
Replace fmt, errors, strings, encoding/json with Core primitives
across 20 files. Keep strings.Fields/CutPrefix. No translation
files modified.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 05:35:51 +00:00
Snider
cd37607c56 fix(i18n): use UK English spelling for ErrServiceNotInitialised
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 22s
Rename ErrServiceNotInitialized → ErrServiceNotInitialised and update
the error message string. Keeps a deprecated alias for the old name
to avoid breaking the 21 downstream consumers.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 17:28:03 +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