Repository navigation
fix(deps): update react-i18next for TypeScript 7 and translation parsing - #19378
Conversation
|
Validation update for 72b1d5b:
PR CI and focused rendered Orca E2E are running against the full SHA. The earlier shortened-SHA dispatch was cancelled and replaced before treating it as evidence. Draft until results are reviewed. |
|
Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit
All commands used |
|
Ready for review at
The evidence covers the parser behavior changed by react-i18next/html-parse-stringify, including literal text and safe interpolation, while keeping React/i18next fixed. No new failures found in these checks; this is evidence for a safe focused bump, not a guarantee against every possible translation edge case. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change pins Merge Risk: ⚪ Minimal · up to This updates react-i18next to a fixed 17.0.13 release for TypeScript 7 compatibility and translation fixes. The resolved dependency and existing integration coverage indicate no remaining merge-readiness risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- react-i18next
^17.0.8→17.0.13— pins the reviewed release and widens thetypescriptpeer range from^5 || ^6to^5 || ^6 || ^7, which is the substantive fix: the root toolchain istypescript@^7.0.2, and the prior peer range did not cover TS 7. html-parse-stringify3.0.1→4.0.1(major) +void-elementsremoval — the upstream-integrated parser swap that react-i18next 17.0.11 adopted.
The behavior described in the PR body (Trans parsing/typing fixes) has no runtime surface in Orca: the codebase imports only useTranslation, initReactI18next, and I18nextProvider from react-i18next, and there is no <Trans> component anywhere — html-parse-stringify is consumed exclusively by <Trans>. The t() paths here use plain interpolation (escapeValue: false in src/renderer/src/i18n/i18n.ts). i18next (^26.3.1), react/react-dom (^19.2.8) are unchanged and satisfy the i18next >= 26.2.0 peer. The lockfile update is internally consistent (importer/packages/snapshots all updated, void-elements fully removed), only the root lockfile carries react-i18next, and the packages are renderer-bundled rather than main-process packaged. The dropped caret on 17.0.13 is a deliberate "pin the reviewed version" choice documented in the body, not a defect.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Ready for review. Final validation evidence: 75,654 tests and Linux/Windows packaging pass; five rendered app E2E tests and five real React translation checks pass.
ELI5
Update react-i18next 17.0.8 → 17.0.13 so Orca's TypeScript 7 toolchain is supported and translation markup gets parser/typing fixes. Pin the reviewed version; keep i18next and React unchanged.
What Changed / Why
Upstream changelog: 17.0.9 adds TypeScript 7 to the peer range and fixes Trans inference; 17.0.11 adopts the maintained HTML parser and repairs literal less-than, quoted attributes and comment handling; 17.0.12 repairs keyless ICU translations; 17.0.13 fixes strict selector key-prefix typing.
The required companion
html-parse-stringifymoves 3.0.1 → 4.0.1 and removes its obsoletevoid-elementsdependency. This is an upstream-integrated parser major, not a forced override. Because Trans parsing changed, validation includes rendered translation text and markup. No claim is made that Orca uses the ICU/strict-selector paths; TypeScript 7 compatibility and translation parsing are the relevant benefits.Testing
pnpm tc: passed with the actual TypeScript 7 toolchain.pnpm run build:electron-vite: passed including renderer boot graph; existing chunk warnings remain.All automated commands use
ORCA_BACKGROUND_LAUNCH=1. No layout, locale catalogs, schemas, wire frames, execution ownership or native dependency changes. Translation rendering reaches both local and remotely connected UIs; no local-worktree assumptions added.Linked Issue
User-requested dependency review and validation.
Visual Proof
N/A — dependency-only change. Rendered application and React text/markup checks passed; see evidence above.
Review