mirror of https://github.com/zulip/zulip.git
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:
parent
69fc227eb8
commit
f04981513b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue