Virgil
1e3b86ffdf
feat(reversal): add negation disambiguation signal
...
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
07d22a2bd6
fix(i18n): load registered locales in core bootstrap
...
Security Scan / security (push) Successful in 13s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 00:44:12 +00:00
Claude
c4ef1e6205
feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports
...
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
Claude
bd9891872a
chore: update dependencies to dappco.re tagged versions
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 05:35:49 +00:00
Claude
08c78757a5
chore: migrate to dappco.re vanity import path
...
Security Scan / security (push) Successful in 7s
Test / test (push) Failing after 22s
Module path: forge.lthn.ai/core/go-i18n -> dappco.re/go/core/i18n
Dependency: forge.lthn.ai/core/go-log -> dappco.re/go/core/log
go-inference remains on forge.lthn.ai (not yet migrated).
dappco.re/go/core/log uses replace directive until published.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 23:49:15 +00:00
Snider
aa5d739f9d
fix(dx): migrate error handling to log.E(), fix build, add tests
...
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
b036cdcdf6
chore: sync dependencies for v0.1.6
...
Security Scan / security (push) Successful in 12s
Test / test (push) Successful in 1m20s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 22:19:29 +00:00
Snider
08f60e3ebb
feat: add CoreService for Core framework integration
...
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 1m21s
NewCoreService() creates an i18n Core service factory so any binary
can register i18n without depending on core/cli.
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 16:24:00 +00:00
Snider
2302ddbe31
chore: sync go.mod dependencies
...
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 21s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:28:59 +00:00
Snider
518654b424
chore: bump forge.lthn.ai dep versions to latest tags
...
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 2m54s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-26 05:34:22 +00:00
Snider
dbe14d339c
chore: refresh go.sum after upstream tag updates
...
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:35:19 +00:00
Claude
531685419d
chore: sync workspace dependency versions
...
Run go work sync to align dependency versions across workspace.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:41:55 +00:00
Snider
e6135cddb9
chore: go mod tidy for 1.26.0
...
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 20:35:59 +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
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