feat(frontend): i18n en vertalingsbestanden initialisatie
This commit is contained in:
parent
8a7fa271ba
commit
c1c10e27c1
7 changed files with 28 additions and 4 deletions
21
frontend/src/i18n/i18n.ts
Normal file
21
frontend/src/i18n/i18n.ts
Normal 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;
|
0
frontend/src/i18n/locales/de.json
Normal file
0
frontend/src/i18n/locales/de.json
Normal file
0
frontend/src/i18n/locales/en.json
Normal file
0
frontend/src/i18n/locales/en.json
Normal file
0
frontend/src/i18n/locales/fr.json
Normal file
0
frontend/src/i18n/locales/fr.json
Normal file
0
frontend/src/i18n/locales/nl.json
Normal file
0
frontend/src/i18n/locales/nl.json
Normal file
Loading…
Add table
Add a link
Reference in a new issue