diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 15:25:20 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 15:35:20 +0200 |
commit | 10f6c76b081a5cb38f85950f253baf7934ce7cfe (patch) | |
tree | 79d6aa6f0ee7d893fe82b227169cf8e296ed742e /templates/root.templ | |
parent | a9725c49fe0c8c19fa5ffbdfdefc9bdcab4e66df (diff) |
Support date and currency formatting
Diffstat (limited to 'templates/root.templ')
-rw-r--r-- | templates/root.templ | 9 |
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" /> |