Internationalization for Ember projects
Thanks to @mkszepp.
setLocale()
expects its 1st argument locale
to be a string, not an array.[!NOTE] See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
@babel/core
as a dependency. (The patch can also be found in v6.5.5
.)Thanks to @mkszepp. (The patch can also be found in v7.0.0-beta.5
.)
setupIntl()
and addTranslations()
now require specifying the locale.[!NOTE] See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
intl
service no longer calls setLocale()
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'
.)assert()
correctly in test helpers.broccoli-stew
(unused).extend
.fast-memoize
(unused).Thanks to @MichalBryxi and @LucasHill.
None.
[!NOTE] See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
broccoli-merge-files
. (The security patch can also be found in v6.5.4
.)Thanks to @LucasHill for removing the dependency. (The patch can also be found in v7.0.0-beta.3
.)
[!NOTE] See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
CHANGELOG.md
and tsconfig.json
to .npmignore
(reduced package size to 105 kB).ember generate translation
@intl
and @t
macros@dependentKeyCompat
decorator[!NOTE] See https://ember-intl.github.io/ember-intl/docs/migration/v7 for possible migration paths.
@dependentKeyCompat
should have fixed the error You attempted to update _locale [...] in the same computation.
that you might have seen in ember-intl@v6
. (thanks to @Windvis)[!IMPORTANT] If your
ember-intl
is currently between versions6.3.0
and6.5.2
, please update it to6.5.3
or higher.
Thanks to @johanrd for investigating the issue and providing the fix quickly.
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 inv7.0.0
. You can manually create the translation file (more accurately).
In the docs
folder, I created 3 additional projects so that there's a living documentation (tested in CI) of how apps, v1 addons, and v2 addons can provide translations.
I also updated the documentation site. You will find new content in:
Getting Started > Overview
Getting Started > Quickstart (Apps)
Getting Started > Quickstart (Addons)