Virgil
62d08d7bc3
fix(i18n): preserve translate result status
...
Security Scan / security (push) Successful in 13s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 13:46:25 +00:00
Virgil
fdb151a0af
fix(i18n): keep default state snapshot explicit
...
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
cdc396269c
fix(i18n): accept prefixed prompt and lang keys
...
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
...
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
...
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
...
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
e7bbae8d18
fix(i18n): avoid duplicate lang miss dispatch
...
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
7f09ee550f
feat(i18n): add current RTL and handler aliases
...
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
...
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
...
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
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
02339893ee
feat(i18n): add handler chain replacement helpers
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:40:20 +00:00
Virgil
a3167d4cc9
fix(i18n): avoid mutating handler slices
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:42:26 +00:00
Virgil
79f23264ef
fix(i18n): ignore nil handlers
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:33:52 +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
...
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
...
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
...
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
...
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
edbfde8c6f
fix(i18n): normalise shorthand lookups
...
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
2c5c2b715e
fix(i18n): normalise underscore language tags
...
Security Scan / security (push) Successful in 11s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 03:11:15 +00:00
Virgil
c5a56a8606
feat(i18n): refine byte formatting precision
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
...
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
568ded9031
feat(i18n): add intent composition API
...
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m37s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 01:45:24 +00:00
Virgil
bc0ec5129b
feat(i18n): add lang shorthand
...
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
...
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
caec3ad026
feat(i18n): allow bulk handler registration
...
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
Snider
cd37607c56
fix(i18n): use UK English spelling for ErrServiceNotInitialised
...
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
32a55f5d35
test(i18n): add tests for 8 uncovered files, coverage 69.9% -> 86.6%
...
Add dedicated test files for compose.go, context.go, debug.go, hooks.go,
i18n.go, localise.go, time.go, and transform.go. Uses testify
assert/require with table-driven tests and Good/Bad/Ugly naming.
Key coverage improvements:
- transform.go: toInt/toInt64/toFloat64 18.8% -> 100%
- time.go: TimeAgo/FormatAgo 0% -> 100%/87.5%
- compose.go: newTemplateData/SetFormality/IsInformal 0% -> 100%
- context.go: all functions now 100%
- debug.go: package-level SetDebug 0% -> 100%
- hooks.go: RegisterLocales 0% -> 100%
- i18n.go: T/Raw/N/SetMode/AddHandler/PrependHandler all covered
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 02:09:08 +00:00