- Drop support for
CLDR.js
in favor of the includedi18n-plurals.js
- Always use custom compiler; drop support for I18N_COMPILE_WITHOUT_HANDLEBARS; drop support for using the Handlebars compiler if full Handlebars is available.
{{t}}
helper obeys Ember-1-style argument quoting; unquoted arguments, including the key itself, are bound references{{t}}
helper no longer supports passing atagName
- Drop support for
I18N_TRANSLATE_HELPER_SPAN
flag
- Ember-I18n 2.9+ is not compatible with Ember 1.9+
- Use
Ember.$.isFunction
instead ofjQuery.isFunction
- Deprecate use of
tagName
in the{{t}}
helper - Implement pluralization logic in this project and remove dependency on CLDR.js
- Expose
I18n.missingMessage
for customising the "missing translation" message Makefile
ensures the environment hasnode
,npm
, andphantomjs
- Use internal UUID generation, since implementations differ across Ember versions
- Select template compiler on first use so
Ember.ENV.I18N_COMPILE_WITHOUT_HANDLEBARS
is sure to have been set properly. - Fix TranslateableAttributes tests on Ember Canary
- Better messaging during the build process
- Fixed overeager warnings related to I18N_COMPILE_WITHOUT_HANDLEBARS
and unquoted key arguments to the
{{t}}
helper.
- The
{{t}}
helper now warns if passed an unquoted key argument. It still uses unquoted arguments as string literals, but this behavior will change in the next major release. - Removed deprecation warning for those who've opt-in to
I18N_COMPILE_WITHOUT_HANDLEBARS
- Fixed a typo in the warning message for
I18N_COMPILE_WITHOUT_HANDLEBARS
- Remove check for
Ember.I18n.fire
as that was only necessary on Ember 0.9, which this library no longer supports. - Don't warn on missing translations. Clients that want to be notified
can subscribe to the
missing
event onEmber.I18n
. compileWithHandlebars
uses saved-offwarn
helper (which usesEmber.Logger.warn
rather thanEmber.warn
).- Run separate Travis builds for each dependency set.
- Add Sinon as a test dependency and use its spies in specs.
- Use
Ember.uuid
to generate unique IDs - Add a Handlebars-less compiler; enable with
Ember.ENV.I18N_COMPILE_WITHOUT_HANDLEBARS = true;
{{t}}
helper uses Metamorph tags.{{t}}
helper: allow turning off the default<span>
tag; enable withEmber.FEATURES.I18N_TRANSLATE_HELPER_SPAN = false;
- Drop support for Ember 0.x.
- Use
Ember.Handlebars
, notHandlebars
for helper management - The default
compileTemplate
throws anEmber.Error
if the fullEmber.Handlebars
is not available - Check
view.$()
instead ofview.state
as Ember is deprecating the latter in favor in favor ofview._state
, but doesn't consider either to be part of the public API. - Convert
Em
toEmber
for consistency
- relax CLDR and Handlebars dependencies via the
^
operator
- relax Ember dependency to ">0.9.7 <2"
- relax jQuery dependency to ">=1.7 <3"
- Add
Ember.I18n.on
- Emit
missing
events when translation missin - Add
{{ta}}
helper as shorthand for{{translateAttr}}
TranslateableProperties
observes when the translation key changes- Use the
afterRender
queue if available (Ember 1+) - Expose
Ember.I18n.eachTranslatedAttribute
- Add Ember warning if missing translation
- Add
I18n.exists(key)
- Avoid calling
compile
for missing translations
- Don't rely on
Ember.uuid
, but use it if Ember defines it
- No more CoffeeScript
- Use
Ember.uuid
instead ofjQuery.uuid
- Change license to APLv2
- Dotted-style keys win over nested-style keys
- Add
TranslateableProperties
mixin
- Support use with
jQuery.noconflict
- Support defining translations in nested objects
- Prefer
Ember.assert
toember_assert
- Add Bower support
- Use
Ember.Handlebars.get
instead ofgetPath
if on Ember 1
- Remove all references to
Sproutcore
andSC
- Use correct context for
getPath
when getting the value of a bound attribute
- Add inflection support via CLDR.js
- Use MIT license
- Make
I18n
available in theEmber
namespace - Use
Ember
, notSproutcore
Initial version