UNPKG

10.2 kBMarkdownView Raw
1## 4.3.0
2
3 * Include Ember 1.12 support only on Ember 1.12. This project now
4 uses ember-cli-version-checker and broccoli-funnel to selectively
5 include library files based on the Ember version.
6 * Support Glimmer2 by allowing `namedArgs` to be an `EmptyObject`
7 * use `Ember.String.htmlSafe` instead of
8 `new Ember.Handlebars.SafeString`
9 * Check the `_isMissing` flag on generated translations so
10 missing translations _stay missing_
11 * Reserve `locale` and `htmlSafe` attributes for future library use
12 * Ignore `.ember-cli` so developers can customize their setup
13 * Don't use QUnit 2+ for tests
14
15## 4.2.2
16
17 * set `isLocalizationFramework` for other addons
18 * change `Stream` import to support latest Ember (even though
19 ember-i18n doesn't _rely_ on `Stream` for Ember 1.13+, it needs
20 to _import_ it)
21
22## 4.2.1
23
24 * use `Ember.assign` instead of `Ember.merge` if available
25 * add `no` locale support
26
27## 4.2.0
28
29 * remove `Stream` awareness from `service:i18n` to ensure streamless
30 operation on Ember 1.13+
31 * correct Polish pluralization
32 * pass ID to `Ember.warn` to prevent deprecation warnings
33 * `missingMessage` gets called on the `service:i18n` instance
34 * coerce `count` to a number
35 * don't use ES2015 classes to ensure IE8 compatibility
36 * use public `getOwner` API for container / registry functions
37
38## 4.1.4
39
40 * fix incompatibility with Ember 2.2 `Stream` class
41 * `I18nService#locales` are now sorted
42 * `t` macro adds `i18n.locale` as a dependency so macro-defined
43 properties update when the locale changes
44
45## 4.1.3
46
47 * More Ember 2.1 compatibility
48
49## 4.1.2
50
51 * Ember 2.1 compatibility
52
53## 4.1.1
54
55 * prevent warnings about missing `rtl` definition for included locales
56 * improve warning about missing `rtl` for app-defined locales
57
58## 4.1.0
59
60 * `service:i18n` now has a `locales` property that lists available locales
61 * support passing an `Array` of fallback keys via `default: [...]`
62 * if the app specifies an unknown locale, fall back to the configuration for
63 `zh` and print a warning instead of throwing an exception
64 * use `Object.keys`, not `Ember.keys` for enumerating properties
65 * destroy the `Stream` created in the legacy helper (pre-Glimmer) when its
66 view is destroyed
67 * test against Ember 1.12
68
69## 4.0.0
70
71 * declare a valid SPDX license (no change in license, just in the
72 string representation)
73 * support apps with `podModuleSuffix`
74
75## 4.0.0-beta.4
76
77 * relax ember dependency to `>=1.12.0 <1.13.0 || >=1.13.1 <3.0.0`, which is
78 "1.12.x, 1.13.x except 1.13.0, and 2.x".
79
80## 4.0.0-beta.3
81
82 * Support Ember 1.13.1+ and 2.0+. **Note** this release is not compatible with
83 v1.13.0 and never will be.
84 * Stop auto-injecting `service:i18n` into Components, Controllers, and Routes.
85 Clients should instead use `i18n: Ember.inject.service()` as needed.
86 * Fix Spanish spelling.
87 * Fix `{{t}}` helper with dynamic keys.
88 * Add `locale` blueprint
89 * Use `Ember.Helper` if available (Ember >= 1.13)
90 * Use `Ember.Service` if available (Ember >= 1.13)
91 * Remove dependency on `Ember.EnumerableUtils.map` as that will be removed in
92 Ember 2.0.
93
94## 4.0.0-beta.2
95
96 * add repository to `package.json`
97 * use get to look up i18n service
98 * `t` macro works without passing an interpolations map
99 * fix bug in `add-translations` when there were no existing translations
100 for the locale
101
102## 4.0.0-alpha
103
104 * Restart project as a native Ember-CLI addon
105 * Translations now recompute when locale changes
106 * Move central API to `service:i18n`, which exposes `locale`, `t`, and
107 `addTranslations`
108 * Add `translationMacro` for defining translated computed properties
109 * Remove `eachTranslatedAttribute`, `TranslateableProperties`, and
110 `TranslateableAttributes`, which are better expressed as computed
111 property macros
112 * Built-in compiler now applies RTL Unicode markers *before* marking the
113 result HTML-safe. (Previously, `rtl = true` broke HTML safety.)
114
115## 3.0.1
116
117 * Fix a bug where `missingMessage` held on to the first `context` it was sent for a given translation key. Now it recomputes on each invocation.
118
119## 3.0.0
120
121 * Compatible with Ember 1.x. Notably, compatible with Ember 1.10+, which Ember-I18n 2.9.1 was not.
122 * Compatible with Handlebars 1.x and 2.x.
123 * 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.
124 * 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.
125 * Built-in translation compiler is more friendly to whitespace within interpolations.
126 * Drop support for the external `CLDR.js` definition of pluralization rules. These rules are now included as `i18n-plurals.js`
127 * `{{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.
128 * `eachTranslatedAttribute` gracefully handles `null` translation keys
129 * Drop support for `{{translateAttr}}`. This helper was unbound. Instead use a sub-expression: `<img title="{{unbound (t 'my.img.title')}}>"`.
130 * 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.
131 * `TranslateableProperties` cleans up translated property observers on destroy
132 * `missingMessage` takes the context as well as the translation key so users can generate more contextually-aware "missing template" messages.
133
134## 2.9.1, 2.2.3, 2.1.1 (2014-12-24)
135
136 * Handlebars-less template compiler escapes interpolations
137 by default. Use triple-stache syntax or
138 `Ember.Handlebars.SafeString` for HTML-safe interpolations.
139
140## 2.9.0 2014-10-20
141
142 * Ember-I18n 2.9+ is not compatible with Ember 1.9+
143 * Use `Ember.$.isFunction` instead of `jQuery.isFunction`
144 * Deprecate use of `tagName` in the `{{t}}` helper
145 * Implement pluralization logic in this project and remove
146 dependency on CLDR.js
147 * Expose `I18n.missingMessage` for customising the
148 "missing translation" message
149 * `Makefile` ensures the environment has `node`, `npm`,
150 and `phantomjs`
151
152## 2.2.2 2014-09-16
153
154 * Use internal UUID generation, since implementations differ
155 across Ember versions
156 * Select template compiler on first use so
157 `Ember.ENV.I18N_COMPILE_WITHOUT_HANDLEBARS` is sure to have
158 been set properly.
159 * Fix TranslateableAttributes tests on Ember Canary
160 * Better messaging during the build process
161
162## 2.2.1 2014-08-17
163
164 * Fixed overeager warnings related to I18N_COMPILE_WITHOUT_HANDLEBARS
165 and unquoted key arguments to the `{{t}}` helper.
166
167## 2.2.0 2014-08-16
168
169 * The `{{t}}` helper now warns if passed an unquoted key argument.
170 It still uses unquoted arguments as string literals, but this
171 behavior will change in the next major release.
172 * Removed deprecation warning for those who've opt-in to
173 `I18N_COMPILE_WITHOUT_HANDLEBARS`
174 * Fixed a typo in the warning message for
175 `I18N_COMPILE_WITHOUT_HANDLEBARS`
176 * Remove check for `Ember.I18n.fire` as that was only
177 necessary on Ember 0.9, which this library no longer supports.
178 * Don't warn on missing translations. Clients that want to be notified
179 can subscribe to the `missing` event on `Ember.I18n`.
180 * `compileWithHandlebars` uses saved-off `warn` helper (which
181 uses `Ember.Logger.warn` rather than `Ember.warn`).
182 * Run separate Travis builds for each dependency set.
183 * Add Sinon as a test dependency and use its spies in specs.
184
185## 2.1.0 2014-08-08
186
187 * Use `Ember.uuid` to generate unique IDs
188 * Add a Handlebars-less compiler; enable with
189 `Ember.ENV.I18N_COMPILE_WITHOUT_HANDLEBARS = true;`
190 * `{{t}}` helper uses Metamorph tags.
191 * `{{t}}` helper: allow turning off the default `<span>`
192 tag; enable with
193 `Ember.FEATURES.I18N_TRANSLATE_HELPER_SPAN = false;`
194
195## 2.0.0 2014-05-28
196
197 * Drop support for Ember 0.x.
198
199## v1.6.4 2014-05-27
200
201 * Use `Ember.Handlebars`, not `Handlebars` for helper management
202 * The default `compileTemplate` throws an `Ember.Error` if the full
203 `Ember.Handlebars` is not available
204 * Check `view.$()` instead of `view.state` as Ember is deprecating the
205 latter in favor in favor of `view._state`, but doesn't consider either
206 to be part of the public API.
207 * Convert `Em` to `Ember` for consistency
208
209## v1.6.3 2014-02-19
210
211 * relax CLDR and Handlebars dependencies via the `^` operator
212
213## v1.6.2 2014-02-19
214
215 * relax Ember dependency to ">0.9.7 <2"
216
217## v1.6.1 2014-02-09
218
219 * relax jQuery dependency to ">=1.7 <3"
220
221## v1.6.0 2014-02-06
222
223 * Add `Ember.I18n.on`
224 * Emit `missing` events when translation missin
225 * Add `{{ta}}` helper as shorthand for `{{translateAttr}}`
226 * `TranslateableProperties` observes when the translation key changes
227 * Use the `afterRender` queue if available (Ember 1+)
228 * Expose `Ember.I18n.eachTranslatedAttribute`
229
230## v1.5.0 2013-07-30
231
232 * Add Ember warning if missing translation
233 * Add `I18n.exists(key)`
234 * Avoid calling `compile` for missing translations
235
236## v1.4.1 2013-06-25
237
238 * Don't rely on `Ember.uuid`, but use it if Ember defines it
239
240## v1.4.0 2013-06-04
241
242 * No more CoffeeScript
243 * Use `Ember.uuid` instead of `jQuery.uuid`
244 * Change license to APLv2
245 * Dotted-style keys win over nested-style keys
246 * Add `TranslateableProperties` mixin
247
248## v1.3.2 2013-01-09
249
250 * Support use with `jQuery.noconflict`
251
252## v1.3.1 2013-01-03
253
254 * Support defining translations in nested objects
255 * Prefer `Ember.assert` to `ember_assert`
256 * Add Bower support
257 * Use `Ember.Handlebars.get` instead of `getPath` if on Ember 1
258
259## v1.3.0 2012-04-20
260
261 * Remove all references to `Sproutcore` and `SC`
262 * Use correct context for `getPath` when getting the value of a bound attribute
263
264## v1.2.0 2012-02-14
265
266 * Add inflection support via CLDR.js
267
268## v1.1.0 2012-01-24
269
270 * Use MIT license
271 * Make `I18n` available in the `Ember` namespace
272 * Use `Ember`, not `Sproutcore`
273
274## v1.0.0 2011-09-29
275
276Initial version
277
\No newline at end of file