Repository navigation
fix(i18n): regenerate the runtime catalog and localize the cookie example from #21462 - #21889
Conversation
…countsPane strings #21462 (7a6d100) added eight en.json entries without re-running the generator, so `verify:localization-runtime-catalog` fails on main and on every PR's merge ref. Generated with `--fix`; no hand edits. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe English runtime localization now includes OpenCode Go authentication instructions for raw tokens and full cookie headers. It adds token examples, DevTools lookup guidance, and a Windows and WSL sharing note. Account search localization now requests the opencode.ai session cookie for rate-limit fetching. The cookie example in the settings component now uses Priority: ⬇️ Low 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the changes, cause, testing, and scope. It does not follow the required template because it lacks the required Linked Issue format, Visual Proof or an explicit N/A explanation, completed testing and checklist details, and the remaining template sections. Resolution Add the missing template sections. Include a
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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
- Regenerated runtime-required English catalog — adds the 8
en.jsonentries (.en-runtime-required.json) that #21462 introduced without re-running the sync, underauto.components.settings.AccountsPane.*andauto.components.settings.accounts.search.d1d2ae383c.
Verification on this branch: generate-runtime-required-english-catalog.mjs exits 0; re-running it with --fix leaves the working tree clean (byte-for-byte generator output, no hand edits); origin/main's catalog contains none of the 8 keys while en.json contains all 8, confirming the main red is real and cleared here. verify-localization-catalog and verify-localization-extraction also pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
The same commit (#21462) left one `<code>` example as raw JSX text, so `verify:localization-coverage` fails on main once the runtime catalog passes. The text already has a key (its placeholder twin uses `auto.components.settings.AccountsPane.37b4b4a3f7`); reuse it. Control: with this edit reverted the check names exactly this site, with it restored the check passes. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Localized the OpenCode Go cookie-header example — wrapped the
<code>text inaccounts-pane-provider-setting-sections.tsxintranslate('auto.components.settings.AccountsPane.37b4b4a3f7', 'auth=…; __Host-console_session=…'), clearing theverify:localization-coveragered. The key is reused from the same section's input placeholder and itsen.jsonvalue matches the literal default, so no catalog regeneration is required — verified by a clean--fixrun.
All four localization gates pass on the branch: generate-runtime-required-english-catalog.mjs (verify) exits 0 and --fix leaves the working tree clean; audit-localization-coverage.mjs --check, verify-localization-catalog.mjs, and verify-localization-extraction.mjs all exit 0.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Main is red on the static-analysis job since
7a6d10064e(#21462), for two reasons in sequence:verify:localization-runtime-catalog: eighten.jsonentries underauto.components.settings.AccountsPane.*andauto.components.settings.accounts.search.*were added without regeneratingsrc/renderer/src/i18n/en-runtime-required.json. First commit is the generator's own--fixoutput, 12 lines, no hand edits.verify:localization-coverage(reached once 1 passes): one<code>example inaccounts-pane-provider-setting-sections.tsxwas left as raw JSX text. Second commit wraps it intranslatewith the key its placeholder twin already uses (auto.components.settings.AccountsPane.37b4b4a3f7).Reproduced on pristine main (
node config/scripts/generate-runtime-required-english-catalog.mjsexits 1 at7a6d10064e, 0 at646fa3645f;audit-localization-coverage.mjs --checkexits 1 at169bccc544naming that site). On the branch all four localization checks exit 0,typecheck:web0, oxfmt and oxlint 0 on the edited file. Control: with the second commit's edit reverted the coverage check reds naming exactly that site.Every PR's merge ref fails this job until these land. Companion to #21874 (merged).