import { createApp } from "vue"; import { createI18n } from "vue-i18n"; import App from "@/App.vue"; 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(i18n).use(pinia).mount("#app");