DEV: import I18n instead of global usage (#9768)

Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
Co-authored-by: Robin Ward <robin.ward@gmail.com>

Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
This commit is contained in:
Robin Ward
2020-05-13 16:23:41 -04:00
committed by GitHub
parent 1059557ce1
commit eab560fe2a
352 changed files with 369 additions and 13 deletions

View File

@ -4,6 +4,16 @@ __performEmojiUnescape = require("pretty-text/emoji").performEmojiUnescape;
__buildReplacementsList = require("pretty-text/emoji").buildReplacementsList;
__performEmojiEscape = require("pretty-text/emoji").performEmojiEscape;
I18n = {
t(a, b) {
return __helpers.t(a, b);
}
};
define("I18n", ["exports"], function(exports) {
exports.default = I18n;
});
__utils = require("discourse/lib/utilities");
__emojiUnicodeReplacer = null;
@ -90,9 +100,3 @@ function __lookupPrimaryUserGroup(username) {
function __getCurrentUser(userId) {
return __helpers.get_current_user(userId);
}
I18n = {
t: function(a, b) {
return __helpers.t(a, b);
}
};