Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Oct 27, 2021

Bumps ember-l10n from 4.3.1 to 5.2.0.

Release notes

Sourced from ember-l10n's releases.

v5.1.0

v5.0.0

This release refactors the addon to Ember Octane. Mostly, everything stays the same, but the way you configure the addon changes, which results in breaking changes and needs attention. You can find details here: Cropster/ember-l10n#83

Breaking changes

Changed configuration

Instead of extending the service and putting configuration there, you now configure this addon fully through the config/environment.js file:

ENV['ember-l10n'] = {
  // This is required
  locales: ['en', 'de'],
// These are optional (defaults listed)
defaultLocale: 'en',
autoInitialize: false,
defaultPluralForm: 'nplurals=2; plural=(n != 1);',
jsonPath: '/assets/locales'
}

Other notable changes

  • Use Glimmer component for <GetText>- this is an internal change, the usage did not change at all.
  • Avoid using observers for the helpers - this is an internal change, we now manually register callbacks with the service for when the locale changes. Functionally, nothing changes here.
  • Make autoInitialize default to false. In most scenarios you want to manually set the locale in the application route's beforeModel hook or similar, in order to ensure that the locale file is loaded before the application is shown.
  • The deprecated ember-l10n/test-helpers.js file is removed. It is not needed anymore for quite some time.

You might also need to adjust something in your tests, if you relied on overwriting some properties of the l10n-service there. You can do so now like this:

class ExtendedL10nService extends L10nService {
  _loadConfig() {
    let config = {
      locales: ['de', 'en', 'ko'],
      autoInitialize: false,
      defaultLocale: 'de',
    };
return super._loadConfig(config);

}
_getWindow() {
return {};
</tr></table>

... (truncated)

Commits
  • df669bc Released v5.2.0
  • 02914b7 Released v5.1.1
  • 53c49fe Merge pull request #100 from Cropster/fn/update-dependencies
  • 1cf7fab Update @​babel/parser from 7.12.x to 7.15.x
  • 450bb2f Fix node test after linting changes
  • 558f203 Run yarn upgrade
  • 0812ea5 Update @​glimmer/syntax from 0.62.x to 0.80.x
  • 11480a0 Update inquirer from 7.x to 8.x
  • 0514f33 Update ember-cli-htmlbars from 5.x to 6.x
  • 7cc72b4 Run yarn upgrade
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 27, 2021
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ember-l10n-5.2.0 branch 2 times, most recently from 0619a1c to fad5a8a Compare November 3, 2021 07:02
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ember-l10n-5.2.0 branch from fad5a8a to 9332ccd Compare November 8, 2021 16:55
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ember-l10n-5.2.0 branch 2 times, most recently from 186f6f0 to ede22c1 Compare November 19, 2021 17:03
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ember-l10n-5.2.0 branch from ede22c1 to b47ea54 Compare December 1, 2021 15:35
Bumps [ember-l10n](https://github.com/Cropster/ember-l10n) from 4.3.1 to 5.2.0.
- [Release notes](https://github.com/Cropster/ember-l10n/releases)
- [Commits](Cropster/ember-l10n@v4.3.1...v5.2.0)

---
updated-dependencies:
- dependency-name: ember-l10n
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ember-l10n-5.2.0 branch from b47ea54 to 72c3fa2 Compare December 6, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant