From e90e22344e640c5a183bbfed925b67b529e8cb43 Mon Sep 17 00:00:00 2001 From: donnyquixotic Date: Tue, 20 Feb 2024 20:16:52 -0600 Subject: [PATCH] fix: il18n settings --- src/boot/i18n.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/boot/i18n.js b/src/boot/i18n.js index d6e4b4dc1..e12a5af67 100644 --- a/src/boot/i18n.js +++ b/src/boot/i18n.js @@ -19,6 +19,7 @@ export const i18n = createI18n({ locale: lastChosenLanguage, globalInjection: true, messages, + legacy: false, }); export default boot(({ app }) => { @@ -29,6 +30,10 @@ export default boot(({ app }) => { // Listen for language-changed event const setLocale = (newLanguage) => { + if (!newLanguage){ + return; + } + const currentLanguage = localStorage.getItem('language'); if (newLanguage !== currentLanguage) {