Files
tout-doux/resources/ts/main.ts
T
klemek a9b2e31d81
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled
refactor: format
2026-07-14 11:47:05 +02:00

21 lines
477 B
TypeScript

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");