do not try to load i18n for en_US, use language only: en

This commit is contained in:
Sebastian Sdorra
2018-11-15 19:28:17 +01:00
parent 60f7d93ad4
commit 51c9a4dbb2

View File

@@ -15,11 +15,14 @@ i18n
.init({ .init({
fallbackLng: "en", fallbackLng: "en",
// try to load only "en" and not "en_US"
load: "languageOnly",
// have a common namespace used around the full app // have a common namespace used around the full app
ns: ["commons"], ns: ["commons"],
defaultNS: "commons", defaultNS: "commons",
debug: true, debug: false,
interpolation: { interpolation: {
escapeValue: false // not needed for react!! escapeValue: false // not needed for react!!