diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 12:28:24 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 16:49:44 +0200 |
commit | 1bf1b7875efbe07b64411e719dcc06bc9428412e (patch) | |
tree | e522c5b72adf1ad932314e72c9d7a9ebdbd2b5c3 /middleware | |
parent | 18f6fa052e107219c5d367234fa3d5d65b2a5246 (diff) |
Move the language selection screen to language.templ
Diffstat (limited to 'middleware')
-rw-r--r-- | middleware/i18n.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/i18n.go b/middleware/i18n.go index 0ed07d4..db90270 100644 --- a/middleware/i18n.go +++ b/middleware/i18n.go @@ -34,7 +34,7 @@ func I18n(next http.Handler) http.Handler { Name: "redirect", Value: r.URL.Path, }) - templates.Root(nil, templates.SetLanguage()).Render(ctx, w) + templates.Root(nil, templates.Language()).Render(ctx, w) } else { next.ServeHTTP(w, r.WithContext(ctx)) } |