Commit graph

21 commits

Author SHA1 Message Date
Virgil
0e914911fa fix(loader): accept grammar aliases
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
2026-04-03 07:51:09 +00:00
Virgil
72b2e822d2 fix(i18n): broaden locale filename resolution
Some checks failed
Security Scan / security (push) Successful in 13s
Test / test (push) Failing after 16m36s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 14:52:39 +00:00
Virgil
5020fbef42 refactor(i18n): clarify locale filename resolution
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Successful in 2m7s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 14:43:16 +00:00
Virgil
fabb907ea1 fix(i18n): copy loader language slices
Some checks failed
Security Scan / security (push) Successful in 19s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 11:09:46 +00:00
Virgil
8f2fdddff5 fix(i18n): tighten grammar object detection
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:48:13 +00:00
Virgil
4b04dfed2a fix(grammar): dedupe merged signal lists
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:07:10 +00:00
Virgil
4cd6216fb7 fix(i18n): normalise grammar cache language tags
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:59:45 +00:00
Virgil
69bf91b1b9 fix(loader): preserve zero-valued signal priors
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:20:32 +00:00
Virgil
dd42265f90 fix(loader): add base-language file fallback
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:00:58 +00:00
Virgil
94e6c2d5d7 fix(i18n): canonicalise locale scans
Some checks failed
Security Scan / security (push) Successful in 12s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:35:46 +00:00
Virgil
eeffe92da0 fix(i18n): ignore deprecated grammar entries
Some checks failed
Security Scan / security (push) Successful in 12s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 03:03:44 +00:00
Virgil
b2f7157cb9 fix(loader): preserve partial verb forms
All checks were successful
Security Scan / security (push) Successful in 11s
Test / test (push) Successful in 1m37s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 01:58:06 +00:00
Virgil
1e3b86ffdf feat(reversal): add negation disambiguation signal
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 1m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 00:53:16 +00:00
Virgil
7c502f3da0 fix(loader): skip incomplete verb tables
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:47:26 +00:00
Virgil
c0ebc16d97 feat(i18n): load corpus priors for disambiguation
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 58s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 07:24:57 +00:00
Virgil
efbea846b6 feat(i18n): respect verb base overrides
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 55s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 07:13:52 +00:00
Virgil
d373e55b8d fix(i18n): merge all grammar tables
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 50s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 05:36:34 +00:00
Virgil
b6a1ed0cc0 feat(i18n): load locale number formats
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 50s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 04:47:31 +00:00
Snider
aa5d739f9d fix(dx): migrate error handling to log.E(), fix build, add tests
All checks were successful
Security Scan / security (pull_request) Successful in 7s
Test / test (pull_request) Successful in 1m24s
- Replace all fmt.Errorf/errors.New with log.E() from go-log
- Fix core_service.go build error (c.Locales() does not exist on Core)
- Add tests for Service.AddLoader, LoadFS, LanguagesErr, flatten, IsRTL
- Document error handling convention in CLAUDE.md
- Coverage: 85.2% root, 91.0% reversal (up from 83.1%)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 07:51:29 +00:00
Snider
9ea76af2b1 refactor: apply go fix modernizers for Go 1.26
Automated fixes: interface{} → any, range-over-int, t.Context(),
wg.Go(), strings.SplitSeq, strings.Builder, slices.Contains,
maps helpers, min/max builtins.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 21:00:16 +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