Skip to content

fix(i18n): translate conflict, viewed, Quick Open and usage copy as whole sentences - #35365

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/i18n-leftovers-2
Oct 28, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/i18n-leftovers-2

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

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

ELI5

Some messages were glued together from separate pieces of English and translated text, so other languages got broken word order or wrong plural endings (Russian showed «1 ответов»). Each message is now one translatable sentence.

What Changed

  • Editor conflicts (ConflictComponents.tsx): conflict-kind labels ("Both modified", …) and their hints were English constants, and the banner was built as {English state} {translated "conflict ·"} {English kind}. They are now translated (createLocalizedCatalog), and the banner, "Renamed from {{path}}" and "Snapshot captured at {{time}}." are complete messages.
  • PR file viewed checkbox (PRViewedCheckbox.tsx): '{{value0}} {{value1}} as viewed' received raw English "Mark"/"Unmark"; now two full sentences.
  • Quick Open ripgrep hint: "Install" + <code>ripgrep</code> + "on the remote to enable…" were three fragments, and the reason was spliced between "(" and ")."; now one Trans sentence with an embedded <code> and one sentence with {{reason}}.
  • Usage breakdown (UsageBreakdownSection.tsx): {n} sessions • {n} turns/events used plain words after numbers; now _one/_other count keys, so CLDR picks the form (ru one/few/many).
  • 28 new keys with translations in all 10 built-in locales (Codex translation + a second Codex review pass, glossary-checked); the replaced fragment keys are removed.

Why

Whole-sentence keys let each language choose word order and agreement; count keys are the only way to get Russian/Polish-style plural forms right.

Linked Issue

Refs #34783 (conflict banner, viewed checkbox), Refs #32207. The Quick Open and viewed-checkbox cases were also flagged in the German locale PR #34917.

Visual Proof

N/A: copy-only change; verified through locale catalogs and a rendered Russian test.

Testing

  • UsageBreakdownSection.test.tsx renders in Russian and checks one/few/many forms («1 сессия • 21 ответ», «3 сессии • 5 ответов», «11 сессий • 2 ответа»).
  • Existing ConflictComponents, conflict review surface, Quick Open parser and usage pane tests pass.
  • pnpm verify:localization-{catalogs,extraction,coverage,runtime-catalog}, pnpm tc:web.

Conflict banner and viewed-checkbox fixes adapted from @gentslava's #33370.

…hole sentences

- Editor conflicts: localize conflict-kind labels and hints, and build the
  banner, rename note and snapshot time as complete messages instead of
  joining English state labels with a translated fragment.
- PR file viewed checkbox: separate Mark/Unmark sentences instead of
  injecting raw English verbs into '{{value0}} {{value1}} as viewed'.
- Quick Open ripgrep hint: one sentence with an embedded <code> element and
  an interpolated reason instead of three fragments.
- Usage breakdown: session/turn/event counts use CLDR plural keys, so Russian
  reads «1 сессия • 21 ответ» instead of «1 ответов».

Refs #34783

Co-authored-by: Vyacheslav Scherbinin <[email protected]>
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 28, 2026 21:11
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were found.

Summary

The PR replaces translated fragments with complete messages across conflict views, viewed-file controls, Quick Open, and usage counts.

  • Conflict details show translated labels and complete messages.
  • Viewed-file controls use separate translated labels for each action.
  • Quick Open guidance presents the scan reason and install note as full messages.
  • Usage rows choose count words that fit each language.

No actionable new issues were found. The full PR was reviewed because the current and previously reviewed commits have different merge bases with the target commit. Tests were not run during this review.

Reviews (2) · Last reviewed commit: "Merge origin/main into OrcaWin/i18n-left..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2eee0b6-0a51-468c-8ece-6954b87097f2
Commits

Reviewing files that changed from the base of the PR and between 3cb9f20 and d09aa03.

Files selected for processing: 12
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • 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/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 12
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/pt.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Walkthrough

The renderer now uses localized messages for conflict details, Quick Open guidance, GitHub viewed-file actions, and usage breakdown counts. Conflict labels combine the conflict kind with its resolution status, and rename and snapshot-time messages interpolate their values. Usage rows show singular or plural session and activity counts. A Russian-language test checks pluralized rendering for selected counts. Locale catalogs were updated across the listed languages.

Priority: Low

Merge Risk: Minimal · up to d09aa

No identified localization issue currently prevents merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title names the change accurately: it moves conflict, viewed-checkbox, Quick Open and usage-breakdown strings from English fragments plus translated pieces to complete translatable sentences. It u…
Description check Passed The description covers the ELI5, what changed, why, testing, and visual-proof sections. It explains the before and after clearly with a concrete example ("1 ответов"), and it lists file-level mechanis…
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.
Full details: Title check

Explanation

The title names the change accurately: it moves conflict, viewed-checkbox, Quick Open and usage-breakdown strings from English fragments plus translated pieces to complete translatable sentences. It uses a conventional commit prefix and specific scope, so a teammate scanning history can identify the primary change. It is a long single sentence, but it is still clear.

Full details: Description check

Explanation

The description covers the ELI5, what changed, why, testing, and visual-proof sections. It explains the before and after clearly with a concrete example ("1 ответов"), and it lists file-level mechanisms. The template's required sections are mostly complete. Gaps remain: the Linked Issue section still shows the template placeholder "Fixes #" and uses "Refs" references, which the template says is not sufficient for outside contributors. The AI Disclosure and Agent skill upstream boundary sections are blank or unchecked. The Testing checklist boxes are unchecked, and the PR does not say which platforms were tested. The Checklist items are not ticked. These are not critical enough to fail the description, but they should be fixed before merge.

Resolution

Replace the placeholder "Fixes #" with a real linked issue, since the template says outside contributors need one and "Refs" alone is not sufficient. Tick the manual-testing and automated-tests boxes only if they are true, and say which platforms were tested. Fill in the AI Disclosure section, or leave it blank only if the author is a StablyAI team member. Complete or mark the Agent skill upstream boundary item, and tick the Checklist items that apply.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 8 functions across 5 files. (12 skipped: 12 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

# Conflicts:
#	src/renderer/src/i18n/locales/de.json
#	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/pt.json
#	src/renderer/src/i18n/locales/ru.json
#	src/renderer/src/i18n/locales/tr.json
#	src/renderer/src/i18n/locales/zh-Hant.json
#	src/renderer/src/i18n/locales/zh.json
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.

1 participant