ember-i18next

Integrates i18next into Ember CLI apps.

MIT License

Downloads
253
Stars
8
Committers
12

Bot releases are hidden (Show)

ember-i18next - ember-i18next 5.0.0 Latest Release

Published by heathharrelson over 4 years ago

Updates dependencies and adds the ability to catch errors thrown during initialization.

Breaking changes

ember-i18next 5.0.0 updates the i18next dependency to version 19, which contains breaking changes. Review the i18next migration guide carefully prior to upgrading.

New Features

This release adds the ability to customize the behavior when a promise rejects in initLibraryAsync. Previously ember-i18next would only log the error to the console. For compatibility with previous versions, this is still the default behavior. However, you can now handle errors in a catch block if the rejectError configuration property is truthy. See the README for details.

Thanks to @mpirio for implementing this new feature.

Changes Included

  • PR #100: Documentation updates.
  • PR #79, #98: Upgrade to latest i18next and i18next-xhr-backend.
  • PR #95: Add configuration property to allow handling errors raised by initLibraryAsync. Thanks to @mpirio for this PR.
  • PR #88: Continuous integration changes.
  • Many dependency updates.
ember-i18next - ember-i18next 4.0.0

Published by heathharrelson over 5 years ago

Updates i18next and i18next-xhr-backend. No changes to ember-i18next API.

Breaking changes

ember-i18next 4.0.0 contains no changes to the ember-i18next API, but it updates the i18next dependency to version 15, which contains breaking changes. Review the i18next migration guide prior to upgrading.

Changes Included

  • PR #62: Upgrade to latest i18next and i18next-xhr-backend. Thanks to @mpirio for this PR.
  • PR #63: Use promises returned asynchronous i18next method calls.
ember-i18next - ember-i18next 3.0.2

Published by heathharrelson over 5 years ago

Updates dependencies.

Changes Included

  • PR #61: Update to Ember 3.7
ember-i18next - ember-i18next 3.0.1

Published by heathharrelson almost 6 years ago

Updates dependencies.

Changes Included

  • PR #60: Update merge to fix prototype pollution vulnerability.
ember-i18next - ember-i18next v3.0.0

Published by heathharrelson almost 6 years ago

Updates dependencies and migrates to use the new Ember testing APIs.

Breaking changes

ember-i18next 3.0.0 drops support for Ember 1.13. The addon has been tested with Ember 2.16 LTS, 2.18 LTS and Ember 3.x, but it should work down to version 2.3.

Version 3.0.0 also updates the i18next dependency to version 11, which contains breaking changes. Review the i18next migration guide prior to upgrading.

Changes Included

  • PR #56: Use the new Ember testing API.
  • PR #57: Update addon dependency to Ember 3.4.
  • PR #58: Update to the latest i18next and i18next-xhr-backend.
ember-i18next - ember-i18next v2.1.1

Published by heathharrelson almost 6 years ago

Changes Included

This release updates dependencies.

  • Update dependencies: PR #55
ember-i18next - ember-i18next v2.1.0

Published by heathharrelson over 6 years ago

Changes Included

This release updates dependencies and adds a new computed property macro that updates computed text on locale change. See the README for details on use.

  • Update addon dependency to Ember 3: PR #54
  • Add computed property macro: PR #52
ember-i18next - ember-i18next v2.0.0

Published by heathharrelson over 6 years ago

Breaking Changes

Updates the i18next dependency to version 10, which contains breaking changes. Review README.md and the i18next migration guide prior to upgrading.

Changes included

  • Remove use of Bower: PR #45
  • Remove use of Browserify: PR #47
  • Move code to the addon directory: PR #48
  • Use the new Ember modules API: PR #50
ember-i18next - ember-i18next v2.0.0-beta.1

Published by heathharrelson over 8 years ago

Breaking Changes

Updates the i18next dependency to version 3, which contains breaking changes. Review README.md and the i18next migration guide prior to upgrading.

Changes included

  • PR #32: Update to use i18next 3. Thanks to @john-coffey for implementing this.
  • PR #33: Return a safe string from the {{t}} helper, allowing translations to contain markup.
  • Miscellaneous code and documentation cleanup: #28, #29, #31, #36.
ember-i18next - ember-i18next v1.1.1

Published by heathharrelson almost 9 years ago

Specify the version string to add to the bower.json when the addon is installed, preventing broken builds (see issue #25).

ember-i18next - ember-i18next v1.1.0

Published by heathharrelson almost 9 years ago

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 - ember-i18next v1.0.0

Published by heathharrelson about 9 years ago

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 - ember-i18next v0.3.1

Published by heathharrelson over 9 years ago

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

ember-i18next - ember-i18next v0.3.0

Published by heathharrelson over 9 years ago

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 - ember-i18next v0.3.0-beta.3

Published by heathharrelson over 9 years ago

Fixes an issue introduced in 0.3.0-beta.2 where the i18n service's locale property was not getting initialized.

ember-i18next - ember-i18next v0.3.0-beta.2

Published by heathharrelson over 9 years ago

Fixes a race condition where post-init actions were being called before library initialization completed after a change in locale.

ember-i18next - ember-i18next v0.3.0-beta.1

Published by heathharrelson over 9 years ago

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 - ember-i18next v0.2.0

Published by heathharrelson over 9 years ago

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 - ember-i18next v0.1.0

Published by heathharrelson over 9 years ago

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 - ember-i18next v0.0.3

Published by heathharrelson over 9 years ago

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