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