feat: lang
TS Lint / Oxlint (push) Successful in 43s
TS Lint / TypeScript (push) Successful in 49s
TS Lint / ESLint (push) Successful in 1m10s

This commit is contained in:
2026-07-14 10:45:35 +02:00
parent d969b9e21b
commit c7b1f3ed49
16 changed files with 237 additions and 55 deletions
+15 -2
View File
@@ -1,4 +1,17 @@
import { createApp } from "vue";
import App from "./App.vue";
import { createI18n } from "vue-i18n";
import App from "@/App.vue";
import { getLang } from "@/lib/lang";
const en = await import("@lang/en.json");
const fr = await import("@lang/fr.json");
createApp(App).mount("#app");
const i18n = createI18n({
locale: getLang(),
fallbackLocale: "en",
messages: {
en: en,
fr: fr,
},
});
createApp(App).use(i18n).mount("#app");