mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
i18n: Remove now-unused ensure_i18n function.
This commit is contained in:
@@ -18,6 +18,4 @@ i18n.t = function (str, context) {
|
|||||||
return 'translated: ' + str;
|
return 'translated: ' + str;
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.ensure_i18n = function (f) { f(); };
|
|
||||||
|
|
||||||
module.exports = i18n;
|
module.exports = i18n;
|
||||||
|
|||||||
@@ -20,10 +20,6 @@ i18next
|
|||||||
returnEmptyString: false, // Empty string is not a valid translation.
|
returnEmptyString: false, // Empty string is not a valid translation.
|
||||||
});
|
});
|
||||||
|
|
||||||
i18next.ensure_i18n = function (callback) {
|
|
||||||
callback();
|
|
||||||
};
|
|
||||||
|
|
||||||
// garbage collect all old-style i18n translation maps in localStorage.
|
// garbage collect all old-style i18n translation maps in localStorage.
|
||||||
$(function () {
|
$(function () {
|
||||||
if (!localstorage.supported()) {
|
if (!localstorage.supported()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user