You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): settings inheritance tooltips name project override counts in the UI language - #43718
At the "All projects" scope, a Settings row that some projects override shows a layers badge whose tooltip and button label end in a project override count. That count used a hardcoded English template, so in every other UI language the tooltip read, for example, "Integrierter Standard · 1 project override".
The label now uses one translated plural string, {summary} · {count, plural, one {{count} project override} other {{count} project overrides}}, matching the other {label} · {count} labels in Settings. Each web catalog gets the new key with its translation, using that catalog's existing word for a project override. The English text does not change.
Testing
An AI agent ran each check below.
New SettingInheritance.browser.test.tsx checks the badge's accessible name for 1 and 2 overriding projects in English and German. It fails on the base component (German shows "1 project override") and passes on this change, 3 serial runs.
vp run i18n:check and vp run check:changed pass with no warnings.
Setup: Linux, T3 Browser panel (Chromium), light theme, 1280x800, fresh isolated dev server state, two projects.
Steps: Settings > Worktrees > set "Start from remote" for one project and "Branch prefix" for both > switch Language to Deutsch > back to "All projects" > hover each layers badge.
39388dd0 (before)
HEAD (after)
German, one project: "Integrierter Standard · 1 project override"
German, one project: "Integrierter Standard · 1 Projektüberschreibung"
German, two projects: "Integrierter Standard · 2 project overrides"
German, two projects: "Integrierter Standard · 2 Projektüberschreibungen"
Not shown
Mobile: the mobile app has no settings inheritance badge, so nothing changes there.
Desktop: it renders the same web settings page; no separate desktop capture.
Languages other than English and German: each catalog has its translation; only German was captured.
…in the UI language
The Settings inheritance badge added a hardcoded English "N project override(s)" to its tooltip and button label, so it stayed English in every other UI language. The count now uses one translated plural string with the summary, matching the other "{label} · {count}" labels, and every web catalog has its translation.
Reviewing files that changed from the base of the PR and between 0be358d and 14d512d.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
SettingInheritance now formats project override summaries with a pluralized translation template. English and nine other locales have translation entries. Browser tests check singular and plural button names in English and German.
SettingInheritance passes the summary and override count to a pluralized translation. Translation entries were added for English, German, Spanish, French, Japanese, Korean, Brazilian Portuguese, Russian, Swedish, and Chinese. Browser tests check singular and plural button names in English and German.
This change localizes the project override count in settings inheritance tooltips and button labels. It is tested for English and German, and no merge-blocking risk is evident.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the settings inheritance tooltip and button label now show project override counts in the UI language instead of hardcoded English. It follows the conventional commit …
Description check
The description follows the template's main sections. It gives the problem (hardcoded English count in other languages), the change (a translated plural string added to each catalog), and verification…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the settings inheritance tooltip and button label now show project override counts in the UI language instead of hardcoded English. It follows the conventional commit format and matches the changeset, which adds a translated plural string and updates SettingInheritance.tsx and the locale catalogs.
Full details: Description check
Explanation
The description follows the template's main sections. It gives the problem (hardcoded English count in other languages), the change (a translated plural string added to each catalog), and verification (a browser test for 1 and 2 overrides in English and German, before/after screenshots, and i18n and changed-file checks). It states what was not checked (other languages beyond German, mobile, and desktop). The Scope section does not link an issue or explain why none is needed, and the template asks for that. The agent-model line is present.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The repository's testing guide leaves copy text out of tests, and a browser
test file spends seconds of CI for a translated string.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Real web app, Chromium, 1280×800, dark theme, fresh synthetic data on each commit. Created proj-a and proj-b; disabled Start from remote and set pa/ for proj-a; set pb/ for proj-b; returned to All projects; selected Deutsch; hovered both inheritance badges.
The scenario failed on base and passed on head. Base retained English singular/plural suffixes. Head displayed German singular/plural suffixes and passed both accessible-name checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
At the "All projects" scope, a Settings row that some projects override shows a layers badge whose tooltip and button label end in a project override count. That count used a hardcoded English template, so in every other UI language the tooltip read, for example, "Integrierter Standard · 1 project override".
The label now uses one translated plural string,
{summary} · {count, plural, one {{count} project override} other {{count} project overrides}}, matching the other{label} · {count}labels in Settings. Each web catalog gets the new key with its translation, using that catalog's existing word for a project override. The English text does not change.Testing
An AI agent ran each check below.
SettingInheritance.browser.test.tsxchecks the badge's accessible name for 1 and 2 overriding projects in English and German. It fails on the base component (German shows "1 project override") and passes on this change, 3 serial runs.vp run i18n:checkandvp run check:changedpass with no warnings.Setup: Linux, T3 Browser panel (Chromium), light theme, 1280x800, fresh isolated dev server state, two projects.
Steps: Settings > Worktrees > set "Start from remote" for one project and "Branch prefix" for both > switch Language to Deutsch > back to "All projects" > hover each layers badge.
39388dd0(before)HEAD(after)Not shown
Generated with Claude Opus 5.5 in T3 Code Nightly