import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import enLocale from 'element-plus/dist/locale/en.mjs'
import 'element-plus/dist/index.css'
import '@/styles/theme.css'
import App from './App.vue'
import router from './router'
import i18n from '@/i18n'

const epLocales = { 'zh-CN': zhCn, en: enLocale }

createApp(App)
  .use(ElementPlus, { locale: epLocales[i18n.global.locale.value] })
  .use(i18n)
  .use(router)
  .mount('#app')
