Finally structure for the project

Language versions, translations in separate files.
This commit is contained in:
Blboun3
2024-03-25 14:41:07 +01:00
parent 0a6ccd4339
commit fbd130eb8b
8 changed files with 36 additions and 3 deletions

3
src/i18n/cs.js Normal file
View File

@@ -0,0 +1,3 @@
export const cs = {
title: "CS Test",
};

3
src/i18n/de.js Normal file
View File

@@ -0,0 +1,3 @@
export const de = {
title: "DE Test",
};

11
src/i18n/dictionary.js Normal file
View File

@@ -0,0 +1,11 @@
import { cs } from "./cs";
import { de } from "./de";
import { en } from "./en";
import { fr } from "./fr";
export const dictionary = {
en: en,
fr: fr,
de: de,
cs: cs
};

3
src/i18n/en.js Normal file
View File

@@ -0,0 +1,3 @@
export const en = {
title: "EN Test",
};

3
src/i18n/fr.js Normal file
View File

@@ -0,0 +1,3 @@
export const fr = {
title: "FR Test",
};