feat(frontend): i18n en vertalingsbestanden initialisatie

This commit is contained in:
Joyelle Ndagijimana 2025-03-02 19:46:12 +01:00
parent 8a7fa271ba
commit c1c10e27c1
7 changed files with 28 additions and 4 deletions

21
frontend/src/i18n/i18n.ts Normal file
View file

@ -0,0 +1,21 @@
import { createI18n } from "vue-i18n";
// Import translations
import en from "@/i18n/locales/en.json";
import nl from "@/i18n/locales/nl.json";
import fr from "@/i18n/locales/fr.json";
import de from "@/i18n/locales/de.json";
const i18n = createI18n({
//legacy: false,
locale: "en",
fallbackLocale: "en",
messages: {
en: { ...en },
nl: { ...nl },
fr: { ...fr },
de: { ...de },
},
});
export default i18n;

View file

View file

View file

View file