summaryrefslogtreecommitdiffhomepage
path: root/templates/root.templ
diff options
context:
space:
mode:
Diffstat (limited to 'templates/root.templ')
-rw-r--r--templates/root.templ9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/root.templ b/templates/root.templ
index 0ea0ad1..d295abb 100644
--- a/templates/root.templ
+++ b/templates/root.templ
@@ -1,13 +1,16 @@
package templates
-import "strings"
-import "git.thomasvoss.com/euro-cash.eu/i18n"
+import (
+ "strings"
+
+ "git.thomasvoss.com/euro-cash.eu/i18n"
+)
templ Root(head, body templ.Component) {
{{ p := ctx.Value("printer").(i18n.Printer) }}
<!DOCTYPE html>
- <html lang={ p.Lang } data-theme="dark">
+ <html lang={ p.Locale.Code } data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />