chore(deps): Bump i18next from 27.2.7 to 27.2.10 (#2383)

Bumps [i18next](https://github.com/i18next/i18next) from 27.2.7 to
27.2.10.
<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>v27.2.10</h2>
<ul>
<li>fix: a formatter option that is empty or only whitespace in quotes
stays a string instead of becoming <code>NaN</code>: <code>{{name,
join(separator: ' ')}}</code> passes <code>' '</code> to the formatter,
so a custom <code>join</code> writes &quot;Anna Smith&quot; instead of
&quot;AnnaNaNSmith&quot;. Thanks <a
href="https://github.com/arba-octo"><code>@​arba-octo</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2485">#2485</a>)</li>
<li>perf: <code>t()</code> runs the natural-language key check only for
a key that contains the namespace separator, instead of twice on every
call. With the default separators <code>t()</code> is about 30% faster;
the results do not change. Thanks <a
href="https://github.com/ximex"><code>@​ximex</code></a> (<a
href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a>)</li>
<li>perf: without <code>debug</code>, <code>t()</code> looks a missing
key up once instead of twice. The second lookup only fed the debug
warning about flat JSON, so output and logs do not change. Thanks <a
href="https://github.com/ximex"><code>@​ximex</code></a> (<a
href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li>
</ul>
<h2>v27.2.9</h2>
<ul>
<li>fix: <code>t('item', { count: 2n })</code> picks the plural form
instead of throwing <code>TypeError: Cannot convert a BigInt value to a
number</code>: a BigInt <code>count</code> (as some database drivers
return for <code>COUNT(*)</code>) is converted to a number for
<code>Intl.PluralRules</code>, <code>{{count}}</code> still gets the
BigInt, and <code>0n</code> looks up <code>_zero</code> like
<code>0</code>. Above <code>Number.MAX_SAFE_INTEGER</code> the form
follows the rounded number. Thanks <a
href="https://github.com/Asimmimx"><code>@​Asimmimx</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2484">#2484</a>)</li>
</ul>
<h2>v27.2.8</h2>
<ul>
<li>fix(types): a <code>t()</code> call with <code>context</code> 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 <code>context: 'x'</code> soonest. A
context value without a key is still an error, as since 25.9.0 (<a
href="https://redirect.github.com/i18next/i18next/issues/2482">#2482</a>)</li>
<li>fix: a language code without subtags gets its language part in the
same casing as a code with subtags: with <code>supportedLngs:
['en-US']</code>, <code>'EN'</code> (from <code>?lng=EN</code> or a
capitalised cookie) matches <code>'en-US'</code> like <code>'en'</code>
and <code>'EN-GB'</code> already did, instead of falling back to
<code>fallbackLng</code>, and <code>dir('AR')</code> returns
<code>'rtl'</code> where <code>Intl.Locale</code> has no
<code>getTextInfo()</code>. Thanks <a
href="https://github.com/anishkun"><code>@​anishkun</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2483">#2483</a>)</li>
<li>fix: <code>dir()</code> also returns <code>'rtl'</code> for
<code>'AR'</code> or <code>'AR-EG'</code> with <code>cleanCode:
false</code> where <code>Intl.Locale</code> has no
<code>getTextInfo()</code> (Node.js 22, some browsers)</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>27.2.10</h2>
<ul>
<li>fix: a formatter option that is empty or only whitespace in quotes
stays a string instead of becoming <code>NaN</code>: <code>{{name,
join(separator: ' ')}}</code> passes <code>' '</code> to the formatter,
so a custom <code>join</code> writes &quot;Anna Smith&quot; instead of
&quot;AnnaNaNSmith&quot;. Thanks <a
href="https://github.com/arba-octo"><code>@​arba-octo</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2485">#2485</a>)</li>
<li>perf: <code>t()</code> runs the natural-language key check only for
a key that contains the namespace separator, instead of twice on every
call. With the default separators <code>t()</code> is about 30% faster;
the results do not change. Thanks <a
href="https://github.com/ximex"><code>@​ximex</code></a> (<a
href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a>)</li>
<li>perf: without <code>debug</code>, <code>t()</code> looks a missing
key up once instead of twice. The second lookup only fed the debug
warning about flat JSON, so output and logs do not change. Thanks <a
href="https://github.com/ximex"><code>@​ximex</code></a> (<a
href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li>
</ul>
<h2>27.2.9</h2>
<ul>
<li>fix: <code>t('item', { count: 2n })</code> picks the plural form
instead of throwing <code>TypeError: Cannot convert a BigInt value to a
number</code>: a BigInt <code>count</code> (as some database drivers
return for <code>COUNT(*)</code>) is converted to a number for
<code>Intl.PluralRules</code>, <code>{{count}}</code> still gets the
BigInt, and <code>0n</code> looks up <code>_zero</code> like
<code>0</code>. Above <code>Number.MAX_SAFE_INTEGER</code> the form
follows the rounded number. Thanks <a
href="https://github.com/Asimmimx"><code>@​Asimmimx</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2484">#2484</a>)</li>
</ul>
<h2>27.2.8</h2>
<ul>
<li>fix(types): a <code>t()</code> call with <code>context</code> 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 <code>context: 'x'</code> soonest. A
context value without a key is still an error, as since 25.9.0 (<a
href="https://redirect.github.com/i18next/i18next/issues/2482">#2482</a>)</li>
<li>fix: a language code without subtags gets its language part in the
same casing as a code with subtags: with <code>supportedLngs:
['en-US']</code>, <code>'EN'</code> (from <code>?lng=EN</code> or a
capitalised cookie) matches <code>'en-US'</code> like <code>'en'</code>
and <code>'EN-GB'</code> already did, instead of falling back to
<code>fallbackLng</code>, and <code>dir('AR')</code> returns
<code>'rtl'</code> where <code>Intl.Locale</code> has no
<code>getTextInfo()</code>. Thanks <a
href="https://github.com/anishkun"><code>@​anishkun</code></a> (<a
href="https://redirect.github.com/i18next/i18next/pull/2483">#2483</a>)</li>
<li>fix: <code>dir()</code> also returns <code>'rtl'</code> for
<code>'AR'</code> or <code>'AR-EG'</code> with <code>cleanCode:
false</code> where <code>Intl.Locale</code> has no
<code>getTextInfo()</code> (Node.js 22, some browsers)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/i18next/commit/7839a3b0006255e98c3cdd1bf28c1fbac7f278bb"><code>7839a3b</code></a>
27.2.10</li>
<li><a
href="https://github.com/i18next/i18next/commit/a3d827265a5af209d685f88070c6e543b50ba055"><code>a3d8272</code></a>
changelog for 27.2.10</li>
<li><a
href="https://github.com/i18next/i18next/commit/b36d5e7170b0605c32dbb15d4f9d7a7d570f7594"><code>b36d5e7</code></a>
changelog: <a
href="https://redirect.github.com/i18next/i18next/issues/2485">#2485</a>,
<a
href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a>
and <a
href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>
under Unreleased</li>
<li><a
href="https://github.com/i18next/i18next/commit/574342994733054225c6da748a5b04a318d62155"><code>5743429</code></a>
perf: look a missing key up only once when debug is off (<a
href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li>
<li><a
href="https://github.com/i18next/i18next/commit/78fe071619189b30f12c08aab5a842d41ef497f1"><code>78fe071</code></a>
perf: run the natural-language key check only for a key with the
namespace se...</li>
<li><a
href="https://github.com/i18next/i18next/commit/4c02a177fefd8263229207498361d420709af0e6"><code>4c02a17</code></a>
fix: keep blank formatter options as strings (<a
href="https://redirect.github.com/i18next/i18next/issues/2485">#2485</a>)</li>
<li><a
href="https://github.com/i18next/i18next/commit/83e6f680ab2bfda438888f251990fb6f7a639869"><code>83e6f68</code></a>
contributing: point to the organisation's page for what we merge and how
we r...</li>
<li><a
href="https://github.com/i18next/i18next/commit/add2f77109d1daa0a59a9b78133296ac5bb4e35c"><code>add2f77</code></a>
27.2.9</li>
<li><a
href="https://github.com/i18next/i18next/commit/dcc1487abb3a302d93411ba06a40afba3efafdb7"><code>dcc1487</code></a>
changelog for 27.2.9</li>
<li><a
href="https://github.com/i18next/i18next/commit/09335895f13448542932ee96990e721dcde2118f"><code>0933589</code></a>
changelog: <a
href="https://redirect.github.com/i18next/i18next/issues/2484">#2484</a>
under Unreleased</li>
<li>Additional commits viewable in <a
href="https://github.com/i18next/i18next/compare/v27.2.7...v27.2.10">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] authored and GitHub committed 2026-11-30 14:09:51 +00:00
1 parent 363b97dd11
commit afea71c214
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -29,7 +29,7 @@
"downshift": "^9.5.0",
"events": "^3.3.0",
"file-saver": "^2.0.5",
"i18next": "^27.2.7",
"i18next": "^27.2.10",
"i18next-browser-languagedetector": "^8.3.1",
"i18next-resources-to-backend": "^1.3.0",
"json-stringify-pretty-compact": "^4.0.0",
@@ -5834,9 +5834,9 @@
}
},
"node_modules/i18next": {
"version": "27.2.7",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-27.2.7.tgz",
"integrity": "sha512-q3XlM8YSo6Nmomd+MQ4JPGJGvhgHwfCRXNeFrM8l0F4TuIuoJBqhCxQrdGDHNMjObRuw5O0ReuU968ZeMVlfnw==",
"version": "27.2.10",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-27.2.10.tgz",
"integrity": "sha512-v2hQPOZ4yvfhK5CNyXevVjneTX85rDxgTKSV96tftmp89yrF1MEFIDV0i6jYKEnzR3lnWDe62HktDFy6624/UQ==",
"funding": [
{
"type": "individual",
+1 -1
View File
@@ -46,7 +46,7 @@
"downshift": "^9.5.0",
"events": "^3.3.0",
"file-saver": "^2.0.5",
"i18next": "^27.2.7",
"i18next": "^27.2.10",
"i18next-browser-languagedetector": "^8.3.1",
"i18next-resources-to-backend": "^1.3.0",
"json-stringify-pretty-compact": "^4.0.0",