diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 12:26:19 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 16:49:08 +0200 |
commit | 18f6fa052e107219c5d367234fa3d5d65b2a5246 (patch) | |
tree | 87c506f631d2d6248123e805ea6534f3acbf4837 /vendor/github.com/a-h/templ/jsonstring.go | |
parent | 59f75e8303805e20727f539912a25e138a20c2c7 (diff) |
Set the theme before doing i18n
During i18n printer resolution, if there is no locale cookie we render
the language selection screen. When this screen is rendered it will
grab the users theme from the current context. As a result of not
having added the theme to the context yet though, we get a panic. To
mitigate this we set the theme before doing any internationalization.
Diffstat (limited to 'vendor/github.com/a-h/templ/jsonstring.go')
0 files changed, 0 insertions, 0 deletions