Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Sep 22, 2021

Bumps ember-l10n from 4.3.1 to 5.1.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
  • 3a0edd7 v5.1.0
  • 0c7f43f feat: Remove obsolete messages from en.po when extracting
  • 59db0f6 v5.0.0
  • 4c314b5 Refactor to Octane
  • f393d0f Remove initializer generator
  • 1ab2e27 Remove deprecated test-helpers
  • eea29b8 Remove unused ember-get-config dependency
  • 98024c1 Update ember-cli to 3.22.0 with ember-cli-update
  • 5db4d5f chore: Upgrade shelljs to 0.8.4
  • 1a50396 Ensure it handles duplicate, non-normalized source strings
  • 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 Sep 22, 2021
Bumps [ember-l10n](https://github.com/Cropster/ember-l10n) from 4.3.1 to 5.1.0.
- [Release notes](https://github.com/Cropster/ember-l10n/releases)
- [Commits](Cropster/ember-l10n@v4.3.1...v5.1.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.1.0 branch from 3367749 to f6a506d Compare October 20, 2021 15:39
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 27, 2021

Superseded by #22.

@dependabot dependabot bot closed this Oct 27, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ember-l10n-5.1.0 branch October 27, 2021 21:33
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