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): the toast after importing a light and dark theme is translated by only21mil · Pull Request #43757 · pingdotgg/t3code Conversation
Contributor
ProblemWith the UI in any language other than English, importing a theme that has both a light and a dark palette shows a toast whose title stays in English ("Dusk added") above a translated description ("Es ist jetzt aktiv."). Importing a single-palette theme already shows the translated title. ChangeThe dual-palette branch of the theme import handler in ScopeA one-line fix of an obvious bug: one hardcoded English string next to an identical translated call. No issue filed. VerificationAn AI agent ran each check below.
Setup: Linux, Chromium, web app from
Not shown: the other eight non-English languages, which read the same existing catalog entry; the desktop app, which renders this same web component. Mobile has no theme file import. 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 reactionsImporting a theme with both palettes titled its toast with a hardcoded
English "{label} added". It now uses the same translated string as the
single-palette branch, which every web catalog already has.
|
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 |
|---|---|
Translate import success title apps/web/src/components/settings/ThemeSettings.tsx |
The success toast title uses the translated “{label} added” template instead of string interpolation. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, maria-rcks
750a8Importing a light and dark theme will now show the success toast title in the user's language instead of English. The change is small and self-contained, and no merge-blocking risk is evident.
Explanation
The title names the change: the toast shown after importing a theme with light and dark palettes was not translated, and the fix makes it translated. It matches the single change in ThemeSettings.tsx, which routes the dual-palette toast title through gt("{label} added"). The title is a conventional commit with a specific scope and reads clearly. Minor issue: the phrasing "is translated" describes the desired state rather than the bug, but the intent is still clear.
Explanation
The description follows the template well. Problem explains the bug with reproduction steps (German UI, importing a light and dark theme, English title shown). Change explains the one-line fix. Scope states it is a one-line bug fix and explains why no issue is filed. Verification gives concrete checks, before/after screenshots, the commands run, the environment, and the untested areas (other eight languages, desktop, mobile). The template's commit-title guidance and agent-model footer are also addressed. The description is complete and specific.
a8b1294f-3fe1-4e0a-8339-0446260720a8apps/web/src/components/settings/ThemeSettings.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceReal web app, Chromium, 1280×800, fresh isolated state on both commits. Set language to Deutsch, open Darstellung → Design hinzufügen, import the supplied dual-palette Dusk.json, and confirm. Base shows Dusk added; head shows Dusk hinzugefügt. Both preserve the name and show Es ist jetzt aktiv.
Scenario source. scenarios:prove exited 0: failed at the translated-title assertion on base and passed on head. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ted (pingdotgg#43757) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit b0e87e0)
…ted (pingdotgg#43757) Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit b0e87e0)
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.