forked from OPEN-ENT-NG/magneto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e7acf2
commit 6387065
Showing
4 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../backend/src/main/resources/i18n/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Resource } from "i18next"; | ||
|
||
import de from "./i18n/de.json"; | ||
import en from "./i18n/en.json"; | ||
import es from "./i18n/es.json"; | ||
import fr from "./i18n/fr.json"; | ||
import it from "./i18n/it.json"; | ||
import pt from "./i18n/pt.json"; | ||
|
||
const dictionaries = { | ||
de, | ||
en, | ||
es, | ||
fr, | ||
it, | ||
pt, | ||
}; | ||
|
||
const resources: Resource = {}; | ||
Object.keys(dictionaries).forEach((k: string) => { | ||
resources[k] = { | ||
magneto: dictionaries[k], | ||
}; | ||
}); | ||
|
||
export { resources }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters