[PR #8435] [CLOSED] chore(deps): bump i18next from 26.5.4 to 26.5.11 #8599

Closed
opened 2026-11-07 16:45:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8435
Author: @dependabot[bot]
Created: 10/29/2026
Status: ❌ Closed

Base: staging ← Head: dependabot/npm_and_yarn/staging/i18next-26.5.11


📝 Commits (1)

  • 312c4dd chore(deps): bump i18next from 26.5.4 to 26.5.11

📊 Changes

2 files changed (+9 additions, -9 deletions)

View changed files

📝 packages/client/package.json (+1 -1)
📝 pnpm-lock.yaml (+8 -8)

📄 Description

Bumps i18next from 26.5.4 to 26.5.11.

Release notes

Sourced from i18next's releases.

v26.5.11

  • fix: a nested false, 0 or '' is now returned when a flat key with the same dotted name also exists. With { a: { b: false }, 'a.b': 'flat' }, getResource('en', 'translation', 'a.b') and t('a.b') returned 'flat': the nested result was checked for truthiness, so these present values fell through to the flat-key lookup. Without such a flat key they were already returned. A nested null, which is not a valid lookup by default (returnNull: false), still falls back to the flat key. Thanks @​lprnmns (#2461).

v26.5.10

  • fix: when none of the detected languages is in supportedLngs, the best match no longer picks a different language whose code only starts with the same letters. The last fuzzy check took any supported code starting with the language part, so with supportedLngs: ['en', 'fil-PH'] a Finnish user (fi-FI) got Filipino instead of the fallback language, and ha (Hausa) picked haw-US (Hawaiian). Other regions of the same language still match as before (de-CH → de-DE, pt-PT → pt-BR, fil → fil-PH). Compatibility note: a two-letter code no longer matches a supported three-letter code that extends it, like ar → arz-EG, sw → swh-KE or no → nob-NO; list the two-letter code in supportedLngs (or map it with fallbackLng) if you relied on that. Thanks @​Pharex38 (#2460).

v26.5.9

  • fix: nested lookups no longer resolve to methods inherited from the prototype, like constructor, toString or map. Only the top level was guarded, so {{constructor}} was treated as missing, but {{user.constructor}} rendered the function source (with a class instance, the full source code of the class), and {{user.toString}}, {{items.map}} or a class method like {{user.greet}} did the same. The same lookup is used for translation keys when ignoreJSONStructure is on (the default): a nested key named like an inherited method that is missing in the current language (t('roles.constructor') with roles.constructor only in the fallback language) returned function Object() { [native code] } instead of falling back, and exists('roles.valueOf') returned true. These keys are now missing, so the fallback language, missingInterpolationHandler, saveMissing and the missing key handler apply as for any other missing key. Getters defined on a class ({{user.fullName}} with get fullName()) still work. Nested lookups also no longer walk into the prototype via __proto__, so {{user.__proto__.constructor}} no longer prints the class source either. Thanks @​Pharex38 (#2459).

v26.5.8

  • fix: arrays returned with joinArrays now get the same resolved details as strings. The joined value was extended with lastKey in the place of the resolved lookup, so with postProcessPassResolved a post processor got no usedLng, usedNS or exactUsedKey (t('steps', { joinArrays: ' / ' }) reported undefined/undefined:undefined). This affected the subliminal post processor used by the locize InContext editor, which could not map a joined array to its key. The nesting recursion guard did not get the parent key either, so arrays that nest each other (listA: ['a', '$t(listB)'], listB: ['b', '$t(listA)']) threw Maximum call stack size exceeded. They now stop at the guard, as strings do. An i18nFormat plugin with handleAsObject and parse also no longer throws Cannot read properties of undefined (reading 'usedNS') on joined arrays. Thanks @​nk-batman21 (#2458).

v26.5.7

  • fix: with the default cacheInBuiltFormats: true, built-in formats now also work when the t() options contain a BigInt or a circular object. The cache key was built with JSON.stringify over all options, including the interpolation values, which throws on those, so every built-in format in that call returned the raw value: t('num', { val: 12345678901234567890n }) with 'Total: {{val, number}}' returned 'Total: 12345678901234567890' instead of 'Total: 12,345,678,901,234,567,890', and passing an object with a back-reference (like an ORM entity) left all numbers, dates and lists of that call unformatted. When the key cannot be built, the value is now formatted without the cache, as with cacheInBuiltFormats: false. This also applies to formatters added with addCached. Other calls still use the cache as before. Thanks @​nk-batman21 (#2457).

v26.5.6

  • fix: cloneInstance({ forkResourceStore: true }) now copies the resources at every level. It copied them only down to the namespace objects, so nested keys and arrays stayed shared with the original instance: addResource() with a nested key (fork.addResource('en', 'translation', 'greeting.hello', 'Hi')) or a deep addResourceBundle() on the fork also changed the original instance and every other fork. Flat keys were already isolated. Forking a large store takes a bit longer: with 300k keys in nested groups, about 11 ms instead of 3 ms per fork. Clones without forkResourceStore still share the store as before. Thanks @​nk-batman21 (#2456, follow-up to #2270).

v26.5.5

  • fix: with the default skipOnVariables: true, a {{placeholder}} inside a value inserted with an unescaped {{- var}} now stays literal, as it already did for {{var}}. The escape pass ran after the unescaped values were written and scanned them again, so t('{{- a}}', { a: '{{b}}', b: 'c' }) returned 'c' instead of '{{b}}'. With pre-built HTML that carries user text, like t('You may contact {{name}} at {{- emailHTML}}.', { name, emailHTML }), that text could pull another variable of the same t() call into the output. Results with skipOnVariables: false, and values without placeholders, are unchanged. Compatibility note: a {{- var}} value whose placeholders were meant to be filled from the same t() call now keeps them literally; skipOnVariables: false restores the old behavior. Thanks @​nk-batman21 (#2455, reported in #1595).
Changelog

Sourced from i18next's changelog.

26.5.11

  • fix: a nested false, 0 or '' is now returned when a flat key with the same dotted name also exists. With { a: { b: false }, 'a.b': 'flat' }, getResource('en', 'translation', 'a.b') and t('a.b') returned 'flat': the nested result was checked for truthiness, so these present values fell through to the flat-key lookup. Without such a flat key they were already returned. A nested null, which is not a valid lookup by default (returnNull: false), still falls back to the flat key. Thanks @​lprnmns (#2461).

26.5.10

  • fix: when none of the detected languages is in supportedLngs, the best match no longer picks a different language whose code only starts with the same letters. The last fuzzy check took any supported code starting with the language part, so with supportedLngs: ['en', 'fil-PH'] a Finnish user (fi-FI) got Filipino instead of the fallback language, and ha (Hausa) picked haw-US (Hawaiian). Other regions of the same language still match as before (de-CH → de-DE, pt-PT → pt-BR, fil → fil-PH). Compatibility note: a two-letter code no longer matches a supported three-letter code that extends it, like ar → arz-EG, sw → swh-KE or no → nob-NO; list the two-letter code in supportedLngs (or map it with fallbackLng) if you relied on that. Thanks @​Pharex38 (#2460).

26.5.9

  • fix: nested lookups no longer resolve to methods inherited from the prototype, like constructor, toString or map. Only the top level was guarded, so {{constructor}} was treated as missing, but {{user.constructor}} rendered the function source (with a class instance, the full source code of the class), and {{user.toString}}, {{items.map}} or a class method like {{user.greet}} did the same. The same lookup is used for translation keys when ignoreJSONStructure is on (the default): a nested key named like an inherited method that is missing in the current language (t('roles.constructor') with roles.constructor only in the fallback language) returned function Object() { [native code] } instead of falling back, and exists('roles.valueOf') returned true. These keys are now missing, so the fallback language, missingInterpolationHandler, saveMissing and the missing key handler apply as for any other missing key. Getters defined on a class ({{user.fullName}} with get fullName()) still work. Nested lookups also no longer walk into the prototype via __proto__, so {{user.__proto__.constructor}} no longer prints the class source either. Thanks @​Pharex38 (#2459).

26.5.8

  • fix: arrays returned with joinArrays now get the same resolved details as strings. The joined value was extended with lastKey in the place of the resolved lookup, so with postProcessPassResolved a post processor got no usedLng, usedNS or exactUsedKey (t('steps', { joinArrays: ' / ' }) reported undefined/undefined:undefined). This affected the subliminal post processor used by the locize InContext editor, which could not map a joined array to its key. The nesting recursion guard did not get the parent key either, so arrays that nest each other (listA: ['a', '$t(listB)'], listB: ['b', '$t(listA)']) threw Maximum call stack size exceeded. They now stop at the guard, as strings do. An i18nFormat plugin with handleAsObject and parse also no longer throws Cannot read properties of undefined (reading 'usedNS') on joined arrays. Thanks @​nk-batman21 (#2458).

26.5.7

  • fix: with the default cacheInBuiltFormats: true, built-in formats now also work when the t() options contain a BigInt or a circular object. The cache key was built with JSON.stringify over all options, including the interpolation values, which throws on those, so every built-in format in that call returned the raw value: t('num', { val: 12345678901234567890n }) with 'Total: {{val, number}}' returned 'Total: 12345678901234567890' instead of 'Total: 12,345,678,901,234,567,890', and passing an object with a back-reference (like an ORM entity) left all numbers, dates and lists of that call unformatted. When the key cannot be built, the value is now formatted without the cache, as with cacheInBuiltFormats: false. This also applies to formatters added with addCached. Other calls still use the cache as before. Thanks @​nk-batman21 (#2457).

26.5.6

  • fix: cloneInstance({ forkResourceStore: true }) now copies the resources at every level. It copied them only down to the namespace objects, so nested keys and arrays stayed shared with the original instance: addResource() with a nested key (fork.addResource('en', 'translation', 'greeting.hello', 'Hi')) or a deep addResourceBundle() on the fork also changed the original instance and every other fork. Flat keys were already isolated. Forking a large store takes a bit longer: with 300k keys in nested groups, about 11 ms instead of 3 ms per fork. Clones without forkResourceStore still share the store as before. Thanks @​nk-batman21 (#2456, follow-up to #2270).

26.5.5

  • fix: with the default skipOnVariables: true, a {{placeholder}} inside a value inserted with an unescaped {{- var}} now stays literal, as it already did for {{var}}. The escape pass ran after the unescaped values were written and scanned them again, so t('{{- a}}', { a: '{{b}}', b: 'c' }) returned 'c' instead of '{{b}}'. With pre-built HTML that carries user text, like t('You may contact {{name}} at {{- emailHTML}}.', { name, emailHTML }), that text could pull another variable of the same t() call into the output. Results with skipOnVariables: false, and values without placeholders, are unchanged. Compatibility note: a {{- var}} value whose placeholders were meant to be filled from the same t() call now keeps them literally; skipOnVariables: false restores the old behavior. Thanks @​nk-batman21 (#2455, reported in #1595).
Commits

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8435 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `dependabot/npm_and_yarn/staging/i18next-26.5.11` --- ### 📝 Commits (1) - [`312c4dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/312c4dd01e4d95ea5449abea3a427c1c06264667) chore(deps): bump i18next from 26.5.4 to 26.5.11 ### 📊 Changes **2 files changed** (+9 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+8 -8) </details> ### 📄 Description Bumps [i18next](https://github.com/i18next/i18next) from 26.5.4 to 26.5.11. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/releases">i18next's releases</a>.</em></p> <blockquote> <h2>v26.5.11</h2> <ul> <li>fix: a nested <code>false</code>, <code>0</code> or <code>''</code> is now returned when a flat key with the same dotted name also exists. With <code>{ a: { b: false }, 'a.b': 'flat' }</code>, <code>getResource('en', 'translation', 'a.b')</code> and <code>t('a.b')</code> returned <code>'flat'</code>: the nested result was checked for truthiness, so these present values fell through to the flat-key lookup. Without such a flat key they were already returned. A nested <code>null</code>, which is not a valid lookup by default (<code>returnNull: false</code>), still falls back to the flat key. Thanks <a href="https://github.com/lprnmns"><code>@​lprnmns</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2461">#2461</a>).</li> </ul> <h2>v26.5.10</h2> <ul> <li>fix: when none of the detected languages is in <code>supportedLngs</code>, the best match no longer picks a different language whose code only starts with the same letters. The last fuzzy check took any supported code starting with the language part, so with <code>supportedLngs: ['en', 'fil-PH']</code> a Finnish user (<code>fi-FI</code>) got Filipino instead of the fallback language, and <code>ha</code> (Hausa) picked <code>haw-US</code> (Hawaiian). Other regions of the same language still match as before (<code>de-CH</code> → <code>de-DE</code>, <code>pt-PT</code> → <code>pt-BR</code>, <code>fil</code> → <code>fil-PH</code>). Compatibility note: a two-letter code no longer matches a supported three-letter code that extends it, like <code>ar</code> → <code>arz-EG</code>, <code>sw</code> → <code>swh-KE</code> or <code>no</code> → <code>nob-NO</code>; list the two-letter code in <code>supportedLngs</code> (or map it with <code>fallbackLng</code>) if you relied on that. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2460">#2460</a>).</li> </ul> <h2>v26.5.9</h2> <ul> <li>fix: nested lookups no longer resolve to methods inherited from the prototype, like <code>constructor</code>, <code>toString</code> or <code>map</code>. Only the top level was guarded, so <code>{{constructor}}</code> was treated as missing, but <code>{{user.constructor}}</code> rendered the function source (with a class instance, the full source code of the class), and <code>{{user.toString}}</code>, <code>{{items.map}}</code> or a class method like <code>{{user.greet}}</code> did the same. The same lookup is used for translation keys when <code>ignoreJSONStructure</code> is on (the default): a nested key named like an inherited method that is missing in the current language (<code>t('roles.constructor')</code> with <code>roles.constructor</code> only in the fallback language) returned <code>function Object() { [native code] }</code> instead of falling back, and <code>exists('roles.valueOf')</code> returned <code>true</code>. These keys are now missing, so the fallback language, <code>missingInterpolationHandler</code>, <code>saveMissing</code> and the missing key handler apply as for any other missing key. Getters defined on a class (<code>{{user.fullName}}</code> with <code>get fullName()</code>) still work. Nested lookups also no longer walk into the prototype via <code>__proto__</code>, so <code>{{user.__proto__.constructor}}</code> no longer prints the class source either. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2459">#2459</a>).</li> </ul> <h2>v26.5.8</h2> <ul> <li>fix: arrays returned with <code>joinArrays</code> now get the same resolved details as strings. The joined value was extended with <code>lastKey</code> in the place of the resolved lookup, so with <code>postProcessPassResolved</code> a post processor got no <code>usedLng</code>, <code>usedNS</code> or <code>exactUsedKey</code> (<code>t('steps', { joinArrays: ' / ' })</code> reported <code>undefined/undefined:undefined</code>). This affected the subliminal post processor used by the locize InContext editor, which could not map a joined array to its key. The nesting recursion guard did not get the parent key either, so arrays that nest each other (<code>listA: ['a', '$t(listB)']</code>, <code>listB: ['b', '$t(listA)']</code>) threw <code>Maximum call stack size exceeded</code>. They now stop at the guard, as strings do. An <code>i18nFormat</code> plugin with <code>handleAsObject</code> and <code>parse</code> also no longer throws <code>Cannot read properties of undefined (reading 'usedNS')</code> on joined arrays. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2458">#2458</a>).</li> </ul> <h2>v26.5.7</h2> <ul> <li>fix: with the default <code>cacheInBuiltFormats: true</code>, built-in formats now also work when the <code>t()</code> options contain a BigInt or a circular object. The cache key was built with <code>JSON.stringify</code> over all options, including the interpolation values, which throws on those, so every built-in format in that call returned the raw value: <code>t('num', { val: 12345678901234567890n })</code> with <code>'Total: {{val, number}}'</code> returned <code>'Total: 12345678901234567890'</code> instead of <code>'Total: 12,345,678,901,234,567,890'</code>, and passing an object with a back-reference (like an ORM entity) left all numbers, dates and lists of that call unformatted. When the key cannot be built, the value is now formatted without the cache, as with <code>cacheInBuiltFormats: false</code>. This also applies to formatters added with <code>addCached</code>. Other calls still use the cache as before. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2457">#2457</a>).</li> </ul> <h2>v26.5.6</h2> <ul> <li>fix: <code>cloneInstance({ forkResourceStore: true })</code> now copies the resources at every level. It copied them only down to the namespace objects, so nested keys and arrays stayed shared with the original instance: <code>addResource()</code> with a nested key (<code>fork.addResource('en', 'translation', 'greeting.hello', 'Hi')</code>) or a deep <code>addResourceBundle()</code> on the fork also changed the original instance and every other fork. Flat keys were already isolated. Forking a large store takes a bit longer: with 300k keys in nested groups, about 11 ms instead of 3 ms per fork. Clones without <code>forkResourceStore</code> still share the store as before. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2456">#2456</a>, follow-up to <a href="https://redirect.github.com/i18next/i18next/issues/2270">#2270</a>).</li> </ul> <h2>v26.5.5</h2> <ul> <li>fix: with the default <code>skipOnVariables: true</code>, a <code>{{placeholder}}</code> inside a value inserted with an unescaped <code>{{- var}}</code> now stays literal, as it already did for <code>{{var}}</code>. The escape pass ran after the unescaped values were written and scanned them again, so <code>t('{{- a}}', { a: '{{b}}', b: 'c' })</code> returned <code>'c'</code> instead of <code>'{{b}}'</code>. With pre-built HTML that carries user text, like <code>t('You may contact {{name}} at {{- emailHTML}}.', { name, emailHTML })</code>, that text could pull another variable of the same <code>t()</code> call into the output. Results with <code>skipOnVariables: false</code>, and values without placeholders, are unchanged. Compatibility note: a <code>{{- var}}</code> value whose placeholders were meant to be filled from the same <code>t()</code> call now keeps them literally; <code>skipOnVariables: false</code> restores the old behavior. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2455">#2455</a>, reported in <a href="https://redirect.github.com/i18next/i18next/issues/1595#issuecomment-814611747">#1595</a>).</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/blob/master/CHANGELOG.md">i18next's changelog</a>.</em></p> <blockquote> <h2>26.5.11</h2> <ul> <li>fix: a nested <code>false</code>, <code>0</code> or <code>''</code> is now returned when a flat key with the same dotted name also exists. With <code>{ a: { b: false }, 'a.b': 'flat' }</code>, <code>getResource('en', 'translation', 'a.b')</code> and <code>t('a.b')</code> returned <code>'flat'</code>: the nested result was checked for truthiness, so these present values fell through to the flat-key lookup. Without such a flat key they were already returned. A nested <code>null</code>, which is not a valid lookup by default (<code>returnNull: false</code>), still falls back to the flat key. Thanks <a href="https://github.com/lprnmns"><code>@​lprnmns</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2461">#2461</a>).</li> </ul> <h2>26.5.10</h2> <ul> <li>fix: when none of the detected languages is in <code>supportedLngs</code>, the best match no longer picks a different language whose code only starts with the same letters. The last fuzzy check took any supported code starting with the language part, so with <code>supportedLngs: ['en', 'fil-PH']</code> a Finnish user (<code>fi-FI</code>) got Filipino instead of the fallback language, and <code>ha</code> (Hausa) picked <code>haw-US</code> (Hawaiian). Other regions of the same language still match as before (<code>de-CH</code> → <code>de-DE</code>, <code>pt-PT</code> → <code>pt-BR</code>, <code>fil</code> → <code>fil-PH</code>). Compatibility note: a two-letter code no longer matches a supported three-letter code that extends it, like <code>ar</code> → <code>arz-EG</code>, <code>sw</code> → <code>swh-KE</code> or <code>no</code> → <code>nob-NO</code>; list the two-letter code in <code>supportedLngs</code> (or map it with <code>fallbackLng</code>) if you relied on that. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2460">#2460</a>).</li> </ul> <h2>26.5.9</h2> <ul> <li>fix: nested lookups no longer resolve to methods inherited from the prototype, like <code>constructor</code>, <code>toString</code> or <code>map</code>. Only the top level was guarded, so <code>{{constructor}}</code> was treated as missing, but <code>{{user.constructor}}</code> rendered the function source (with a class instance, the full source code of the class), and <code>{{user.toString}}</code>, <code>{{items.map}}</code> or a class method like <code>{{user.greet}}</code> did the same. The same lookup is used for translation keys when <code>ignoreJSONStructure</code> is on (the default): a nested key named like an inherited method that is missing in the current language (<code>t('roles.constructor')</code> with <code>roles.constructor</code> only in the fallback language) returned <code>function Object() { [native code] }</code> instead of falling back, and <code>exists('roles.valueOf')</code> returned <code>true</code>. These keys are now missing, so the fallback language, <code>missingInterpolationHandler</code>, <code>saveMissing</code> and the missing key handler apply as for any other missing key. Getters defined on a class (<code>{{user.fullName}}</code> with <code>get fullName()</code>) still work. Nested lookups also no longer walk into the prototype via <code>__proto__</code>, so <code>{{user.__proto__.constructor}}</code> no longer prints the class source either. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2459">#2459</a>).</li> </ul> <h2>26.5.8</h2> <ul> <li>fix: arrays returned with <code>joinArrays</code> now get the same resolved details as strings. The joined value was extended with <code>lastKey</code> in the place of the resolved lookup, so with <code>postProcessPassResolved</code> a post processor got no <code>usedLng</code>, <code>usedNS</code> or <code>exactUsedKey</code> (<code>t('steps', { joinArrays: ' / ' })</code> reported <code>undefined/undefined:undefined</code>). This affected the subliminal post processor used by the locize InContext editor, which could not map a joined array to its key. The nesting recursion guard did not get the parent key either, so arrays that nest each other (<code>listA: ['a', '$t(listB)']</code>, <code>listB: ['b', '$t(listA)']</code>) threw <code>Maximum call stack size exceeded</code>. They now stop at the guard, as strings do. An <code>i18nFormat</code> plugin with <code>handleAsObject</code> and <code>parse</code> also no longer throws <code>Cannot read properties of undefined (reading 'usedNS')</code> on joined arrays. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2458">#2458</a>).</li> </ul> <h2>26.5.7</h2> <ul> <li>fix: with the default <code>cacheInBuiltFormats: true</code>, built-in formats now also work when the <code>t()</code> options contain a BigInt or a circular object. The cache key was built with <code>JSON.stringify</code> over all options, including the interpolation values, which throws on those, so every built-in format in that call returned the raw value: <code>t('num', { val: 12345678901234567890n })</code> with <code>'Total: {{val, number}}'</code> returned <code>'Total: 12345678901234567890'</code> instead of <code>'Total: 12,345,678,901,234,567,890'</code>, and passing an object with a back-reference (like an ORM entity) left all numbers, dates and lists of that call unformatted. When the key cannot be built, the value is now formatted without the cache, as with <code>cacheInBuiltFormats: false</code>. This also applies to formatters added with <code>addCached</code>. Other calls still use the cache as before. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2457">#2457</a>).</li> </ul> <h2>26.5.6</h2> <ul> <li>fix: <code>cloneInstance({ forkResourceStore: true })</code> now copies the resources at every level. It copied them only down to the namespace objects, so nested keys and arrays stayed shared with the original instance: <code>addResource()</code> with a nested key (<code>fork.addResource('en', 'translation', 'greeting.hello', 'Hi')</code>) or a deep <code>addResourceBundle()</code> on the fork also changed the original instance and every other fork. Flat keys were already isolated. Forking a large store takes a bit longer: with 300k keys in nested groups, about 11 ms instead of 3 ms per fork. Clones without <code>forkResourceStore</code> still share the store as before. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2456">#2456</a>, follow-up to <a href="https://redirect.github.com/i18next/i18next/issues/2270">#2270</a>).</li> </ul> <h2>26.5.5</h2> <ul> <li>fix: with the default <code>skipOnVariables: true</code>, a <code>{{placeholder}}</code> inside a value inserted with an unescaped <code>{{- var}}</code> now stays literal, as it already did for <code>{{var}}</code>. The escape pass ran after the unescaped values were written and scanned them again, so <code>t('{{- a}}', { a: '{{b}}', b: 'c' })</code> returned <code>'c'</code> instead of <code>'{{b}}'</code>. With pre-built HTML that carries user text, like <code>t('You may contact {{name}} at {{- emailHTML}}.', { name, emailHTML })</code>, that text could pull another variable of the same <code>t()</code> call into the output. Results with <code>skipOnVariables: false</code>, and values without placeholders, are unchanged. Compatibility note: a <code>{{- var}}</code> value whose placeholders were meant to be filled from the same <code>t()</code> call now keeps them literally; <code>skipOnVariables: false</code> restores the old behavior. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2455">#2455</a>, reported in <a href="https://redirect.github.com/i18next/i18next/issues/1595#issuecomment-814611747">#1595</a>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next/commit/a0ab5e992120d62b353d6f75e4f63a39e0eb6e44"><code>a0ab5e9</code></a> 26.5.11</li> <li><a href="https://github.com/i18next/i18next/commit/a08cf9e2c95ccee198ecd1b4b3f5f39d2af214b5"><code>a08cf9e</code></a> build</li> <li><a href="https://github.com/i18next/i18next/commit/81677f99c468ffa8e946986707af34abc7535fc0"><code>81677f9</code></a> changelog for 26.5.11</li> <li><a href="https://github.com/i18next/i18next/commit/a92934eacf5740ce40767bb82f2df9cf5e36867d"><code>a92934e</code></a> fix: keep a nested null falling back to a flat key</li> <li><a href="https://github.com/i18next/i18next/commit/ad6e1ac337cdd7ab952e5e22598e0fe50b23e568"><code>ad6e1ac</code></a> fix: preserve falsy nested resource values (<a href="https://redirect.github.com/i18next/i18next/issues/2461">#2461</a>)</li> <li><a href="https://github.com/i18next/i18next/commit/00b6a3f22771e50be732826014d49a6ae2647ef5"><code>00b6a3f</code></a> 26.5.10</li> <li><a href="https://github.com/i18next/i18next/commit/9bdd4f6567573e529b7d8088b4e74ec9f3aeef82"><code>9bdd4f6</code></a> build</li> <li><a href="https://github.com/i18next/i18next/commit/fb168f3b2f81f46e64ffbdbde6b97f682a933dde"><code>fb168f3</code></a> changelog for 26.5.10</li> <li><a href="https://github.com/i18next/i18next/commit/2584a56acf2aa2a9f723f0c5a97f8a95499a60ca"><code>2584a56</code></a> fix: don't match a supported language that only starts with the same letters ...</li> <li><a href="https://github.com/i18next/i18next/commit/6c98e55c7e08b510d705e7d618073997126a9636"><code>6c98e55</code></a> build</li> <li>Additional commits viewable in <a href="https://github.com/i18next/i18next/compare/v26.5.4...v26.5.11">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=i18next&package-manager=npm_and_yarn&previous-version=26.5.4&new-version=26.5.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:52 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8599
No description provided.