Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for i18next v24 #452

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Support for i18next v24 #452

merged 3 commits into from
Nov 25, 2024

Conversation

moraleslevi
Copy link
Contributor

What are you trying to accomplish?

Required changes to support i18next v24.

What approach did you choose and why?

The latest version of i18next [v24] makes the Intl API required in all cases. This PR changes the call from i18next.translator.pluralResolver.shouldUseIntlApi (which was removed) to a straight check on Intl which matches the i18next implementation.

What should reviewers focus on?

It seems like we require Intl or a polyfill already, so this shouldn't qualify as a breaking change. Any consequences we might be missing?

The impact of these changes

The Intl API is already required, but this enforces it more directly in this library. It is supported in all major browsers with polyfills available for supporting older browsers.

Testing

...

Checklist

  • I have added a CHANGELOG entry for this change (or determined that it isn't needed)

dependabot bot and others added 2 commits November 22, 2024 17:15
Bumps [i18next](https://github.com/i18next/i18next) from 23.16.8 to 24.0.0.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next@v23.16.8...v24.0.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@moraleslevi moraleslevi marked this pull request as ready for review November 25, 2024 17:51
@moraleslevi moraleslevi self-assigned this Nov 25, 2024
@moraleslevi moraleslevi merged commit 3e5a355 into main Nov 25, 2024
4 checks passed
@moraleslevi moraleslevi deleted the moraleslevi/remove-intl-check branch November 25, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants