Skip to content

feat(i18n): add Catalan Control UI locale - #189708

Merged
roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-139033
Oct 31, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loop/contributor-pr-139033

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

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 to control-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.

Failed shard Baseline evidence
checks-ui-e2e (1/7) The two desktop PR layout assertions fail identically on clean main 68b8461e9d05. Existing hover rows extend beyond their parent; the older tests assert zero overflow.
checks-ui-e2e (5/7) The healthy cloud badge assertion also fails in main CI job 124620417504. Main already repairs it in 114adcd6e5b1 (#189701).
checks-ui-e2e (6/7) The summary/full-diff assertion fails identically in main CI job 124620417465 and the clean-main reproduction. Main deliberately separates those request shapes.

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 base b943c1201844, and the tested PR merge 98a2957dde1a. The Catalan candidate is unchanged.

  • Regressions against main 68b8461e9d05: ca/ca-ES resolved 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).
  • UI translation and lazy registry tests: 11 passed; a temporary full-catalog audit additionally checked all 11,591 runtime Catalan keys against canonical English, with no unknown/missing keys or placeholder mismatches (combined 9.45 seconds).
  • Existing 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:baseline left the baseline unchanged; pnpm ui:i18n:verify, focused typecheck, targeted oxlint, formatting, and git diff --check passed. Broad validation is delegated to this PR’s CI.
  • Local autoreview of the complete candidate (committed unchanged as b46bb333e17d) against 68b8461e9d05, 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.
  • The contributor branch was read only using 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.

Before: Appearance language picker on main

After: Català selected through the existing picker; document language is ca and copy uses the English bootstrap.

After: Català selected

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]>
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts labels Oct 31, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 31, 2026 19:43
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 31, 2026 19:52
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
@roboclaw-bot
roboclaw-bot disabled auto-merge October 31, 2026 20:00
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds Catalan selection, browser-language detection, and translation-generation wiring to the Control UI.

Example: An operator selects Català in Settings → Appearance → Language.

  • Before: Català is unavailable.
  • After: Català is selected with document language ca; interface copy remains English until the automated translation refresh.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused implementation and visible product proof support the feature, but unresolved required E2E failures limit validation confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected current-candidate screenshots show the real Vite Control UI Appearance picker before and after selecting Català with synthetic Gateway data and expected English bootstrap copy; the accompanying report exercises Chinese → Catalan → English through that picker.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Catalan-speaking operators cannot choose their language in the Control UI.
Reason: Maintainer authorship establishes direction, and the narrowly scoped source registration follows the repository's deliberate separation of locale wiring from generated translations.

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
Reviewed head: b46bb333e17dac2e09d2be94f7f672c823a2104f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Source-only locale bootstrap keeps the original intent (fix(ui): bootstrap source-only locales #131015: Allow new locales to load before post-merge automation creates their translation memory.)
  • Canonical lazy catalogs keeps the original intent (7e78de7: Use canonical translation memory instead of duplicated generated locale catalogs while preserving stable lazy adapters.)
  • Shared locale matching and public-reader consumers keeps the original intent (f2489c4: Centralize locale policy for the Control UI and standalone public conversation reader.)
  • Documented locale availability keeps the original intent (a80a8c3: Document a newly registered language with explicit English fallback pending translation refresh.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit f2489c4 adds src/shared/control-ui-locale.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f2489c410917; files: src/shared/control-ui-locale.ts)
  • Peter Steinberger: Raw commit 6f3a983 adds scripts/lib/control-ui-i18n-config.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6f3a983c3272; files: scripts/lib/control-ui-i18n-config.ts)
  • Daniel Nylander: Raw commit a80a8c3 adds ui/src/i18n/lib/registry.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a80a8c308999; files: ui/src/i18n/lib/registry.ts)

PR surface

Source +86, Tests +9, Docs 0, Other +4. Total +99 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 86 0 +86
Tests 3 9 0 +9
Docs 1 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 5 1 +4
Total 12 103 4 +99

Root-cause cluster

Relationship: canonical
Canonical: #189708
Summary: This PR explicitly replaces the earlier Catalan implementation and addresses the linked language-support request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P3: This is an additive interface-language improvement with no demonstrated broken existing workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is an additive interface-language improvement with no demonstrated broken existing workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attribute the failing chat and cloud-session E2E checks before landing; repair this branch only if the failures are caused by its diff.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 4:00 PM ET / 20:00 UTC.

@roboclaw-bot
roboclaw-bot merged commit 9fb71cd into main Oct 31, 2026
243 of 249 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-139033 branch October 31, 2026 20:17
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Catalan (ca) language support to Control UI

1 participant