feat: Support dayjs and component library in multiple languages

This commit is contained in:
vben
2024-06-30 15:42:30 +08:00
parent ca1cad0cd3
commit 1d70d71537
15 changed files with 99 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ import { setupI18n } from '@vben/locales';
import '@vben/styles';
import { preferences } from '@vben-core/preferences';
import { loadThirdPartyMessage } from '#/forward';
import { setupStore } from '#/store';
import App from './app.vue';
@@ -13,7 +14,10 @@ async function bootstrap(namespace: string) {
const app = createApp(App);
// 国际化 i18n 配置
await setupI18n(app, { defaultLocale: preferences.app.locale });
await setupI18n(app, {
defaultLocale: preferences.app.locale,
loadThirdPartyMessage,
});
// 配置 pinia-store
await setupStore(app, { namespace });