diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 32806e4b3..56c574c70 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -25,12 +25,12 @@ const userLocale = computed({ // FIXME: Dynamic imports from absolute paths are not compatible with vite: // https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations try { - const langList = import.meta.glob('../../node_modules/quasar/lang/*.mjs') - langList[`../../node_modules/quasar/lang/${value}.mjs`]().then(lang => { - Quasar.lang.set(lang.default) - }) + const langList = import.meta.glob('../../node_modules/quasar/lang/*.mjs'); + langList[`../../node_modules/quasar/lang/${value}.mjs`]().then((lang) => { + Quasar.lang.set(lang.default); + }); } catch (error) { - + // } }, }); @@ -88,19 +88,33 @@ function logout() {