From 995b115d27f44b76075a0ae853fbcff5664df759 Mon Sep 17 00:00:00 2001 From: Wampie Driessen <1059058+wampiedriessen@users.noreply.github.com> Date: Sat, 5 Aug 2023 17:55:27 +0200 Subject: [PATCH] Update src/mixins/lang.js Co-authored-by: Matthew Nickson --- src/mixins/lang.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);