diff --git a/src/mixins/lang.js b/src/mixins/lang.js index 76b5b755a..baa2af351 100644 --- a/src/mixins/lang.js +++ b/src/mixins/lang.js @@ -34,7 +34,10 @@ export default { localStorage.locale = lang; 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) { let message = (await langModules["../lang/" + lang + ".json"]()).default; this.$i18n.setLocaleMessage(lang, message);