aboutsummaryrefslogtreecommitdiff
path: root/kauth
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-05-12 17:12:07 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-05-12 17:12:07 +0200
commit19cfae39af4e7cbb8a0719e64d619ba0248f9d76 (patch)
treeaf289634fac81e78ebe92029062eb13016622b8a /kauth
parent783028348a17803ba2e0d2745229d57c0626a464 (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 'kauth')
0 files changed, 0 insertions, 0 deletions