fix: init
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
a1ef002a24
commit
21251a5167
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue