This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
v3.0.0
- 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
andi18n-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 asi18n-plurals.js
{{t}}
helper usesregisterBoundHelper
. This makes the code smaller and faster. The helper no longer supports passingtagName
. The helper no longer obeys theI18N_TRANSLATE_HELPER_SPAN
environment flag.eachTranslatedAttribute
gracefully handlesnull
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 destroymissingMessage
takes the context as well as the translation key so users can generate more contextually-aware "missing template" messages.