9 input#modalLang.modal(type="checkbox")
10 div(role="dialog" data-checkbox="modalLang")
12 label.modal-close(for="modalLang")
13 form(@change="setLanguage($event)")
15 label(for="langSelect") {{ st.tr["Language"] }}
17 each language,langCode in langName
18 option(value=langCode)
23 import { store } from "@/store";
32 // NOTE: better style would be in pug directly, but how?
33 document.querySelectorAll("#langSelect > option").forEach(opt => {
34 if (opt.value == this.st.lang) opt.selected = true;
38 setLanguage: function(e) {
39 localStorage["lang"] = e.target.value;
40 store.setLanguage(e.target.value);