Commit graph

15 commits

Author SHA1 Message Date
Virgil
1ae9ada1fd feat(i18n): add current text direction aliases
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m27s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:10:30 +00:00
Virgil
8f6be63def feat(i18n): add plural category alias
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 2m29s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:44:56 +00:00
Virgil
e9f06342a7 feat(i18n): add rtl aliases and definite article template func
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 2m23s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:37:33 +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
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
9aec3010fc fix(i18n): use neutral plural fallback without default service
Some checks are pending
Test / test (push) Waiting to run
Security Scan / security (push) Successful in 23s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:05:51 +00:00
Virgil
7b36000b7d fix(localise): support LANGUAGE locale lists
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:04:54 +00:00
Virgil
4614931ae1 fix(i18n): prefer locale override precedence
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 2m16s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:26:29 +00:00
Virgil
4d8d075189 feat(i18n): add current plural category accessor
All checks were successful
Security Scan / security (push) Successful in 11s
Test / test (push) Successful in 1m57s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:27:15 +00:00
Virgil
60bb0e91e8 feat(i18n): add current direction accessor
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 1m42s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:23:18 +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
2c5c2b715e fix(i18n): normalise underscore language tags
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 03:11:15 +00:00
Virgil
eba973c28e feat(i18n): add service location context
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 00:03:23 +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
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