diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-12 17:12:07 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-12 17:12:07 +0200 |
| commit | 19cfae39af4e7cbb8a0719e64d619ba0248f9d76 (patch) | |
| tree | af289634fac81e78ebe92029062eb13016622b8a /cmd | |
| parent | 783028348a17803ba2e0d2745229d57c0626a464 (diff) | |
ki18n: derive language from request context via strategy chain
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>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
