*** WIP *** Language switching works
public/javascripts/checklang.js - better description in comment views/chglang.pug - text for 'h1' changed routers/index.js - more comment views/index.pug - no more action on click at language package.json "version": "3.0.1", "date": "2023-04-17 13:00 UTC", public/stylesheets/style.sass - css for 'Loading' on first page locales/en/translation.json - type
This commit is contained in:
+3
-1
@@ -3,6 +3,8 @@ html
|
||||
head
|
||||
title= title
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1" charset="utf-8")
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
body
|
||||
h1 Haloole
|
||||
#first
|
||||
h1 Loading...
|
||||
script(type="module" src="/javascripts/checklang.js")
|
||||
+2
-2
@@ -92,10 +92,10 @@ block content
|
||||
label.thelabels
|
||||
| #{t("Language")}:
|
||||
.form-check.form-check-inline
|
||||
input#en.form-check-input(type="radio" name="lanbut" onchange='chglang("lng/?lng=en")', checked)
|
||||
input#en.form-check-input(type="radio" name="lanbut", checked)
|
||||
label.form-check-label(for="en") English
|
||||
.form-check.form-check-inline
|
||||
input#de.form-check-input(type="radio" name="lanbut" onchange='chglang("lng/?lng=de")')
|
||||
input#de.form-check-input(type="radio" name="lanbut")
|
||||
label.form-check-label(for='de') Deutsch
|
||||
.modal-footer
|
||||
button.btn.btn-secondary(type="button" data-bs-dismiss="modal") #{t("Close")}
|
||||
|
||||
Reference in New Issue
Block a user