Repository navigation
feat(i18n): add Catalan Control UI locale - #189708
Conversation
Register Catalan through the source-only locale pipeline, with a glossary and existing browser locale-switch coverage. Generated translations follow the post-merge refresh. Co-authored-by: Jesús Corrius <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesAdds Catalan selection, browser-language detection, and translation-generation wiring to the Control UI. Example: An operator selects Català in Settings → Appearance → Language.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful locale support absent from main, with no identified correctness or security defect; required CI remains red. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared locale policy resolves saved and browser language preferences, while the UI loads locale catalogs and the existing refresh workflow generates translations. flowchart LR
A[Browser language or saved preference] --> B[Shared locale policy]
B --> C[Appearance language picker]
C --> D[Lazy locale registry]
D --> E[Catalog materializer]
F[Translation refresh] --> E
E --> G[Translated UI or English bootstrap]
Technical reviewBest possible solution: Land the existing source-only locale wiring after resolving CI, then let the established refresh workflow publish Catalan translations. Do we have a high-confidence way to reproduce the issue? Current main and stable source exclude Catalan, establishing the missing capability without executing target code; the PR supplies before/after picker captures and reports base-failing regressions. Is this the best way to solve the issue? The patch is the smallest complete source registration using existing owners: shared matching, lazy materialization, picker labels, and automated translation generation remain centralized. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8d2c49f92492. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +86, Tests +9, Docs 0, Other +4. Total +99 across 12 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 4:00 PM ET / 20:00 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Register Catalan through the source-only locale pipeline, with a glossary and existing browser locale-switch coverage. Generated translations follow the post-merge refresh. Co-authored-by: Jesús Corrius <[email protected]>
Supersedes #139033, thanks @jcorrius.
Closes #139031
What Problem This Solves
Catalan-speaking operators cannot select their language in the Control UI.
User Impact
Català appears in Settings → Appearance → Language, and Catalan browser languages (
ca,ca-ES) select it automatically. Copy intentionally remains English until the existing post-merge locale refresh generates Catalan translations. This does not add Catalan documentation translations.Why This Change Was Made
Register Catalan with the current shared locale policy, lazy adapter, English language label, generation configuration, and the contributor’s Catalan glossary. Follow
ui/AGENTS.md: generated translation memory and metadata belong tocontrol-ui-locale-refresh, so neither is included here.Main already contains the proposed bootstrap loader and test repairs; the replacement omits that duplicate work. Simplification leaves six wiring/adapter lines and the 82-line glossary (+88 source/data lines), nine regression-test lines, and a two-line test budget allocation (+99 total). No dead code in this owner could safely offset the required locale data.
Evidence
Exact-head CI completed with inherited failures. Run 41235552369 failed three UI browser shards; the Catalan checks and all other primary jobs passed or were skipped. Native landing uses the authorized inherited-failure route, retaining the red CI result.
checks-ui-e2e (1/7)68b8461e9d05. Existing hover rows extend beyond their parent; the older tests assert zero overflow.checks-ui-e2e (5/7)114adcd6e5b1(#189701).checks-ui-e2e (6/7)The clean-main reproduction ran the original bundled tests in rootless Podman, capped at four CPUs and 8 GB: three expected failures, two passes, nine filtered cases (52.89 seconds). All failed test and owning source blobs match main
68b8461e9d05, CI baseb943c1201844, and the tested PR merge98a2957dde1a. The Catalan candidate is unchanged.68b8461e9d05:ca/ca-ESresolved to English, startup stayed English, switching to Catalan retained Arabic metadata, and the real Appearance picker lacked a Catalan option. All pass with this change.src/shared/control-ui-locale.test.ts: 19 passed (1.33 seconds wall).locale-offline-retry.e2e.test.ts: all 3 passed through the real Vite UI and synthetic Gateway (12 seconds). Includes Chinese → Catalan → English selection, plus Swedish detection and French reconnect recovery. Before/after captures below use synthetic data.pnpm ui:i18n:baselineleft the baseline unchanged;pnpm ui:i18n:verify, focused typecheck, targeted oxlint, formatting, andgit diff --checkpassed. Broad validation is delegated to this PR’s CI.b46bb333e17d) against68b8461e9d05, P0–P2: scoped-clean, no actionable findings. Its isolated reviewer did not execute tests. Local ClawSweeper is unavailable; hosted review follows the repository fallback route.gh pr view/gh pr diff; it was never checked out or run on the Team host. This independently prepared commit credits Jesús Corrius with the verified PR commit author identity.Before: the existing language picker on main.
After: Català selected through the existing picker; document language is
caand copy uses the English bootstrap.