Skip to content

build(deps): bump i18next from 27.2.2 to 27.2.4 - #2328

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/i18next-27.2.4
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/i18next-27.2.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps i18next from 27.2.2 to 27.2.4.

Release notes

Sourced from i18next's releases.

v27.2.4

  • fix(types): BackendModule.create takes the parameters i18next passes it: a backend with callbackApi: true gets create(languages, namespace, key, fallbackValue, callback, options), one with callbackApi: false gets create(languages, namespace, key, fallbackValue, options) and may return a promise. The types declared only the first four parameters, so a required fifth or sixth parameter failed to compile and an object-literal backend could not take them at all. One rare case now fails: a create: (...args) => other.create(...args) that forwards to a create typed with exactly four parameters. The doc comments of read and readMulti now describe their promise form (read(language, namespace) returning the data or a promise of it), which the types already accepted.
  • fix(types): getFixedT() takes its fourth parameter, { scopeNs }, the full list of namespaces the returned t is bound to, which selector keys use to find a namespace prefix; lookups still use ns (react-i18next's useTranslation passes it).
  • fix(types): the doc comment of saveMissingPlurals says @default true, the runtime default since the option came in 10.3.0, not false.

v27.2.3

  • fix: a variable in the options of a nested $t(key, { "name": "{{name}}" }) is escaped once. With the default escapeValue: true it was escaped for HTML before the options were parsed and again by the nested t(), so Tom & Jerry came out as Tom & Jerry (and react-i18next's Trans has shown Tom & Jerry since 17.1.10, with escapeValue: false too). These variables are now escaped for the options' JSON, whatever escapeValue is, and the nested t() escapes them like the values of a direct call; defaultValue and joinArrays there, which it does not interpolate, stay escaped once. A value with ", ', \ or a line break no longer breaks the options, with escapeValue: false a value can no longer inject options such as lng, and with skipOnVariables a {{placeholder}} inside a value is no longer interpolated a second time. The warning added in 26.0.6 now covers {{- var}} in these options, the one form still inserted unescaped, instead of escapeValue: false.
Changelog

Sourced from i18next's changelog.

27.2.4

  • fix(types): BackendModule.create takes the parameters i18next passes it: a backend with callbackApi: true gets create(languages, namespace, key, fallbackValue, callback, options), one with callbackApi: false gets create(languages, namespace, key, fallbackValue, options) and may return a promise. The types declared only the first four parameters, so a required fifth or sixth parameter failed to compile and an object-literal backend could not take them at all. One rare case now fails: a create: (...args) => other.create(...args) that forwards to a create typed with exactly four parameters. The doc comments of read and readMulti now describe their promise form (read(language, namespace) returning the data or a promise of it), which the types already accepted.
  • fix(types): getFixedT() takes its fourth parameter, { scopeNs }, the full list of namespaces the returned t is bound to, which selector keys use to find a namespace prefix; lookups still use ns (react-i18next's useTranslation passes it).
  • fix(types): the doc comment of saveMissingPlurals says @default true, the runtime default since the option came in 10.3.0, not false.

27.2.3

  • fix: a variable in the options of a nested $t(key, { "name": "{{name}}" }) is escaped once. With the default escapeValue: true it was escaped for HTML before the options were parsed and again by the nested t(), so Tom & Jerry came out as Tom & Jerry (and react-i18next's Trans has shown Tom & Jerry since 17.1.10, with escapeValue: false too). These variables are now escaped for the options' JSON, whatever escapeValue is, and the nested t() escapes them like the values of a direct call; defaultValue and joinArrays there, which it does not interpolate, stay escaped once. A value with ", ', \ or a line break no longer breaks the options, with escapeValue: false a value can no longer inject options such as lng, and with skipOnVariables a {{placeholder}} inside a value is no longer interpolated a second time. The warning added in 26.0.6 now covers {{- var}} in these options, the one form still inserted unescaped, instead of escapeValue: false.
Commits
  • 7b3e42a 27.2.4
  • afeb5aa changelog for 27.2.4
  • 6b70fcd fix(types): saveMissingPlurals documents @​default true
  • 2eb4186 fix(types): getFixedT takes its fourth parameter, fixedOpts
  • 1e4788b fix(types): BackendModule.create takes the callback and options i18next passes
  • 2f3c6c2 27.2.3
  • 595b53e changelog for 27.2.3
  • bb66134 fix: escape a variable in $t() nesting options once
  • See full diff 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [i18next](https://github.com/i18next/i18next) from 27.2.2 to 27.2.4.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next@v27.2.2...v27.2.4)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 27.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 25, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #2331.

@dependabot dependabot Bot closed this Nov 26, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/i18next-27.2.4 branch November 26, 2026 19:53
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants