Skip to content

build(deps): bump i18next from 25.7.3 to 27.2.9 in /frontends/web in the npm_and_yarn group across 1 directory - #4637

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/frontends/web/npm_and_yarn-b6dd843929
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/frontends/web/npm_and_yarn-b6dd843929

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the npm_and_yarn group with 1 update in the /frontends/web directory: i18next.

Updates i18next from 25.7.3 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.

v27.2.2

  • fix: setDefaultNamespace() works on a clone. A clone's translator keeps its own options object, so the call changed i18n.options.defaultNS while t() kept using the old default namespace. i18next-http-middleware hands every request a clone, so req.i18n.setDefaultNamespace() did nothing there. (#2106)
  • fix: supportedLngs works in any casing. Every other language code is formatted (pt-br to pt-BR, EN to en, all lowercase with lowerCaseLng), but supportedLngs was compared as written, so supportedLngs: ['pt-br'], ['EN'], or ['pt-BR'] with lowerCaseLng: true refused that language and fell back. They are now compared in that formatted form (also by loadLanguages()), while options.supportedLngs stays as written. (#1791)
  • fix(types): resources typed with named interfaces get their nested keys. The key types only walked into objects with an index signature, which a type alias has and an interface does not, so t('nested.key') failed with TS2345 while t('nested') compiled. Interfaces now give the same keys as type aliases, so t('nested') without returnObjects is rejected for them too. (#2326)
  • fix(types): typed keys work with strictNullChecks: false. Without strict null checks undefined passes extends string, so the key prefix, namespace and context checks took a missing keyPrefix, ns or context for a value: t('title') was rejected (only t('ns:title') compiled), t() returned string, and react-i18next's Trans accepted no i18nKey. A new type test project compiles with strictNullChecks: false; with strict null checks the types resolve as before. (#2085)

v27.2.1

  • fix: a variable passed as undefined renders as an empty string when its placeholder has a format too ({{amount, number}}), as {{amount}} already did. The placeholder stayed in the result with the default skipOnVariables: true, and debug mode logged "missed to pass in variable" with either setting. Thanks @​Vineet829 (#2479)

v27.2.0

  • fix: an error thrown by a load callback or a listener (the callback of init, changeLanguage, loadNamespaces or loadLanguages, or a languageChanged / loaded listener) is no longer handed back to the backend connector as if the read had failed. With a backend whose read returns a value or a promise, the connector got that error a second time: the namespace that had loaded was marked as failed, failedLoading was emitted with your error and the count of running reads dropped to -1. The error now reaches your app: it is thrown from the call that started the load for a read that returns a value, and it is an unhandled rejection for a read that returns a promise, which ends a Node.js process unless you handle unhandledRejection. Thanks @​SudeepGowda55 (#2477)
  • fix: when a load callback throws, the other callbacks waiting for the same namespaces are still called and the loaded event is still emitted, and the error is thrown on after that. A second loadNamespaces() for the same namespace never called back before.
  • fix: addResourceBundle(lng, ns, resources, true, true) overwrites numbers and booleans too. Only strings were replaced, so { n: 0 } stayed 0 after adding { n: 5 }, and adding an object where the bundle had a number, boolean or null threw Cannot create property ... on number, also without overwrite. With overwrite, a number, boolean or null now also replaces a nested object, as a string already did. Thanks @​SudeepGowda55 (#2476)
  • fix: with keySeparator: false, a namespace separator inside the key after the namespace is kept. t('common:errors:required') looked up 'errorsfalserequired' instead of the flat key 'errors:required' that i18next-cli extracts (also for a selector like $ => $.common['errors:required']), and reported the missing key under that name. This dates back to 11.3. Thanks @​SudeepGowda55 (#2478)

v27.1.5

  • fix: off(event, listener) removes a listener added with once(). once() registers a wrapper, so off() with the listener itself found nothing and the listener still ran on the next event. A once() listener is now also removed before it runs, so one that emits the same event again (like calling changeLanguage() from languageChanged) or throws runs only once. Thanks @​SudeepGowda55 (#2475)

v27.1.4

  • fix(types): with enableSelector, assigning a t function to a wider TFunction (TFunction<'ns'> to TFunction<'ns', string> or TFunction<Namespace>, or a key prefix to a wider one) failed with TS2590 "Expression produces a union type that is too complex to represent" once the namespaces had about 600 top-level keys together. This started in 26.3.3. Selector results for JSON arrays that mix arrays with objects or strings also keep the inner arrays as arrays. Thanks @​reckter (#2474)

v27.1.3

  • security: a language code named after a property every object inherits (hasOwnProperty, isPrototypeOf, toLocaleString, __defineGetter__, ...) made the backend connector throw obj[k].push is not a function when its load finished. A language detector passes such a code on from a request (?lng=hasOwnProperty), and with an asynchronous backend nothing caught the throw, so one request ended a Node.js server process (in a browser, init() never resolved). Now these codes load like any other unknown language. Thanks @​superbot-helper (GHSA-q76c-gcvw-89x9)
  • fix: with an object fallbackLng, a language code named like an Object.prototype property (constructor, toString, hasOwnProperty, constructor-US) gets the default fallback instead of making t(), exists(), getFixedT() and changeLanguage() throw fallbackCodes.forEach is not a function. Thanks @​cyphercodes (#2473, #2472)

... (truncated)

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 &amp;amp; Jerry (and react-i18next's Trans has shown Tom &amp; 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.

27.2.2

  • fix: setDefaultNamespace() works on a clone. A clone's translator keeps its own options object, so the call changed i18n.options.defaultNS while t() kept using the old default namespace. i18next-http-middleware hands every request a clone, so req.i18n.setDefaultNamespace() did nothing there. (#2106)
  • fix: supportedLngs works in any casing. Every other language code is formatted (pt-br to pt-BR, EN to en, all lowercase with lowerCaseLng), but supportedLngs was compared as written, so supportedLngs: ['pt-br'], ['EN'], or ['pt-BR'] with lowerCaseLng: true refused that language and fell back. They are now compared in that formatted form (also by loadLanguages()), while options.supportedLngs stays as written. (#1791)
  • fix(types): resources typed with named interfaces get their nested keys. The key types only walked into objects with an index signature, which a type alias has and an interface does not, so t('nested.key') failed with TS2345 while t('nested') compiled. Interfaces now give the same keys as type aliases, so t('nested') without returnObjects is rejected for them too. (#2326)
  • fix(types): typed keys work with strictNullChecks: false. Without strict null checks undefined passes extends string, so the key prefix, namespace and context checks took a missing keyPrefix, ns or context for a value: t('title') was rejected (only t('ns:title') compiled), t() returned string, and react-i18next's Trans accepted no i18nKey. A new type test project compiles with strictNullChecks: false; with strict null checks the types resolve as before. (#2085)

27.2.1

  • fix: a variable passed as undefined renders as an empty string when its placeholder has a format too ({{amount, number}}), as {{amount}} already did. The placeholder stayed in the result with the default skipOnVariables: true, and debug mode logged "missed to pass in variable" with either setting. Thanks @​Vineet829 (#2479)

27.2.0

  • fix: an error thrown by a load callback or a listener (the callback of init, changeLanguage, loadNamespaces or loadLanguages, or a languageChanged / loaded listener) is no longer handed back to the backend connector as if the read had failed. With a backend whose read returns a value or a promise, the connector got that error a second time: the namespace that had loaded was marked as failed, failedLoading was emitted with your error and the count of running reads dropped to -1. The error now reaches your app: it is thrown from the call that started the load for a read that returns a value, and it is an unhandled rejection for a read that returns a promise, which ends a Node.js process unless you handle unhandledRejection. Thanks @​SudeepGowda55 (#2477)
  • fix: when a load callback throws, the other callbacks waiting for the same namespaces are still called and the loaded event is still emitted, and the error is thrown on after that. A second loadNamespaces() for the same namespace never called back before.
  • fix: addResourceBundle(lng, ns, resources, true, true) overwrites numbers and booleans too. Only strings were replaced, so { n: 0 } stayed 0 after adding { n: 5 }, and adding an object where the bundle had a number, boolean or null threw Cannot create property ... on number, also without overwrite. With overwrite, a number, boolean or null now also replaces a nested object, as a string already did. Thanks @​SudeepGowda55 (#2476)
  • fix: with keySeparator: false, a namespace separator inside the key after the namespace is kept. t('common:errors:required') looked up 'errorsfalserequired' instead of the flat key 'errors:required' that i18next-cli extracts (also for a selector like $ => $.common['errors:required']), and reported the missing key under that name. This dates back to 11.3. Thanks @​SudeepGowda55 (#2478)

... (truncated)

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
dependabot Bot requested a review from a team as a code owner November 24, 2026 20:43
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 24, 2026
@dependabot dependabot Bot changed the title build(deps): bump i18next from 25.7.3 to 27.2.7 in /frontends/web in the npm_and_yarn group across 1 directory build(deps): bump i18next from 25.7.3 to 27.2.9 in /frontends/web in the npm_and_yarn group across 1 directory Nov 25, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontends/web/npm_and_yarn-b6dd843929 branch from c5f14e1 to ad9e4ef Compare November 25, 2026 12:53
@thisconnect

Copy link
Copy Markdown
Collaborator

@dependabot rebase

1 similar comment
@thisconnect

Copy link
Copy Markdown
Collaborator

@dependabot rebase

Bumps the npm_and_yarn group with 1 update in the /frontends/web directory: [i18next](https://github.com/i18next/i18next).


Updates `i18next` from 25.7.3 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@v25.7.3...v27.2.9)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 27.2.7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontends/web/npm_and_yarn-b6dd843929 branch from ad9e4ef to cf58313 Compare November 26, 2026 17:19
@dependabot @github

dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Looks like i18next is no longer updatable, so this is no longer needed.

@dependabot dependabot Bot closed this Nov 26, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/frontends/web/npm_and_yarn-b6dd843929 branch November 26, 2026 17:31
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.

1 participant