22 lines
520 B
TypeScript
22 lines
520 B
TypeScript
import { createApp } from "vue";
|
|
import { createI18n } from "vue-i18n";
|
|
import App from "@/App.vue";
|
|
import router from "@/router";
|
|
import { getLang } from "@/lib/lang";
|
|
import { createPinia } from "pinia";
|
|
const en = await import("@lang/en.json");
|
|
const fr = await import("@lang/fr.json");
|
|
|
|
const i18n = createI18n({
|
|
locale: getLang(),
|
|
fallbackLocale: "en",
|
|
messages: {
|
|
en: en,
|
|
fr: fr,
|
|
},
|
|
});
|
|
|
|
const pinia = createPinia();
|
|
|
|
createApp(App).use(router).use(i18n).use(pinia).mount("#app");
|