[PR #7016] [CLOSED] chore(deps): bump react-i18next from 17.1.3 to 17.1.9 in /frontend #6579

Closed
opened 2026-11-02 04:09:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/7016
Author: @dependabot[bot]
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: dependabot/npm_and_yarn/frontend/react-i18next-17.1.9


📝 Commits (1)

  • d35307b chore(deps): bump react-i18next from 17.1.3 to 17.1.9 in /frontend

📊 Changes

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

View changed files

📝 frontend/package-lock.json (+4 -4)
📝 frontend/package.json (+1 -1)

📄 Description

Bumps react-i18next from 17.1.3 to 17.1.9.

Changelog

Sourced from react-i18next's changelog.

17.1.9

  • fix(useTranslation): namespaces added to or removed from the ns array are now picked up. The hook used the array itself as the useMemo dependency list, and React only compares the entries both lists have in common when its length changes, so going from useTranslation(['nsA']) to useTranslation(['nsA', 'nsB']) kept returning ['nsA']: React warned that the dependency array changed size, nsB was never loaded, and with nsMode: 'fallback' keys only in nsB rendered as the key. Removing a namespace kept the old list the same way. The namespaces are now compared by content, so a growing list loads the new namespace (suspending until it is loaded, as switching from 'nsA' to 'nsB' already does) and t uses it. Lists that keep their length behave as before. Thanks @​lprnmns (#1945).

17.1.8

  • fix(Trans): an interpolation variable named format is no longer dropped. Trans reads format in an interpolation object as the formatter name ({{ value, format }}), so with {{ format }} as the only key nothing was left: <Trans>Export as {{ format }}</Trans> warned TRANS_INVALID_OBJ and used the default string Export as instead of Export as {{format}}. When format is the object's only key it is now treated as the variable. {{ value, format }} works as before. Without an i18nKey, the key derived from the children changes accordingly, from Export as to Export as {{format}}. i18next-cli serializes Trans children with react-i18next, so extracting with this version produces the same key. Thanks @​Pharex38 (#1944).

17.1.7

  • fix(IcuTrans): each HTML entity in a translation is now decoded exactly once. Named, decimal and hexadecimal entities were decoded in three passes, and each pass decoded the output of the previous one, so an escaped numeric entity was decoded twice: "Write &amp;[#169](https://github.com/i18next/react-i18next/issues/169); to get &[#169](https://github.com/i18next/react-i18next/issues/169);" rendered Write © to get © instead of Write &[#169](https://github.com/i18next/react-i18next/issues/169); to get ©, and &amp;[#60](https://github.com/i18next/react-i18next/issues/60); rendered < instead of &[#60](https://github.com/i18next/react-i18next/issues/60);. This also hit interpolated values with escapeValue: true, where a value containing &[#60](https://github.com/i18next/react-i18next/issues/60); is escaped to &amp;[#60](https://github.com/i18next/react-i18next/issues/60);. Escaped named entities like &amp;lt; already stayed &lt;, as browsers and Trans decode them. Unknown named entities and entities above U+10FFFF still stay as written. Thanks @​Pharex38 (#1943).

17.1.6

  • fix(Trans): a count passed in tOptions is now used. Trans spread tOptions and then set its own count prop, so a count only in tOptions was overwritten with undefined: <Trans i18nKey="items" tOptions={{ count: 5 }} /> rendered the key items instead of 5 items, and with children Trans could pick the wrong plural form. Like context, Trans now falls back to tOptions.count, handled the same way as the count prop. A count prop, a count in the children or values.count still take precedence, and tOptions is not modified. Thanks @​nk-batman21 (#1942).

17.1.5

  • fix(Trans): with an array of keys and no children, Trans now falls back to the last key when none of them has a translation, as t() does. It used the array itself as defaultValue, which i18next handles as an object, so <Trans i18nKey={['notifications.crm_item_created', 'crm_item_created']} components={[<strong />]} /> rendered key 'crm_item_created (en)' returned an object instead of string. instead of crm_item_created. An array of selectors falls back to the key of the last selector. The first key that has a translation still wins, and children, defaults and tOptions.defaultValue are used as before. With saveMissing, these calls now report the missing key, like a single i18nKey does. Thanks @​nk-batman21 (#1941).

17.1.4

  • fix(types): without allowObjectInHTMLChildren, the children of HTML elements now use React's own type (DOMAttributes<T>['children']) instead of the ReactI18NextChildren | Iterable<ReactI18NextChildren> union. Both accept the same children, so nothing compiles differently. For default installs the global HTMLAttributes augmentation now repeats whatever @types/react declares, so changes in React's types flow through instead of meeting a copy, and type errors on element children no longer list an extra Iterable<...>. With allowObjectInHTMLChildren: true nothing changes. First step of #1928.
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/MHSanaei/3x-ui/pull/7016 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/npm_and_yarn/frontend/react-i18next-17.1.9` --- ### 📝 Commits (1) - [`d35307b`](https://github.com/MHSanaei/3x-ui/commit/d35307b7e4e6294fc20381660397daaab414ef43) chore(deps): bump react-i18next from 17.1.3 to 17.1.9 in /frontend ### 📊 Changes **2 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package-lock.json` (+4 -4) 📝 `frontend/package.json` (+1 -1) </details> ### 📄 Description Bumps [react-i18next](https://github.com/i18next/react-i18next) from 17.1.3 to 17.1.9. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md">react-i18next's changelog</a>.</em></p> <blockquote> <h2>17.1.9</h2> <ul> <li>fix(useTranslation): namespaces added to or removed from the <code>ns</code> array are now picked up. The hook used the array itself as the <code>useMemo</code> dependency list, and React only compares the entries both lists have in common when its length changes, so going from <code>useTranslation(['nsA'])</code> to <code>useTranslation(['nsA', 'nsB'])</code> kept returning <code>['nsA']</code>: React warned that the dependency array changed size, <code>nsB</code> was never loaded, and with <code>nsMode: 'fallback'</code> keys only in <code>nsB</code> rendered as the key. Removing a namespace kept the old list the same way. The namespaces are now compared by content, so a growing list loads the new namespace (suspending until it is loaded, as switching from <code>'nsA'</code> to <code>'nsB'</code> already does) and <code>t</code> uses it. Lists that keep their length behave as before. Thanks <a href="https://github.com/lprnmns"><code>@​lprnmns</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1945">#1945</a>).</li> </ul> <h2>17.1.8</h2> <ul> <li>fix(Trans): an interpolation variable named <code>format</code> is no longer dropped. <code>Trans</code> reads <code>format</code> in an interpolation object as the formatter name (<code>{{ value, format }}</code>), so with <code>{{ format }}</code> as the only key nothing was left: <code>&lt;Trans&gt;Export as {{ format }}&lt;/Trans&gt;</code> warned <code>TRANS_INVALID_OBJ</code> and used the default string <code>Export as </code> instead of <code>Export as {{format}}</code>. When <code>format</code> is the object's only key it is now treated as the variable. <code>{{ value, format }}</code> works as before. Without an <code>i18nKey</code>, the key derived from the children changes accordingly, from <code>Export as </code> to <code>Export as {{format}}</code>. i18next-cli serializes <code>Trans</code> children with react-i18next, so extracting with this version produces the same key. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1944">#1944</a>).</li> </ul> <h2>17.1.7</h2> <ul> <li>fix(IcuTrans): each HTML entity in a translation is now decoded exactly once. Named, decimal and hexadecimal entities were decoded in three passes, and each pass decoded the output of the previous one, so an escaped numeric entity was decoded twice: <code>&quot;Write &amp;amp;[#169](https://github.com/i18next/react-i18next/issues/169); to get &amp;[#169](https://github.com/i18next/react-i18next/issues/169);&quot;</code> rendered <code>Write © to get ©</code> instead of <code>Write &amp;[#169](https://github.com/i18next/react-i18next/issues/169); to get ©</code>, and <code>&amp;amp;[#60](https://github.com/i18next/react-i18next/issues/60);</code> rendered <code>&lt;</code> instead of <code>&amp;[#60](https://github.com/i18next/react-i18next/issues/60);</code>. This also hit interpolated values with <code>escapeValue: true</code>, where a value containing <code>&amp;[#60](https://github.com/i18next/react-i18next/issues/60);</code> is escaped to <code>&amp;amp;[#60](https://github.com/i18next/react-i18next/issues/60);</code>. Escaped named entities like <code>&amp;amp;lt;</code> already stayed <code>&amp;lt;</code>, as browsers and <code>Trans</code> decode them. Unknown named entities and entities above U+10FFFF still stay as written. Thanks <a href="https://github.com/Pharex38"><code>@​Pharex38</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1943">#1943</a>).</li> </ul> <h2>17.1.6</h2> <ul> <li>fix(Trans): a <code>count</code> passed in <code>tOptions</code> is now used. <code>Trans</code> spread <code>tOptions</code> and then set its own <code>count</code> prop, so a count only in <code>tOptions</code> was overwritten with <code>undefined</code>: <code>&lt;Trans i18nKey=&quot;items&quot; tOptions={{ count: 5 }} /&gt;</code> rendered the key <code>items</code> instead of <code>5 items</code>, and with children <code>Trans</code> could pick the wrong plural form. Like <code>context</code>, <code>Trans</code> now falls back to <code>tOptions.count</code>, handled the same way as the <code>count</code> prop. A <code>count</code> prop, a count in the children or <code>values.count</code> still take precedence, and <code>tOptions</code> is not modified. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1942">#1942</a>).</li> </ul> <h2>17.1.5</h2> <ul> <li>fix(Trans): with an array of keys and no children, <code>Trans</code> now falls back to the last key when none of them has a translation, as <code>t()</code> does. It used the array itself as <code>defaultValue</code>, which i18next handles as an object, so <code>&lt;Trans i18nKey={['notifications.crm_item_created', 'crm_item_created']} components={[&lt;strong /&gt;]} /&gt;</code> rendered <code>key 'crm_item_created (en)' returned an object instead of string.</code> instead of <code>crm_item_created</code>. An array of selectors falls back to the key of the last selector. The first key that has a translation still wins, and <code>children</code>, <code>defaults</code> and <code>tOptions.defaultValue</code> are used as before. With <code>saveMissing</code>, these calls now report the missing key, like a single <code>i18nKey</code> does. Thanks <a href="https://github.com/nk-batman21"><code>@​nk-batman21</code></a> (<a href="https://redirect.github.com/i18next/react-i18next/pull/1941">#1941</a>).</li> </ul> <h2>17.1.4</h2> <ul> <li>fix(types): without <code>allowObjectInHTMLChildren</code>, the <code>children</code> of HTML elements now use React's own type (<code>DOMAttributes&lt;T&gt;['children']</code>) instead of the <code>ReactI18NextChildren | Iterable&lt;ReactI18NextChildren&gt;</code> union. Both accept the same children, so nothing compiles differently. For default installs the global <code>HTMLAttributes</code> augmentation now repeats whatever <code>@types/react</code> declares, so changes in React's types flow through instead of meeting a copy, and type errors on element children no longer list an extra <code>Iterable&lt;...&gt;</code>. With <code>allowObjectInHTMLChildren: true</code> nothing changes. First step of <a href="https://redirect.github.com/i18next/react-i18next/issues/1928">#1928</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/react-i18next/commit/4f4236ddf3a6fecccac1effee3cf0da8c7739a99"><code>4f4236d</code></a> 17.1.9</li> <li><a href="https://github.com/i18next/react-i18next/commit/e1a69455814a5bc699d2445193c4c026c5f9b6ae"><code>e1a6945</code></a> build</li> <li><a href="https://github.com/i18next/react-i18next/commit/8e9b59e255946e830155bd7bb2c3e2dd00cc524f"><code>8e9b59e</code></a> changelog for 17.1.9</li> <li><a href="https://github.com/i18next/react-i18next/commit/46564b65f9c934d04992c433856af65073d727a9"><code>46564b6</code></a> fix: refresh translations when namespaces are added (<a href="https://redirect.github.com/i18next/react-i18next/issues/1945">#1945</a>)</li> <li><a href="https://github.com/i18next/react-i18next/commit/3f0880e218f7d1235f474faf1d695d0fbde94a48"><code>3f0880e</code></a> 17.1.8</li> <li><a href="https://github.com/i18next/react-i18next/commit/9802f17e3921028ec2f582284b8dc344d4cd8f4d"><code>9802f17</code></a> build</li> <li><a href="https://github.com/i18next/react-i18next/commit/fb5fa17ea9be7b6bcc9990064f99aacb81eaa753"><code>fb5fa17</code></a> changelog for 17.1.8</li> <li><a href="https://github.com/i18next/react-i18next/commit/63f4e41dda4cb42e03edde5611f44018620bdc62"><code>63f4e41</code></a> fix(Trans): don't drop an interpolation variable named format (<a href="https://redirect.github.com/i18next/react-i18next/issues/1944">#1944</a>)</li> <li><a href="https://github.com/i18next/react-i18next/commit/8655c0f679d4ec8002a2db1c5ad4d447a973d115"><code>8655c0f</code></a> 17.1.7</li> <li><a href="https://github.com/i18next/react-i18next/commit/5e2cf4ac622c282572bce4a4cfef1324fb763365"><code>5e2cf4a</code></a> build</li> <li>Additional commits viewable in <a href="https://github.com/i18next/react-i18next/compare/v17.1.3...v17.1.9">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-i18next&package-manager=npm_and_yarn&previous-version=17.1.3&new-version=17.1.9)](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-02 04:09:48 +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
MHSanaei/3x-ui#6579
No description provided.