Skip to content

Releases: OCTRI/ember-i18next

ember-i18next v1.1.0

16 Dec 18:08
Compare
Choose a tag to compare

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

28 Aug 00:28
Compare
Choose a tag to compare

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

09 Jun 16:12
Compare
Choose a tag to compare

Includes updates due to transfer to OCTRI organization. No code changes are included.

ember-i18next v0.3.0

09 Jun 15:58
Compare
Choose a tag to compare

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

27 May 16:21
Compare
Choose a tag to compare
Pre-release

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

26 May 20:40
Compare
Choose a tag to compare
Pre-release

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

26 May 20:38
Compare
Choose a tag to compare
Pre-release

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

08 May 18:50
Compare
Choose a tag to compare

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

07 May 17:44
Compare
Choose a tag to compare

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

27 Apr 21:50
Compare
Choose a tag to compare
ember-i18next v0.0.3 Pre-release
Pre-release

Fixes issue #5, allowing the HTMLBars helper to work on Ember.js 1.11.x.