Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
GH-31: Add no-op ember-i18n initializer
Browse files Browse the repository at this point in the history
The removal of the ember-i18n initializer had unseen consequences for
applications that were injecting the i18n service into other areas of
the application, as recommended by documentation in the project's wiki
(https://github.com/jamesarosen/ember-i18n/wiki/Doc:-i18n-Service).

As per the discussion in GH-31 this adds a no-op initializer back into
the code base to prevent breaks for applications injecting the i18n
service as per the wiki.
  • Loading branch information
swquinn committed Sep 13, 2016
1 parent 511c83c commit 8296f47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addon/initializers/ember-i18n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Ember from "ember";

export default {
name: 'ember-i18n',

initialize(registry) {
// No-op.
}
};
2 changes: 2 additions & 0 deletions app/initializers/ember-i18n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import initializer from 'ember-i18n/initializers/ember-i18n';
export default initializer;

0 comments on commit 8296f47

Please sign in to comment.