n0mbers/src/main.ts

23 lines
390 B
TypeScript
Raw Normal View History

2022-02-09 21:27:26 +01:00
import './index.css'
2022-02-15 08:46:02 +01:00
import messages from '@intlify/vite-plugin-vue-i18n/messages'
2022-02-07 22:14:31 +01:00
import { createApp } from 'vue'
2022-02-15 08:46:02 +01:00
import { createI18n } from 'vue-i18n'
2022-02-09 21:27:26 +01:00
2022-02-07 22:14:31 +01:00
import App from './App.vue'
import router from './router'
2022-02-15 08:46:02 +01:00
const i18n = createI18n({
legacy: false,
locale: 'fr',
fallbackLocale: 'en',
messages,
})
2022-02-07 22:14:31 +01:00
const app = createApp(App)
app.use(router)
2022-02-15 08:46:02 +01:00
app.use(i18n)
2022-02-07 22:14:31 +01:00
app.mount('#app')