|
|
@ -34,7 +34,10 @@ export default {
|
|
|
|
localStorage.locale = lang;
|
|
|
|
localStorage.locale = lang;
|
|
|
|
setPageLocale();
|
|
|
|
setPageLocale();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** Change the language for the current page (no localstore set) */
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Change the language for the current page (no localstore set)
|
|
|
|
|
|
|
|
* @param {string} lang Code of language to switch to.
|
|
|
|
|
|
|
|
*/
|
|
|
|
async changeCurrentPageLang(lang) {
|
|
|
|
async changeCurrentPageLang(lang) {
|
|
|
|
let message = (await langModules["../lang/" + lang + ".json"]()).default;
|
|
|
|
let message = (await langModules["../lang/" + lang + ".json"]()).default;
|
|
|
|
this.$i18n.setLocaleMessage(lang, message);
|
|
|
|
this.$i18n.setLocaleMessage(lang, message);
|
|
|
|