Skip to content

Release 0.8.0

Compare
Choose a tag to compare
@mydea mydea released this 26 Nov 07:39
· 227 commits to main since this release

πŸ’₯ Breaking Change

  • ember-l10n, gettext-parser
    • #90 Update locale import to be more Embroider compatible (@mydea)

πŸš€ Enhancement

  • ember-l10n, gettext-parser
    • #90 Update locale import to be more Embroider compatible (@mydea)

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