mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 07:27:35 +00:00
chore(deps-dev): Bump i18next-cli from 1.53.2 to 1.65.0 (#1979)
Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.53.2 to 1.65.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.65.0</h2> <ul> <li>fix(extract): respect <code>fallbackNS</code> — keys already translated in a fallback namespace are no longer duplicated into the requesting namespace's file (<a href="https://redirect.github.com/i18next/i18next-cli/issues/272">#272</a>). <ul> <li>Such keys are now attributed to the fallback namespace instead, so <code>removeUnusedKeys</code> no longer prunes them from the fallback file (previously a key like <code>cancel</code> living only in the fallback namespace was <strong>deleted</strong> there and re-created in every namespace that used it).</li> <li>A key that already has a non-empty value in the requesting namespace's own file is treated as an intentional per-namespace override and keeps being extracted there, mirroring the i18next runtime lookup order (requested namespace first, then the fallback chain). Empty-string placeholders left behind by previous extract runs are cleaned up.</li> <li>Keys not found in any fallback namespace are still added to the requesting namespace, like the i18next <code>saveMissing</code> behavior.</li> </ul> </li> <li>feat(extract): <code>fallbackNS</code> now also accepts an array of namespaces (looked up in order, like the i18next runtime option) — supported by <code>extract</code>, <code>status</code>, and the TypeScript types generator.</li> </ul> <h2>1.64.2</h2> <ul> <li>fix(status): scope the pass/fail result to the requested locale (<a href="https://redirect.github.com/i18next/i18next-cli/issues/271">#271</a>). <ul> <li><code>status <locale></code> now exits based on <strong>that locale only</strong>, instead of always evaluating every secondary language. Previously, running e.g. <code>status en-AU</code> on a fully-translated primary could print "🎉 All keys present" and still exit <code>1</code> because an unrelated secondary (e.g. an empty <code>de-DE</code>) was incomplete — a summary that contradicted the exit code.</li> <li>When the requested locale is the primary, the check still fails only on <em>absent</em> keys (empty placeholders are tolerated); for a secondary it fails on any untranslated/absent key. The global view (<code>status</code> with no locale) is unchanged.</li> <li>The failure message now names the locale when scoped (<code>Error: Incomplete translations detected for "de-DE".</code>) so the reason is no longer hidden.</li> </ul> </li> </ul> <h2>1.64.1</h2> <ul> <li>fix(status): align plural reporting with the i18next runtime (<a href="https://redirect.github.com/i18next/i18next-cli/issues/270">#270</a>). <ul> <li>Plural categories that <code>Intl.PluralRules</code> only selects for out-of-range values (e.g. French <code>_many</code>, which fires only for counts ≥ 1,000,000) are now treated as <strong>optional</strong>: a missing or empty variant is shown as a soft "optional plural form" note instead of a hard "missing key" error, so it no longer fails the check. Categories reachable by typical counts (including decimals, e.g. Polish/Russian <code>other</code>) remain required.</li> <li>With <code>disablePlurals: true</code>, a key used with <code>count</code> is now considered satisfied when either its plural variants (<code>_one</code>/<code>_other</code>) <strong>or</strong> the bare key exist — mirroring the runtime's <code>key + suffix → key</code> resolution chain —</li> </ul> </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/9497126db21489514db6c2d181ccb667af977281"><code>9497126</code></a> 1.65.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/cebfb66b646ce72d93f888c8438082698f35af6c"><code>cebfb66</code></a> fix(extract): respect fallbackNS and stop duplicating keys into namespace fil...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/4af3b5b767ba144773419d13d045240ebace36d0"><code>4af3b5b</code></a> 1.64.2</li> <li><a href="https://github.com/i18next/i18next-cli/commit/59e5c157b8e6263a7686aa83189169eef4947230"><code>59e5c15</code></a> fix(status): scope pass/fail to the requested locale <a href="https://redirect.github.com/i18next/i18next-cli/issues/271">#271</a></li> <li><a href="https://github.com/i18next/i18next-cli/commit/58e96acf4d779a60dd49555cfbe7125d370918dd"><code>58e96ac</code></a> 1.64.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/90fb64de7c9973cc2bb93074489a114b3c214a43"><code>90fb64d</code></a> fix(status): align plural reporting with the i18next runtime <a href="https://redirect.github.com/i18next/i18next-cli/issues/270">#270</a></li> <li><a href="https://github.com/i18next/i18next-cli/commit/4f32c051a6b330e5480bea9c5f1e06bfc057b016"><code>4f32c05</code></a> 1.64.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/9ab66af4796228060d05bda6de5ff7dea92e9c89"><code>9ab66af</code></a> feat(extract): support trailing wildcards in functions (e.g. 'tProps.*')</li> <li><a href="https://github.com/i18next/i18next-cli/commit/3f40d0b904b01546fe86ae14d2e6f54b39ccba78"><code>3f40d0b</code></a> 1.63.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/eac231da589c9690a3bcc1aaf05f10572ae395cb"><code>eac231d</code></a> fix(init): pin <code>@inlang/plugin-i18next</code><a href="https://github.com/6"><code>@6</code></a>.2.1 (restores Sherlock annotations)</li> <li>Additional commits viewable in <a href="https://github.com/i18next/i18next-cli/compare/v1.53.2...v1.65.0">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:
+1
-1
@@ -133,7 +133,7 @@
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.3",
|
||||
"i18next-cli": "^1.53.2",
|
||||
"i18next-cli": "^1.65.0",
|
||||
"istanbul": "^0.4.5",
|
||||
"istanbul-lib-coverage": "^3.2.2",
|
||||
"postcss": "^8.5.16",
|
||||
|
||||
Reference in New Issue
Block a user