mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
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:
@@ -48,6 +48,7 @@ i18next.use(XHR)
|
|||||||
detection: detectionOptions,
|
detection: detectionOptions,
|
||||||
cache: cacheOptions,
|
cache: cacheOptions,
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
|
load: 'currentOnly', // Only download the active language.
|
||||||
returnEmptyString: false, // Empty string is not a valid translation.
|
returnEmptyString: false, // Empty string is not a valid translation.
|
||||||
}, function () {
|
}, function () {
|
||||||
var i;
|
var i;
|
||||||
|
|||||||
Reference in New Issue
Block a user