n0mbers/src/main.ts
2022-02-15 08:46:02 +01:00

23 lines
390 B
TypeScript

import './index.css'
import messages from '@intlify/vite-plugin-vue-i18n/messages'
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import App from './App.vue'
import router from './router'
const i18n = createI18n({
legacy: false,
locale: 'fr',
fallbackLocale: 'en',
messages,
})
const app = createApp(App)
app.use(router)
app.use(i18n)
app.mount('#app')