Skip to content

chore(ui): refresh control ui locales - #138401

Merged
steipete merged 1 commit into
mainfrom
automation/control-ui-locale-refresh
Sep 4, 2026
Merged

steipete merged 1 commit into
mainfrom
automation/control-ui-locale-refresh

Conversation

@openclaw-mantis

@openclaw-mantis openclaw-mantis Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Translates the new “Parallel tasks” Swarm heading in all 20 Control UI locales. The English key was added in #138183 after the full refresh in #138219 had finished its review.

Why This Change Was Made

The canonical incremental workflow translated one pending string per locale, retaining the completed full refresh. This adds 20 translation-memory records and updates the source hash and catalog counts. All 127,700 previous locale/key pairs and their complete translation-memory records are byte-identical.

User Impact

The multi-task Swarm heading now follows the selected locale, such as “Tâches parallèles” in French. Each locale covers all 6,386 English keys with zero recorded fallbacks.

Evidence

  • Incremental translation run 33894254417: all 20 locale jobs succeeded; each translated exactly one pending key. Publisher sync and strict validation both finished with zero fallback keys and pairs.
  • node --import tsx scripts/control-ui-i18n.ts check: passed across all 20 locales.
  • Independent source-hash, placeholder, metadata-schema and preservation checks: 127,720 current locale/key pairs; all 127,700 prior pairs and records unchanged.
  • node scripts/run-vitest.mjs ui/src/pages/chat/components/chat-swarm-progress.test.ts ui/src/i18n/lib/registry.test.ts: 57 tests passed.
  • Complete raw incremental diff reviewed by managed Codex through P1: one pass, zero findings. All 20 added translations were also inspected directly.
  • Configured-identifier scan of all generated artifacts, the completed workflow log and validation receipts: zero matches.
  • Actual Control UI source server, Vite locale materializer and runtime loader in Chromium with a synthetic mock Gateway: the visible Swarm heading changed from English to the canonical French translation after selecting French. Locale module request, document language and exact rendered heading were asserted; no browser errors occurred. Both screenshots and the short video were inspected before publication.
  • Exact-head CI33895564196 is the landing gate.

Generated artifacts: +101/-81 across 41 files. Runtime and test LOC: unchanged.

The first image is the English language baseline on the same application head; the second shows French selected. All visible session and model data is synthetic.

English Swarm heading in the actual Control UI

French Swarm heading in the actual Control UI

The recording shows selecting French in settings and returning to the same chat:

https://github.com/user-attachments/assets/0303165e-0103-43f4-b5bd-2a925c474db5
Local changed-check passed all 13 preceding guard, format and catalog steps, then could not resolve existing mermaid declarations in the borrowed dependency tree. No dependency changes were made; exact-head hosted production and test typechecks passed.

@clawsweeper

clawsweeper Bot commented Sep 4, 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-mantis
openclaw-mantis Bot enabled auto-merge (squash) September 4, 2026 16:30
@steipete
steipete disabled auto-merge September 4, 2026 16:31
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 12:54 PM ET / 16:54 UTC.

ClawSweeper review

What this changes

The branch adds the “Parallel tasks” translation-memory entry for each of 20 Control UI locales and refreshes the corresponding generated metadata and fallback baseline.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: current main has the English Swarm heading but the generated locale data predates that key. The added records follow the canonical Vite materialization path and no blocking defect was found.

Priority: P3
Reviewed head: ed43380a77f146495b0f9aa5bf3bfa9cbf3d826b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical generated-data update with source-backed runtime linkage and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This bot-authored PR is exempt from the ordinary external-contributor proof gate. Source inspection independently establishes that the added records feed the locale module used at runtime.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored PR is exempt from the ordinary external-contributor proof gate. Source inspection independently establishes that the added records feed the locale module used at runtime.
Evidence reviewed 6 items Runtime owner and caller: The Swarm card requests the group-title key for multi-task groups, while the i18n manager falls back to English when a selected locale omits it.
Canonical locale-loading contract: The Vite locale plugin reads each translation-memory file and materializes only entries whose source hash matches the English catalog; the strict verifier uses the same materialization path for every configured locale.
Introduced artifact content: The branch adds exactly 20 records for the heading, one per supported non-English locale. The French record maps the source text to “Tâches parallèles,” and its metadata reports 6,386 translated keys with no fallbacks.
Findings None None.
Security None None.

