|
@@ -3,6 +3,7 @@ import type { I18n, I18nOptions } from 'vue-i18n';
|
|
|
|
|
|
import { createI18n } from 'vue-i18n';
|
|
|
|
|
|
+import { setLoadLocalePool } from './useLocale';
|
|
|
import { localeSetting } from '/@/settings/localeSetting';
|
|
|
import { useLocaleStoreWithOut } from '/@/store/modules/locale';
|
|
|
|
|
@@ -16,6 +17,10 @@ async function createI18nOptions(): Promise<I18nOptions> {
|
|
|
const defaultLocal = await import(`./lang/${locale}.ts`);
|
|
|
const message = defaultLocal.default?.message ?? {};
|
|
|
|
|
|
+ setLoadLocalePool((loadLocalePool) => {
|
|
|
+ loadLocalePool.push(locale);
|
|
|
+ });
|
|
|
+
|
|
|
return {
|
|
|
legacy: false,
|
|
|
locale,
|