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

Fix missing i18n path configuration #3

Merged
merged 2 commits into from
Jun 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ i18n
.use(LanguageDetector)
.use(reactI18nextModule)
.init({
// resources: {
// en: {
// translations: {
// appName: 'hello from namespace 1',
// },
// nav: {
// "linkNL": "my_link_nl",
// "linkEN": "my_link_en",
// }
// },
// nl: {
// translations: {
// appName: 'hoi',
// },
// }
// },

fallbackLng: 'nl',

// have a common namespace used around the full app
Expand All @@ -40,6 +23,10 @@ i18n
react: {
wait: true,
},

backend: {
loadPath: `${process.env.PUBLIC_URL}/locales/{{lng}}/{{ns}}.json`,
},
});

export default i18n;