Release 0.8.0
π₯ Breaking Change
π Enhancement
Updating from 0.7.0
When updating, follow these steps:
- Create new one-time boilerplate:
ember generate ember-l10n
- Re-create all locale files:
ember gettext:convert
(manually delete files at translations/*.json, the translations folder should not contain json files anymore). - Add locales directory to
staticPaths
:
// in ember-cli-build.js, at the end of file
return require('@embroider/compat').compatBuild(app, Webpack, {
// Ensure `locales` are considered static & lazy loaded
staticAppPaths: ['locales'],
});
Embroider optimized
The new build process is optimized for Embroider. Since it is less "magic" now, and all the locale loading stuff now lives in the host app, it should also be possible to make it work in classic builds, by changing the auto-generated locale import map. However, the "happy" path is now embroider centric.
Committers: 1
- Francesco Novy (@mydea)