9 input#modalLang.modal(type="checkbox")
12 data-checkbox="modalLang"
15 label.modal-close(for="modalLang")
16 form(@change="setLanguage($event)")
18 label(for="langSelect") {{ st.tr["Language"] }}
20 each language,langCode in langName
21 option(value=langCode)
26 import { store } from "@/store";
35 // NOTE: better style would be in pug directly, but how?
36 document.querySelectorAll("#langSelect > option").forEach(opt => {
37 if (opt.value == this.st.lang) opt.selected = true;
41 setLanguage: function(e) {
42 localStorage["lang"] = e.target.value;
43 store.setLanguage(e.target.value);