From 3cb7572a8f1092b3169f4faaa2e76776dea39993 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 7 Aug 2024 01:51:13 +0200 Subject: Just use hardcoded strings --- templates/root.templ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/root.templ') 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) }} @@ -34,7 +34,7 @@ templ Root(head, body templ.Component) { } templ Index() { - {{ p := ctx.Value(PrinterKey).(i18n.Printer) }} + {{ p := ctx.Value("printer").(i18n.Printer) }}
@navbar() @@ -49,7 +49,7 @@ templ Index() { } templ SetLanguage() { - {{ p := ctx.Value(PrinterKey).(i18n.Printer) }} + {{ p := ctx.Value("printer").(i18n.Printer) }}
@navbar() @@ -83,7 +83,7 @@ templ languageGrid(eurozone bool) { if loc.Eurozone == eurozone {