v4.0.0-beta.1
版本发布时间: 2015-05-29 04:34:37
jamesarosen/ember-i18n最新发布版本:v5.3.0(2018-10-23 00:30:55)
Caveats
Ember-I18n v4.0.0-beta.1 is not compatible with Glimmer and Ember 1.13. See the stateful helpers RFC and the helper registration RFC for more information.
Ember-I18n 4.0 is a significant departure from previous versions. It has incorporated many of the ideas from ember-cli-i18n. (See ember-cli-i18n#56 for more information.)
Changes
- Restart project as a native Ember-CLI addon
- Translations now recompute when locale changes
- Move central API to
service:i18n
, which exposeslocale
,t
, andaddTranslations
- Add
translationMacro
for defining translated computed properties - Remove
eachTranslatedAttribute
,TranslateableProperties
, andTranslateableAttributes
, which are better expressed as computed property macros. (TranslateableAttributes
may come back if there's a strong enough use-case.) - Built-in compiler now applies RTL Unicode markers before marking the result HTML-safe. (Previously,
rtl = true
broke HTML safety.)