fix: init
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2025-01-21 13:25:45 +01:00
parent a1ef002a24
commit 21251a5167
1 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,7 @@ const { t, locale } = useI18n();
const { copyText } = useClipboard();
const { notify } = useNotify();
const langList = import.meta.glob('../../node_modules/quasar/lang/*.js');
const userLocale = computed({
get() {
return locale.value;
@ -32,8 +33,7 @@ const userLocale = computed({
value = localeEquivalence[value] ?? value;
try {
/* @vite-ignore */
import(`../../node_modules/quasar/lang/${value}.mjs`).then((lang) => {
langList[`../../node_modules/quasar/lang/${value}.js`]().then((lang) => {
Quasar.lang.set(lang.default);
});
} catch (error) {