Repository navigation
fix(i18n): clarify the recipient of diff notes - #23256
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughSix locale files add translations for the AI-note prompt, the add-note action, and its in-progress state. Existing oversized-comment messages remain unchanged. Priority: ⬇️ Low Merge Risk: 🔵 Low · up to Japanese and Korean users may misunderstand who the note is for. The wording should be corrected, but the remaining risk is limited to these labels. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description uses the required headings and explains the intended localization change, but it inaccurately states that only Japanese and Korean values changed and that no new keys were added. The pull request adds three entries to six locale catalogs, which is the primary change. Resolution Update the description to state that the “Add note for the AI,” “Add note,” and “Adding...” entries were restored in all six locale files. Remove the incorrect claim that only two existing values changed and that no new keys were added. Include the linked issue or explain the maintainer exception.
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 44968ce0-23a0-4534-afe1-abf4c5de2956
📒 Files selected for processing (6)
src/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Data-only i18n correction: adds three missing DiffCommentDraftCard keys to all six locale catalogs. Call sites live at DiffCommentDraftCard.tsx:220,246,254,259 (placeholder, submit button label/aria-label, submitting label).
- Three keys added per locale —
f6c449191e(Add note for the AI),5fa4bfebaa(Add note),5e9b3d0c2e(Adding...) underauto.components.diff.comments.DiffCommentPopover. - Translations reused — every new locale value exactly matches that locale's existing entry for the same English string (
d737791433,13f94d760c/ea4e45b71b,35831a7312).
Verification
I ran the strict gates rather than taking the description on faith:
verify:localization-extraction— the extractor's generated hashes (f6c449191eand peers) resolve againsten.json; this is the check that proves the hand-written hashes are the real ones, not guesses.verify:localization-catalog— 14986 references resolve; all six locales carry the new keys.verify:localization-runtime-catalog— correctly leaves the new keys out ofen-runtime-required.json: each call site passes a literal default identical to the catalog value, socollectRuntimeRequiredKeysdoes not mark them boot-required.verify:localization-coverage— passes with its existing allowlist.
All four pass at 21741ca.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one out-of-diff follow-up below.
Reviewed changes
This run covers the delta since the prior pullfrog review at 21741ca3: commit baafc2c (translation corrections) and the main merge in dc8935eb.
- Japanese wording corrected —
f6c449191einja.jsonnow readsAI 向けのメモを追加("for the AI") instead ofAI に関するメモを追加("about the AI"). - Korean wording corrected —
f6c449191einko.jsonnow readsAI에게 전달할 메모 추가instead ofAI에 대한 메모 추가, matching the same recipient intent. mainmerged in — the earlier six-locale key additions are already present onmain, so the PR's net diff againstmain(ded0c397) is just the twoja/kovalue edits.
All four localization gates pass at dc8935eb (verify:localization-catalog, -extraction, -runtime-catalog, -coverage).
ℹ️ The identical placeholder in MarkdownPreviewAnnotationComposer keeps the old wording
MarkdownPreviewAnnotationComposer.tsx:107 uses key d737791433 with the exact same English text Add note for the AI, but its ja/ko values still read AI に関するメモを追加 / AI에 대한 메모 추가 — the same "about the AI" misreading this PR corrects. Both are the same note-to-AI placeholder, so the correction likely applies there too. Not blocking; a follow-up would keep the two strings consistent.
Technical details
# Same English placeholder, two catalog keys
## Affected sites
- `src/renderer/src/i18n/locales/ja.json:15012` — `d737791433` = `AI に関するメモを追加` (unchanged by this PR)
- `src/renderer/src/i18n/locales/ko.json:15012` — `d737791433` = `AI에 대한 메모 추가` (unchanged by this PR)
- `src/renderer/src/components/editor/MarkdownPreviewAnnotationComposer.tsx:107` — the call site (`translate('...d737791433', 'Add note for the AI')`)
- `src/renderer/src/i18n/locales/en.json:15168` — the English source for `d737791433` is identical to `f6c449191e` at `en.json:15656`
## Required outcome
- `d737791433`'s `ja`/`ko` values should read "for the AI" like the corrected `f6c449191e` values, so the same English string is not translated two different ways.
## Suggested approach (optional)
- Reuse the values this PR settled on: `ja` `AI 向けのメモを追加`, `ko` `AI에게 전달할 메모 추가`.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
The Japanese and Korean diff-note hints describe a note about the AI. They should tell users that the note will be sent to the AI.
What Changed
Correct the recipient wording in the two existing translations. The English message, key, and note behavior stay the same.
Why
The action sends a user's note to the AI; naming the intended recipient makes the hint match that action. A translation correction fixes the mismatch without changing the message contract.
Linked Issue
N/A.
Visual Proof
N/A — catalog wording only; no layout or interaction changes.
Testing
Review
Two existing catalog values change. No new keys or runtime code.
Agent skill upstream boundary
Notes
No platform, SSH, mobile, or wire-contract changes.
Checklist