Repository navigation
fix: localize Link Routing settings description - #9681
Chang-Jin-Lee wants to merge 1 commit into
Conversation
getBrowserLinkRoutingDescription() returned a hardcoded template
literal instead of going through translate(), so the description
stayed in English regardless of the selected UI language while every
other string on the same settings pane was translated.
Wrapped it in translate() with the platform-specific shortcut label
interpolated via {{value0}}, added the English catalog entry, and ran
sync:localization-catalog to keep the other locale catalogs in parity.
Fixes stablyai#9652
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe browser settings description now uses 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
|
Thank you for this, @Chang-Jin-Lee — and welcome. Your diagnosis was exactly right: We're consolidating this cluster on #9444, for two reasons:
Worth stressing that this is an easy thing to get wrong and nothing in CI would have told you: Your |
Summary
getBrowserLinkRoutingDescription()insrc/renderer/src/components/settings/browser-search.tsreturned a hardcoded template literal instead of going throughtranslate(), so the description stayed in English regardless of the selected UI language, even though every other string on the same settings pane (Settings → Workflow → Browser) was translated.translate(), interpolating the platform-specific shortcut label via{{value0}}(mirroring the existing pattern used elsewhere, e.g.App.tsx'sToggle sidebar ({{value0}})).en.jsonand ranpnpm run sync:localization-catalogto keepes.json/ja.json/ko.json/zh.jsonin parity (English placeholder copied in, per the documented sync behavior — actual translation happens in a separate machine-translation pass perconfig/localization-audit.md).Fixes #9652
Test plan
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/settings/browser-search.test.ts— 2 passedpnpm run typecheck— cleanpnpm run verify:localization-catalog— cleanpnpm run verify:localization-coverage— no new unlocalized strings introduced by this change (3 pre-existing unrelated findings inai-vault-session-launch-actions.ts/AiVaultSessionDropLayer.tsxconfirmed present on unmodifiedmaintoo, out of scope here)oxlinton the changed file — clean