i18n: Only load active language.

Before this if we selected zh-hans then i18next would laod zh-hans, zh and
en. Now it will only load zh-hans.
This commit is contained in:
Umair Khan 2017-10-18 10:10:01 +05:00 committed by Tim Abbott
parent 69fc227eb8
commit f04981513b
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ i18next.use(XHR)
detection: detectionOptions,
cache: cacheOptions,
fallbackLng: 'en',
load: 'currentOnly', // Only download the active language.
returnEmptyString: false, // Empty string is not a valid translation.
}, function () {
var i;