Skip to content

fix(i18n): clarify the recipient of diff notes - #23256

Merged
OrcaWin merged 3 commits into
mainfrom
ci/fix-note-catalog
Sep 26, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
ci/fix-note-catalog

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0

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

  • Reviewed the Japanese and Korean wording.
  • All four localization gates and formatting passed; CI covers the remaining checks.

Review

Two existing catalog values change. No new keys or runtime code.

Agent skill upstream boundary

  • Not applicable.

Notes

No platform, SSH, mobile, or wire-contract changes.

Checklist

  • Small and focused
  • Explained the before/after, mechanism, and reason
  • N/A for visual proof with reason
  • Self-reviewed
  • Cross-platform and remote impact considered
  • Localization checks passed; CI covers the rest

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

Six 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 21741

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 Summary

Architecture risk: 🔵 Low · up to 21741

The change affects 1 system.

Changed systems: src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 6 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in src/renderer/src/i18n/locales/en.json: The locale adds three strings for the AI-note prompt, the add-note action, and its in-progress state.
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Added Spanish translations for the AI-note action, the note action, and its in-progress state.
  • observed — Modified behavior in src/renderer/src/i18n/locales/fr.json: Adds French strings for the AI note label, note action, and in-progress “Adding...” state; the commentTooLarge entry remains unchanged.
  • observed — Modified behavior in src/renderer/src/i18n/locales/ja.json: The unchanged commentTooLarge entry is retained, and translations are added for “Add AI note,” “Add note,” and “Adding…”.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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 p… 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. Inc…
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is related to diff-note localization and accurately reflects the recipient wording aspect, but it does not identify the primary change: restoring missing draft catalog entries across six loc…
Full details: Description check

Explanation

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.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 44968ce0-23a0-4534-afe1-abf4c5de2956

📥 Commits

Reviewing files that changed from the base of the PR and between 96c6889 and 21741ca.

📒 Files selected for processing (6)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/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.

Comment thread src/renderer/src/i18n/locales/ja.json Resolved
Comment thread src/renderer/src/i18n/locales/ko.json Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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...) under auto.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 (f6c449191e and peers) resolve against en.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 of en-runtime-required.json: each call site passes a literal default identical to the catalog value, so collectRuntimeRequiredKeys does not mark them boot-required.
  • verify:localization-coverage — passes with its existing allowlist.

All four pass at 21741ca.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@OrcaWin OrcaWin changed the title fix(i18n): restore missing diff note draft text fix(i18n): clarify the recipient of diff notes Sep 26, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ 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 — f6c449191e in ja.json now reads AI 向けのメモを追加 ("for the AI") instead of AI に関するメモを追加 ("about the AI").
  • Korean wording corrected — f6c449191e in ko.json now reads AI에게 전달할 메모 추가 instead of AI에 대한 메모 추가, matching the same recipient intent.
  • main merged in — the earlier six-locale key additions are already present on main, so the PR's net diff against main (ded0c397) is just the two ja/ko value 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에게 전달할 메모 추가`.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@OrcaWin
OrcaWin merged commit 7474da4 into main Sep 26, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants