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