Created
September 19, 2014 14:52
-
-
Save balinterdi/23bc5f3008512753f3e0 to your computer and use it in GitHub Desktop.
app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Application.initializer({ | |
name: "i18n", // <- this | |
initialize: function(container, application) { | |
container.register('i18n:main', i18n); | |
} | |
}); | |
Ember.Application.initializer({ | |
name: "injectI18n", | |
before: ["i18n"], // <- should match this, so that it runs before this | |
initialize: function(container, application) { | |
application.inject('component', 'i18n', 'i18n:main'); | |
application.inject('controller', 'i18n', 'i18n:main'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment