summaryrefslogtreecommitdiff
path: root/ki18n/ki18n_test.go
Commit message (Collapse)AuthorAge
* ki18n: add locale-aware date formatting via FormatTimeMartin Kagamino Lehoux2026-05-12
| | | | | | | | | Adds FormatTime(ctx, t) for locale-aware date output (e.g. "12 mai 2026" in fr-FR). Init now accepts extra Locale values so callers can register additional languages with custom formatters; en-GB and fr-FR are built-in defaults. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* ki18n: derive language from request context via strategy chainMartin Kagamino Lehoux2026-05-12
| | | | | | | | | | | Replace Tr(lang, ...) with Tr(ctx, ...) — language is now resolved once per request by LangMiddleware and stored in context. Callers no longer need to thread a lang string through to templates. Adds Strategy interface with CookieStrategy and AcceptLanguageStrategy built-ins; middleware chains them in order, falling back to en-GB. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Update depsv0.7.2Martin Kagamino Lehoux2026-02-11
|
* Add testing for html tagsMartin Kagamino Lehoux2025-12-30
|
* Simplified testingMartin Kagamino Lehoux2025-12-30
|
* Simplify testingMartin Kagamino Lehoux2025-12-30
|
* Simple use casesMartin Kagamino Lehoux2025-12-30