mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43: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:
@ -1,7 +1,6 @@
|
||||
var define, requirejs;
|
||||
|
||||
(function() {
|
||||
// In future versions of ember we don't need this
|
||||
var EMBER_MODULES = {};
|
||||
var ALIASES = {
|
||||
"ember-addons/ember-computed-decorators":
|
||||
@ -9,6 +8,8 @@ var define, requirejs;
|
||||
"discourse/lib/raw-templates": "discourse-common/lib/raw-templates",
|
||||
"preload-store": "discourse/lib/preload-store"
|
||||
};
|
||||
|
||||
// In future versions of ember we don't need this
|
||||
if (typeof Ember !== "undefined") {
|
||||
EMBER_MODULES = {
|
||||
jquery: { default: $ },
|
||||
@ -140,6 +141,9 @@ var define, requirejs;
|
||||
},
|
||||
"@ember/object/internals": {
|
||||
guidFor: Ember.guidFor
|
||||
},
|
||||
I18n: {
|
||||
default: I18n
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user