chore(deps-dev): Bump i18next-cli from 1.88.0 to 1.90.0 (#2345)

Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.88.0
to 1.90.0.
<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.90.0</h2>
<p>Found by running <code>init</code>, <code>instrument</code>,
<code>extract</code>, <code>lint</code> and <code>status</code> on the
next-i18next examples, on copies of
them with their texts hardcoded again (to compare the rewrite with the
hand-written original) and on hardcoded
Next.js apps, and reading every rewrite.</p>
<p>next-i18next:</p>
<ul>
<li>feat(instrument): a Next.js app with next-i18next (a dependency, or
imported), or with no i18next at all, gets
next-i18next's calls by where each file renders, from the import graph
(<code>'use client'</code>, <code>app/</code>, <code>pages/</code>,
imports relative, through the tsconfig or jsconfig <code>paths</code>
and from the project root): <code>const { t } = await getT()</code> in
Server Components, which become <code>async</code> (a return type
becomes <code>Promise&lt;…&gt;</code>), <code>useT()</code> from
<code>next-i18next/client</code> in Client Components,
<code>useTranslation</code> from <code>next-i18next/pages</code> in the
Pages Router.
Server Components got <code>useTranslation()</code> before, a client
hook that fails there. A Next.js app with i18next or
react-i18next and no next-i18next keeps <code>react-i18next</code>.</li>
<li>feat(instrument): a <code>&lt;Trans&gt;</code> in a Server Component
gets <code>t={t} i18n={i18n}</code> and comes from
<code>react-i18next/TransWithoutContext</code>; <code>getT</code> comes
from the module the app imports it from (its own
<code>createServerI18next</code> file) when that is not
<code>next-i18next/server</code>.</li>
<li>feat(instrument): <code>generateMetadata()</code> and other async
functions of a Server Component file get <code>getT()</code>, and
<code>export const metadata = { title: '…' }</code> becomes <code>export
async function generateMetadata ()</code> returning it.
They got <code>i18next.t()</code> before, which next-i18next does not
initialize.</li>
<li>feat(instrument): left as they are, each named in a warning:
components that Server and Client Components both
render (no <code>t</code> works in both) unless they get <code>t</code>
(and <code>i18n</code> for a <code>&lt;Trans&gt;</code>) as props, files
no route
imports, texts outside components, API routes, Server Actions and cached
functions (<code>'use server'</code>,
<code>'use cache'</code>), Server Components wrapped in
<code>memo()</code>/<code>forwardRef()</code>, and language switches,
which
next-i18next makes through the route or <code>useChangeLanguage()</code>
(a call of that switch got
<code>i18n.changeLanguage()</code> added before).</li>
<li>fix(instrument): no <code>i18n.ts</code> init file and no import of
it in <code>_app</code> or the root layout for next-i18next, which
sets i18next up itself; the setup steps are printed when it is not set
up yet, and the pages that load no
translations (no <code>serverSideTranslations()</code> in them or in a
helper they import) are named.</li>
<li>feat(init): the defaults the app's setup decides: the source glob
covers the directories that exist
(<code>{app,components}/**/*</code> rather than <code>src/**/*</code>,
where a Next.js app without <code>src/</code> has no file),
next-i18next's <code>defaultNS</code> (<code>common</code> unless its
config says otherwise, so <code>extract</code> writes the keys of
<code>useT()</code>
to the namespace next-i18next loads), <code>messageFormat</code> for
i18next-icu or i18next-mf2, and <code>keySeparator: false</code>
for flat keys with dots, which <code>extract</code> nested before.
<code>lint</code> and <code>status</code> without a config detect the
same.</li>
</ul>
<p>Any React app:</p>
<ul>
<li>fix(instrument): an import went before a <code>'use client'</code>
directive in a file without imports, which ends the
directive.</li>
<li>fix(instrument): a component that calls a translation hook without
taking <code>t</code> (<code>const { i18n } = useT('ns')</code>)
got a second hook call; <code>t</code> now comes from that call and its
namespace (<code>const { t, i18n } = useT('ns')</code>),
unless a text comes before the call.</li>
<li>fix(instrument): a function that is no component but binds
<code>t</code> from a translation hook (a custom hook,
<code>generateMetadata</code> with <code>getT()</code>) got
<code>i18next.t()</code>; a <code>t</code> from <code>getFixedT()</code>
counted as a <code>t</code> of another kind.</li>
<li>fix(instrument): the texts and <code>values</code> of
<code>IcuTrans</code>, <code>IcuTransWithoutContext</code> and
<code>TransWithoutContext</code> were
translated (<code>values={{ name: t('ada', 'Ada') }}</code>).</li>
<li>fix(instrument): an empty element at the edge of a sentence
(<code>&lt;hr /&gt;</code>, <code>&lt;br /&gt;</code>) went into its
<code>&lt;Trans&gt;</code>.</li>
<li>fix(instrument): <code>next-i18next v{pkg.version}</code> was split
into a <code>t()</code> of its first part: a word with digits
in a later part (<code>i18next</code>) now counts as a word beside a
placeholder.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/i18next-cli/commit/cbc2e8a746ea9cff54f4d1b35c244217dcdde775"><code>cbc2e8a</code></a>
1.90.0</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/326b1128f015dd34a450cba4913e4eeb124e4e92"><code>326b112</code></a>
feat(instrument): next-i18next calls by where a file renders: getT() in
Serve...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/f3659b173d5c131da1389340f7430001c5a2f494"><code>f3659b1</code></a>
1.89.0</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/3ed20359430947d3712f644163e350139fe64048"><code>3ed2035</code></a>
feat(instrument): handle a real app: no broken code, fewer false
positives, m...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/429e5b6f480609057003a092cd3032f868cf775c"><code>429e5b6</code></a>
1.88.1</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/5b7656915efdd81e9bc5e63ece4390c46d6be407"><code>5b76569</code></a>
changelog for 1.88.1</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/cd51160d92e1907a963744db2d9bb07fbae166aa"><code>cd51160</code></a>
fix(extract): resolve the members of Omit, Pick, Partial, Required,
Readonly ...</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/a784cd2a80fccb5087e2218f439cbc7f45578726"><code>a784cd2</code></a>
docs(skill): the conventions to drop in are CLAUDE.md or AGENTS.md</li>
<li><a
href="https://github.com/i18next/i18next-cli/commit/fcc7b4ca2f6d7746d8fb78241a1c015137c929d0"><code>fcc7b4c</code></a>
docs: list the next-intl vs next-i18next post among the places that
carry the...</li>
<li>See full diff in <a
href="https://github.com/i18next/i18next-cli/compare/v1.88.0...v1.90.0">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.88.0&new-version=1.90.0)](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-11-20 13:53:52 +00:00
committed by GitHub
parent 0fef8cc634
commit d1dc6f618d
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -96,7 +96,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.8",
"i18next-cli": "^1.88.0",
"i18next-cli": "^1.90.0",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.2.2",
"nyc": "^18.0.0",
@@ -5847,9 +5847,9 @@
}
},
"node_modules/i18next-cli": {
"version": "1.88.0",
"resolved": "https://registry.npmjs.org/i18next-cli/-/i18next-cli-1.88.0.tgz",
"integrity": "sha512-+2vM5VEWXkPqCocOQTPNp8VQfxmcHOF2RTvlp3u8E/rpNdTtXL4jbWKAIYEG/zdBGz/ljzCTJ89iOFpBJoeYWw==",
"version": "1.90.0",
"resolved": "https://registry.npmjs.org/i18next-cli/-/i18next-cli-1.90.0.tgz",
"integrity": "sha512-RdVjhuZz2LLrY/ui5CCYqe4xlqbRJA7eCuzScVljreVtHF98jb+LqUo8XMElVnJEEVEPDH8vmUPVvtXSv0w6PA==",
"dev": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -130,7 +130,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.8",
"i18next-cli": "^1.88.0",
"i18next-cli": "^1.90.0",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.2.2",
"nyc": "^18.0.0",