Files
tout-doux/resources/ts/main.ts
T
klemek 210f7c5cf4
TS Lint / Oxlint (push) Successful in 48s
TS Lint / TypeScript (push) Successful in 56s
TS Lint / ESLint (push) Successful in 59s
feat: vue router and quality of life icons
2026-07-14 12:32:41 +02:00

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