Skip to content

build(deps): bump i18next from 27.2.2 to 27.2.7 - #2333

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps i18next from 27.2.2 to 27.2.7.

Release notes

Sourced from i18next's releases.

v27.2.7

  • fix: addResource, and with it saveMissing writing to the store, keeps a key below a number, a boolean or an array's length flat, like it already did below a string, instead of throwing Cannot create property or Invalid array length. A request to i18next-http-middleware's missingKeyHandler with {"a":5,"a.b":"x"} got a 500 from that throw.

v27.2.6

  • fix: an empty plural default value counts, like defaultValue: '': t('key', { count: 0, defaultValue_zero: '', defaultValue_other: '{{count}} items' }) returns '' instead of "0 items", and saveMissing saves '' for a form given as '' (key_zero too) instead of another form's text. A form without its own default saves defaultValue, then the other default, instead of the default resolved for the current count. Thanks @​arba-octo (#2480)

v27.2.5

  • fix(types): LoggerModule's log, warn and error take one array, the way i18next calls them (log(args)); they were typed with rest parameters, so a logger typed to spread ...args got the array as its only argument. Loggers typed either way still compile.
  • fix(types): I18nFormatModule declares the members i18next calls: init, parse, addLookupKeys, handleAsObject and getResource, all optional. It declared only type, so an object-literal i18n format with these members failed to compile.

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.7

  • fix: addResource, and with it saveMissing writing to the store, keeps a key below a number, a boolean or an array's length flat, like it already did below a string, instead of throwing Cannot create property or Invalid array length. A request to i18next-http-middleware's missingKeyHandler with {"a":5,"a.b":"x"} got a 500 from that throw.

27.2.6

  • fix: an empty plural default value counts, like defaultValue: '': t('key', { count: 0, defaultValue_zero: '', defaultValue_other: '{{count}} items' }) returns '' instead of "0 items", and saveMissing saves '' for a form given as '' (key_zero too) instead of another form's text. A form without its own default saves defaultValue, then the other default, instead of the default resolved for the current count. Thanks @​arba-octo (#2480)

27.2.5

  • fix(types): LoggerModule's log, warn and error take one array, the way i18next calls them (log(args)); they were typed with rest parameters, so a logger typed to spread ...args got the array as its only argument. Loggers typed either way still compile.
  • fix(types): I18nFormatModule declares the members i18next calls: init, parse, addLookupKeys, handleAsObject and getResource, all optional. It declared only type, so an object-literal i18n format with these members failed to compile.

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
  • 0203350 27.2.7
  • b34dbe5 changelog for 27.2.7
  • fe0640b fix: setPath keeps a key below a number, boolean or array length flat instead...
  • 4f8ce99 27.2.6
  • de03306 changelog for 27.2.6
  • 3a3bdfb fix: saveMissing gives a plural form without its own default the plain or "ot...
  • 87fabd7 fix: preserve empty plural default values (#2480)
  • 4b6860e 27.2.5
  • 57ada53 changelog for 27.2.5
  • 70a1fb8 fix(types): LoggerModule takes one array, I18nFormatModule declares the membe...
  • 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 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.7.
- [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.7)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 27.2.7
  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 27, 2026
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