import { createApp } from 'vue';
import 'element-plus/dist/index.css';
import App from './App.vue';
import router from './router';
import { createAdminI18n } from './i18n';
import { applyElementPlusDialogDefaults } from './plugins/element-plus-defaults';

applyElementPlusDialogDefaults();

async function bootstrap() {
  const i18n = await createAdminI18n();
  createApp(App).use(i18n).use(router).mount('#app');
}

void bootstrap();
