Releases: OCTRI/ember-i18next
ember-i18next v1.1.0
Now passes a locale to the pre- and post-init actions, allowing them to perform work that depends on the locale, such as loading or unloading additional resources. The new locale is passed to pre-init actions, and the old locale is passed to post-init actions. See #24 for details. Thanks to @mpirio for making this happen.
ember-i18next v1.0.0
Includes changes needed to work with Ember 1.13, 2.0, and 2.1, and canary. Does not support versions of Ember prior to 1.13.
ember-i18next v0.3.1
Includes updates due to transfer to OCTRI organization. No code changes are included.
ember-i18next v0.3.0
Adds hooks that run around initialization of the i18next library. Any registered actions will be run when the i18next library is initialized as a result of a call to initLibraryAsyc
or changing the locale.
To register a function to run before the i18next library is initialized, use the i18n service's registerPreInitAction
method. Similarly, to register a function to run after the i18next library is initialized, use the registerPostInitAction
method. Pre- and post-init actions can be unregistered using the unregisterPreInitAction
/ unregisterPostInitAction
methods.
See the README for details and examples.
ember-i18next v0.3.0-beta.3
Fixes an issue introduced in 0.3.0-beta.2 where the i18n service's locale property was not getting initialized.
ember-i18next v0.3.0-beta.2
Fixes a race condition where post-init actions were being called before library initialization completed after a change in locale.
ember-i18next v0.3.0-beta.1
Adds experimental hooks that run around initialization of the i18next library. Any registered actions will be run when the i18next library is initialized as a result of a call to initLibraryAsyc
or changing the locale.
To register a function to run before the i18next library is initialized, use the i18n service's registerPreInitAction
method. Similarly, to register a function to run after the i18next library is initialized, use the registerPostInitAction
method. Pre- and post-init actions can be unregistered using the unregisterPreInitAction
/ unregisterPostInitAction
methods.
ember-i18next v0.2.0
To make working with i18next's capabilities easier and better encapsulate the library, the i18n service now exports all of i18next's public API. With this change, code like the following:
import Ember from 'ember';
import I18nMixin from '../mixins/i18n';
export default Ember.Route.extend(I18nMixin, {
// ...
afterModel: function (model) {
var translations = model.get('translations');
var i18next = this.get('i18n.i18next');
i18next.addResources(translations.get('locale'), 'namespace', translations.get('keys'));
}
});
Can be replaced with this instead:
import Ember from 'ember';
import I18nMixin from '../mixins/i18n';
export default Ember.Route.extend(I18nMixin, {
// ...
afterModel: function (model) {
var translations = model.get('translations');
var i18n = this.get('i18n');
i18n.addResources(translations.get('locale'), 'namespace', translations.get('keys'));
}
});
ember-i18next v0.1.0
In this release, the addon has been restructured so that the internationalization capabilities provided by i18next are exposed through an Ember service object. In addition, a mixin is provided that injects the service into the including class.
This release also removes all XHR requests from the initializer. Applications using the addon should now use the service's initLibraryAsync()
method to initialize i18next in a route.
See the pull request for the complete changes included.
ember-i18next v0.0.3
Fixes issue #5, allowing the HTMLBars helper to work on Ember.js 1.11.x.