mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:54:33 +08:00
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:
@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user