+ name: "my-language",
+ data: function() {
+ return {
+ st: store.state,
+ };
+ },
+ mounted: function() {
+ // NOTE: better style would be in pug directly, but how?
+ document.querySelectorAll("#langSelect > option").forEach(opt => {
+ if (opt.value == this.st.lang)
+ opt.selected = true;
+ });
+ },
+ methods: {