Skip to content

chore(deps): bump i18next from 27.2.2 to 27.2.9 - #1320

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps i18next from 27.2.2 to 27.2.9.

Release notes

Sourced from i18next's releases.

v27.2.9

  • fix: t('item', { count: 2n }) picks the plural form instead of throwing TypeError: Cannot convert a BigInt value to a number: a BigInt count (as some database drivers return for COUNT(*)) is converted to a number for Intl.PluralRules, {{count}} still gets the BigInt, and 0n looks up _zero like 0. Above Number.MAX_SAFE_INTEGER the form follows the rounded number. Thanks @​Asimmimx (#2484)

v27.2.8

  • fix(types): a t() call with context looks the key up along its own path in the namespace it names, instead of matching it against every key of every namespace. With several large namespaces each such call cost up to millions of type instantiations and could fail with TS2589, a literal context: 'x' soonest. A context value without a key is still an error, as since 25.9.0 (#2482)
  • fix: a language code without subtags gets its language part in the same casing as a code with subtags: with supportedLngs: ['en-US'], 'EN' (from ?lng=EN or a capitalised cookie) matches 'en-US' like 'en' and 'EN-GB' already did, instead of falling back to fallbackLng, and dir('AR') returns 'rtl' where Intl.Locale has no getTextInfo(). Thanks @​anishkun (#2483)
  • fix: dir() also returns 'rtl' for 'AR' or 'AR-EG' with cleanCode: false where Intl.Locale has no getTextInfo() (Node.js 22, some browsers)

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

  • fix: t('item', { count: 2n }) picks the plural form instead of throwing TypeError: Cannot convert a BigInt value to a number: a BigInt count (as some database drivers return for COUNT(*)) is converted to a number for Intl.PluralRules, {{count}} still gets the BigInt, and 0n looks up _zero like 0. Above Number.MAX_SAFE_INTEGER the form follows the rounded number. Thanks @​Asimmimx (#2484)

27.2.8

  • fix(types): a t() call with context looks the key up along its own path in the namespace it names, instead of matching it against every key of every namespace. With several large namespaces each such call cost up to millions of type instantiations and could fail with TS2589, a literal context: 'x' soonest. A context value without a key is still an error, as since 25.9.0 (#2482)
  • fix: a language code without subtags gets its language part in the same casing as a code with subtags: with supportedLngs: ['en-US'], 'EN' (from ?lng=EN or a capitalised cookie) matches 'en-US' like 'en' and 'EN-GB' already did, instead of falling back to fallbackLng, and dir('AR') returns 'rtl' where Intl.Locale has no getTextInfo(). Thanks @​anishkun (#2483)
  • fix: dir() also returns 'rtl' for 'AR' or 'AR-EG' with cleanCode: false where Intl.Locale has no getTextInfo() (Node.js 22, some browsers)

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
  • add2f77 27.2.9
  • dcc1487 changelog for 27.2.9
  • 0933589 changelog: #2484 under Unreleased
  • 4f69be6 fix: pick the plural form for a BigInt count instead of throwing (#2484)
  • 66b048c 27.2.8
  • 672109d changelog for 27.2.8
  • e920aeb changelog: #2483 and dir() under Unreleased
  • 9eaed7f fix: dir() finds a right-to-left language in any casing with cleanCode: false...
  • 3b4e67b fix: format a language code without subtags when taking its language part (#2...
  • f7855f1 changelog: #2482 under Unreleased
  • 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.9.
- [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.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: b351bec
Status: ✅  Deploy successful!
Preview URL: https://5f77d500.simple-module-python.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-i18n-in7t.simple-module-python.pages.dev

View logs

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 29, 2026

This branch has not been deployed

No deployments
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