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

v3.0.0

Compare
Choose a tag to compare
@jamesarosen jamesarosen released this 16 Mar 17:51
· 219 commits to master since this release
  • Compatible with Ember 1.x. Notably, compatible with Ember 1.10+, which Ember-I18n 2.9.1 was not.
  • Compatible with Handlebars 1.x and 2.x.
  • Basic Ember-CLI support. When using Ember-I18n as an Ember-CLI add-on, it installs itself as a Bower dependency and adds i18n.js and i18n-plurals.js to the app.
  • Drop built-in support for Handlebars template compilation. Ember-I18n ships with support for very basic Handlebars-style templates like "Hello, {{person.name}}". The template compilation method is part of the public API and can be overridden.
  • Built-in translation compiler is more friendly to whitespace within interpolations.
  • Drop support for the external CLDR.js definition of pluralization rules. These rules are now included as i18n-plurals.js
  • {{t}} helper uses registerBoundHelper. This makes the code smaller and faster. The helper no longer supports passing tagName. The helper no longer obeys the I18N_TRANSLATE_HELPER_SPAN environment flag.
  • eachTranslatedAttribute gracefully handles null translation keys
  • Drop support for {{translateAttr}}. This helper was unbound. Instead use a sub-expression: <img title="{{unbound (t 'my.img.title')}}>".
  • Interpolations are always escaped by default. (This was the intended behavior before, but there were bugs that caused some interpolations to come through unescaped.) Use Ember.Handlebars.SafeString or triple-stache notation to avoid over-escaping.
  • TranslateableProperties cleans up translated property observers on destroy
  • missingMessage takes the context as well as the translation key so users can generate more contextually-aware "missing template" messages.