Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 5eb1a06

Browse files
authored
Merge pull request #3 from code-star/fix/i18n-path
Fix missing i18n path configuration
2 parents 56e3669 + 0ddfce1 commit 5eb1a06

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/i18n.js

+4-17
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,6 @@ i18n
88
.use(LanguageDetector)
99
.use(reactI18nextModule)
1010
.init({
11-
// resources: {
12-
// en: {
13-
// translations: {
14-
// appName: 'hello from namespace 1',
15-
// },
16-
// nav: {
17-
// "linkNL": "my_link_nl",
18-
// "linkEN": "my_link_en",
19-
// }
20-
// },
21-
// nl: {
22-
// translations: {
23-
// appName: 'hoi',
24-
// },
25-
// }
26-
// },
27-
2811
fallbackLng: 'nl',
2912

3013
// have a common namespace used around the full app
@@ -40,6 +23,10 @@ i18n
4023
react: {
4124
wait: true,
4225
},
26+
27+
backend: {
28+
loadPath: `${process.env.PUBLIC_URL}/locales/{{lng}}/{{ns}}.json`,
29+
},
4330
});
4431

4532
export default i18n;

0 commit comments

Comments
 (0)