Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created September 19, 2014 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balinterdi/23bc5f3008512753f3e0 to your computer and use it in GitHub Desktop.
Save balinterdi/23bc5f3008512753f3e0 to your computer and use it in GitHub Desktop.
app.js
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