GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — fix(web): settings inheritance tooltips name project override counts in the UI language by only21mil · Pull Request #43718 · pingdotgg/t3code Conversation
Contributor
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, TestingAn AI agent ran each check below.
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. Not shown
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…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.
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Pluralized override label apps/web/src/components/settings/SettingInheritance.tsx, apps/web/src/components/settings/SettingInheritance.browser.test.tsx, apps/web/src/i18n/translations/*.json |
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. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: maria-rcks, juliusmarminge
0be35This 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.
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.
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.
23e1e3c4-6794-42c6-a23b-4a89d789e8d7apps/web/src/components/settings/SettingInheritance.browser.test.tsxapps/web/src/components/settings/SettingInheritance.tsxapps/web/src/i18n/translations/de.jsonapps/web/src/i18n/translations/en.jsonapps/web/src/i18n/translations/es.jsonapps/web/src/i18n/translations/fr.jsonapps/web/src/i18n/translations/ja.jsonapps/web/src/i18n/translations/ko.jsonapps/web/src/i18n/translations/pt-BR.jsonapps/web/src/i18n/translations/ru.jsonapps/web/src/i18n/translations/sv.jsonapps/web/src/i18n/translations/zh.jsonIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…itance-overrides-i18n
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 <[email protected]>
EvidenceReal 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.
Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…in the UI language (pingdotgg#43718) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit 484a0ee)
…in the UI language (pingdotgg#43718) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit 484a0ee)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.