chore(deps-dev): Bump i18next-cli from 1.74.2 to 1.74.4 (#2205)

Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.74.2
to 1.74.4.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/i18next/i18next-cli/blob/main/CHANGELOG.md">i18next-cli's
changelog</a>.</em></p>
<blockquote>
<h2>1.74.4</h2>
<ul>
<li>fix(extract): a conditional namespace argument resolves to the
namespaces in its branches.
<code>useTranslation(confirmEmail ? ['reset-email-page', 'reset-page'] :
'reset-page')</code> filed
<code>t('form.title')</code> under <code>defaultNS</code>, so
<code>status</code> reported it as absent and <code>extract</code>
removed the
existing translations from <code>reset-page</code> and
<code>reset-email-page</code>. The key is now extracted into the
primary namespace of every branch (here <code>reset-email-page</code>
and <code>reset-page</code>), also for
<code>&lt;Trans t={t}&gt;</code>. Fixes <a
href="https://redirect.github.com/i18next/i18next-cli/issues/299">#299</a>.</li>
</ul>
<h2>1.74.3</h2>
<ul>
<li>
<p>fix(extract): dynamic keys typed by a declaration in a file without
any translation call
resolve again when that declaration builds on one from a file that sorts
after it. In 1.74.2,
<code>type Kind = Base | 'extra'</code> in <code>api/types.ts</code>
with <code>Base</code> declared in <code>shared/base.ts</code> expanded
<code>t(`kind.${kind}`)</code> to <code>kind.extra</code> only, and the
same happened to interface members,
function return types and functions returning an enum member declared
further down the list.
Such declarations are now resolved again once every file has been
scanned, which also removes
the file-order dependence this had before 1.74.2.</p>
</li>
<li>
<p>feat(extract): more implicitly typed values expand to their finite
set of keys. Fixes
<a
href="https://redirect.github.com/i18next/i18next-cli/issues/298">#298</a>:</p>
<ul>
<li>members of an object returned by a function with an object return
type:
<code>const animal = getAnimal(); t(`animal.${animal.type}`)</code>,
also through
<code>const { type } = getAnimal()</code>, <code>const kind =
animal.type</code> or <code>getAnimal().type</code>.</li>
<li>unions and intersections of object types (<code>type Animal = Duck |
Dog</code> gives <code>animal.type</code> the
values of both) and generic object types (<code>type AnimalBase&lt;T
extends AnimalType&gt; = { type: T }</code>
used as <code>AnimalBase&lt;'DUCK'&gt;</code>, or bare, which falls back
to the parameter's default or
constraint).</li>
<li><code>(typeof COLOR)[keyof typeof COLOR]</code> for an <code>as
const</code> object or an enum.</li>
<li>elements of an array, <code>colors[i]</code>, without an annotation
on the variable they are assigned to.</li>
</ul>
<p>Narrowing is not followed: after <code>if (color !== 'BLUE')</code>,
<code>color.BLUE</code> is still extracted.</p>
</li>
<li>
<p>fix(extract): shorthand options resolve like their long form.
<code>t('k', { ns })</code> filed the key
under the default namespace, <code>{ defaultValue }</code> was ignored
and
<code>useTranslation('ns', { keyPrefix })</code> lost its prefix. Thanks
to
<a href="https://github.com/aaronshaf"><code>@​aaronshaf</code></a> for
reporting it in
<a
href="https://redirect.github.com/i18next/i18next-cli/pull/291">#291</a>.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/i18next-cli/commit/12ea0d4291ab916a646608b0ce16f03c359e87ff"><code>12ea0d4</code></a>
1.74.4</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/b8cf7051d80ecca85cdc7709f11c8fdeafcf573b"><code>b8cf705</code></a>
fix(extract): resolve a conditional useTranslation namespace to its
branches ...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/1236571c85ea1c3c1bbae668f0c1e2988614e759"><code>1236571</code></a>
1.74.3</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/ce6e8c2f4b6f81118016e64366d771211af72c40"><code>ce6e8c2</code></a>
fix(extract): resolve implicit object types, cross-file declarations and
shor...</li>
<li>See full diff in <a
href="https://github.com/i18next/i18next-cli/compare/v1.74.2...v1.74.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=i18next-cli&package-manager=npm_and_yarn&previous-version=1.74.2&new-version=1.74.4)](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>

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]
2026-10-05 13:56:51 +00:00
committed by GitHub
parent 986af304bc
commit e868a72e78
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -97,7 +97,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"i18next-cli": "^1.74.2",
"i18next-cli": "^1.74.4",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.2.2",
"nyc": "^18.0.0",
@@ -6665,9 +6665,9 @@
}
},
"node_modules/i18next-cli": {
"version": "1.74.2",
"resolved": "https://registry.npmjs.org/i18next-cli/-/i18next-cli-1.74.2.tgz",
"integrity": "sha512-y32hOiVNLs85f+TKCl4XqERjD0dFy274IOEXe7/Zyp+WMaQC9VhF33JLO0hQZZKK4PUmYwbRDXaSObeE3PbsmA==",
"version": "1.74.4",
"resolved": "https://registry.npmjs.org/i18next-cli/-/i18next-cli-1.74.4.tgz",
"integrity": "sha512-VsgKIo5bVfInXelzqHFRWIORODU/MBO4LrpOUNxAAMvKWUewejYzu09JC8jrC24ezaPh4hAX65pPknmnBWqeDw==",
"dev": true,
"license": "MIT",
"dependencies": {