Releases: ember-intl/ember-intl
v7.0.0-beta.6
Breaking changes
- Provided native types for the
intl
service. (This may cause TypeScript and Glint to produce new linting errors.) - Minimized API of the
intl
service. - Minimized API of the helpers.
Note
Use your text editor's Find feature with the pattern this.intl(?!\.t)
, to check if you might have used an API of the intl
service that no longer exists or is now private.
The options allowEmpty
, default
, and resilient
, once associated with the format*()
and t()
methods, have no effect and can be removed.
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Features
- The
intl
service lets end-developers specify what to do when a translation is missing - The
intl
service lets end-developers specify what to do when@formatjs/intl
errors
v7.0.0-beta.5
Thanks to @mkszepp.
Breaking changes
- The test helper
setLocale()
expects its 1st argumentlocale
to be a string, not an array.
Note
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Bug fixes
- Added
@babel/core
as a dependency. (The patch can also be found inv6.5.5
.)
Added @babel/core as a dependency (required by ember-cli-babel@v8)
v7.0.0-beta.4
Breaking changes
- The test helpers
setupIntl()
andaddTranslations()
now require specifying the locale. - The test helpers API has been minimized. (This change is unlikely to impact your projects.)
Note
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Bug fixes
- The
intl
service no longer callssetLocale()
in the constructor. (In technical terms, locales no longer lists'en-us'
by default. In layman's terms,ember-intl
no longer assumes that all projects support'en-us'
.) - Used
assert()
correctly in test helpers.
Dependencies
- Removed
broccoli-stew
(unused). - Removed
extend
. - Removed
fast-memoize
(unused).
v7.0.0-beta.3
Thanks to @MichalBryxi and @LucasHill.
Breaking changes
None.
Note
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Dependencies
- Removed
broccoli-merge-files
. (The security patch can also be found inv6.5.4
.)
Removed broccoli-merge-files (security patch)
Thanks to @LucasHill for removing the dependency. (The patch can also be found in v7.0.0-beta.3
.)
v7.0.0-beta.2
Breaking changes
- Updated minimum requirements for Ember, Node, and TypeScript.
Note
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Bug fixes
- Added
CHANGELOG.md
andtsconfig.json
to.npmignore
(reduced package size to 105 kB). - Removed incorrect passage in quickstart for addons. Updated the migration guide to v7.
v7.0.0-beta.1
Breaking changes
- Removed
ember generate translation
- Removed
@intl
and@t
macros - Removed the use of
@dependentKeyCompat
decorator
Note
See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
Bug fixes
- The removal of
@dependentKeyCompat
should have fixed the errorYou attempted to update _locale [...] in the same computation.
that you might have seen inember-intl@v6
. (thanks to @Windvis)
Fixed a memory leak introduced in v6.3.0. Ensured that registerDestructor is called when helpers are destroyed.
Important
If your ember-intl
is currently between versions 6.3.0
and 6.5.2
, please update it to 6.5.3
or higher.
Thanks to @johanrd for investigating the issue and providing the fix quickly.
Updated ember-cli-typescript to v5.3.0. Deprecated `ember g translation`.
Updating ember-cli-typescript
will help remove warnings that ember-intl
(along with other addons) might have produced.
WARNING: ember-cli-typescript requires ember-cli-babel ^7.17.0, but you have version 8.0.0 installed; your TypeScript files may not be transpiled correctly
Important
The blueprint files, which make ember g translation <locale>
currently possible, will be removed in v7.0.0
. You can manually create the translation file (more accurately).