diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 01:51:13 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 01:51:13 +0200 |
commit | 3cb7572a8f1092b3169f4faaa2e76776dea39993 (patch) | |
tree | 62bdfdf1547fa88f5b25e4da1aac8d734906509f /templates/root.templ | |
parent | e555accb612e189ab9bdad403958d4e0a6d809ae (diff) |
Just use hardcoded strings
Diffstat (limited to 'templates/root.templ')
-rw-r--r-- | templates/root.templ | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/root.templ b/templates/root.templ index 722aa2c..7a565ae 100644 --- a/templates/root.templ +++ b/templates/root.templ @@ -4,7 +4,7 @@ import "strings" import "git.thomasvoss.com/euro-cash.eu/i18n" templ Root(head, body templ.Component) { - {{ p := ctx.Value(PrinterKey).(i18n.Printer) }} + {{ p := ctx.Value("printer").(i18n.Printer) }} <!DOCTYPE html> <html lang={ p.Lang } data-theme="dark"> @@ -34,7 +34,7 @@ templ Root(head, body templ.Component) { } templ Index() { - {{ p := ctx.Value(PrinterKey).(i18n.Printer) }} + {{ p := ctx.Value("printer").(i18n.Printer) }} <header> @navbar() @@ -49,7 +49,7 @@ templ Index() { } templ SetLanguage() { - {{ p := ctx.Value(PrinterKey).(i18n.Printer) }} + {{ p := ctx.Value("printer").(i18n.Printer) }} <header> @navbar() @@ -83,7 +83,7 @@ templ languageGrid(eurozone bool) { if loc.Eurozone == eurozone { <button type="submit" - name={ LocaleKey } + name="locale" value={ loc.Code } disabled?={ !loc.Enabled } > |