How this fits together

The Control UI’s Vite configuration turns translation-memory records into locale modules loaded after a user selects a language. The Swarm progress card requests this heading for multi-task groups and otherwise falls back to English.

flowchart LR
  A[English Swarm heading] --> B[Translation memory]
  B --> C[Vite locale module]
  C --> D[I18n manager]
  D --> E[Swarm progress card]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +20. Total +20 across 41 files.

View PR surface stats
Area Files Added Removed Net
Source 41 101 81 +20
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 41 101 81 +20

Review metrics

Metric Value Why it matters
Generated locale delta runtime source 0, tests 0, generated artifacts +101/-81 The only runtime-facing inputs changed are canonical locale-memory records and derived metadata; application logic and configuration are unchanged.

Root-cause cluster

Relationship: canonical
Canonical: #138401
Summary: This PR is the distinct incremental localization follow-up for the Swarm heading added after the prior full locale refresh.

Members:

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

Technical review

Best possible solution:

Merge the canonical generated locale artifacts so every supported Control UI locale materializes a translation for the existing Swarm heading.

Do we have a high-confidence way to reproduce the issue?

Yes: current main has the English key but pre-PR locale memory lacks its record, and the loader omits missing translations before the i18n manager falls back to English. The proposed records satisfy the source-hash contract that controls materialization.

Is this the best way to solve the issue?

Yes: the Control UI guide assigns this work to the canonical generated translation-memory workflow, and the PR changes only those inputs rather than adding another runtime path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2fc8eb0e7b1a.

Labels

Label changes:

  • add P3: This is a bounded localization catch-up for an existing Control UI heading, with no changed control flow or operator configuration.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored PR is exempt from the ordinary external-contributor proof gate. Source inspection independently establishes that the added records feed the locale module used at runtime.

Label justifications:

  • P3: This is a bounded localization catch-up for an existing Control UI heading, with no changed control flow or operator configuration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored PR is exempt from the ordinary external-contributor proof gate. Source inspection independently establishes that the added records feed the locale module used at runtime.

Evidence

What I checked:

  • Runtime owner and caller: The Swarm card requests the group-title key for multi-task groups, while the i18n manager falls back to English when a selected locale omits it. (ui/src/pages/chat/components/chat-swarm-progress.ts:179, ed43380a77f1)
  • Canonical locale-loading contract: The Vite locale plugin reads each translation-memory file and materializes only entries whose source hash matches the English catalog; the strict verifier uses the same materialization path for every configured locale. (ui/config/control-ui-locales.ts:41, ed43380a77f1)
  • Introduced artifact content: The branch adds exactly 20 records for the heading, one per supported non-English locale. The French record maps the source text to “Tâches parallèles,” and its metadata reports 6,386 translated keys with no fallbacks. (ui/src/i18n/.i18n/fr.tm.jsonl:3739, ed43380a77f1)
  • Current-main gap: Fetched current main contains the English heading but its French metadata still covers 6,385 keys; this branch advances the generated catalog to 6,386 keys, so it is not superseded by the prior full refresh. (ui/src/i18n/locales/en.ts:3137, 2fc8eb0e7b1a)
  • Related merged work: The prior locale refresh and the related Swarm presentation change are both ancestors of fetched current main; this PR is their distinct incremental localization follow-up. (ui/src/i18n/.i18n/fr.tm.jsonl:3739, 7167fb6f1959)
  • Existing runtime coverage: The Vite configuration test builds a locale module from its translation memory and asserts that the resulting catalog uses the matching record while watching that input file. (ui/src/app/vite-config.node.test.ts:523, ed43380a77f1)

Likely related people:

  • openclaw-mantis[bot]: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • roboclaw-bot: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit ab7cbd8 into main Sep 4, 2026
145 of 147 checks passed
@steipete
steipete deleted the automation/control-ui-locale-refresh branch September 4, 2026 17:01
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot added a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant