Skip to content

fix(i18n): refresh question and role-setting translations - #155109

Closed
steipete wants to merge 2 commits into
mainfrom
codex/frv-main-ui-i18n-b364
Closed

steipete wants to merge 2 commits into
mainfrom
codex/frv-main-ui-i18n-b364

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes English fallback text in localized optional-question controls and operator-role settings, which also blocked the strict release locale check.

User Impact

The Control UI now shows the current question-dismissal, draft-protection, and access-policy descriptions in all 20 supported translated locales.

Why This Change Was Made

The English catalog advanced beyond the generated locale artifacts. Canonical locale sync refreshes 11 keys per locale, reusing 60 existing translations and generating the remaining 160. The fallback map remains empty, and the obsolete role-help identity is removed by the generator. The Thai dismissal translation keeps closing the question distinct from canceling it; its phrase glossary guidance is a separate source change.

Evidence

The original CI preflight correctly rejected mixing a glossary source entry with generated artifacts. The follow-up commit removes that source entry from this PR, leaving only 41 generated files. The owner guard accepts this scope; all generated bytes and the inspected screenshots are unchanged. The strict locale check passed again after the split in 79.831 seconds. Fresh CI for the split head is pending.

  • Strict generated-locale check passed in 22.285 s; contributor catalog verification passed in 10.694 s.
  • Runtime materialization covers all 9,798 keys in all 20 locales, with exactly 220 intended changed mappings, no unrelated translation changes, and matching placeholders throughout.
  • Retained production UI build of 96f7c6d3f8f3f99e7101ce7d4801ca843c0d01ca passed in 11.568 s; strict asset budgets passed in 0.275 s with no violations. Startup JavaScript is 370,423 B gzip; startup CSS remains 51,158 B, with 42 B of hard-ceiling headroom and an existing advisory warning.
  • Synthetic German UI proof verifies the translated question controls, dismissal summary/toast, and access-policy label/help. The flow sends no answer, resolution, abort, or configuration-write requests.
  • No new tests were added for generated translation artifacts. Native i18n was already verified unchanged on the frozen base.
  • Fresh independent P2 review passed after one Thai dismissal-wording correction and again for the generated/source split.

Inspected synthetic screenshots below show the German access-policy setting before and after the locale refresh.

Before: English fallback in the German access-policy setting

After: translated German access-policy setting

Refresh canonical locale artifacts for optional-question lifecycle messages
and operator-role access-policy settings across 20 locales. Preserve zero
fallbacks and distinguish Thai prompt dismissal from cancellation.
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 19:15
@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 3:57 PM ET / 19:57 UTC.

ClawSweeper review

What this changes

Refreshes question controls, draft warnings, and operator-role descriptions across 20 Control UI locales, with a Thai glossary clarification.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: current main still lacks the refreshed translations, and review found no blocking introduced defect. This protected maintainer PR remains useful.

Priority: P3
Reviewed head: 96f7c6d3f8f3f99e7101ce7d4801ca843c0d01ca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused generated-locale repair with useful visual evidence and no blocking correctness or security finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.
Evidence reviewed 9 items Introduced scope and merge result: The verified test merge has the pinned base followed by the pinned PR head as parents. Its changes against that base remain confined to translation memory, locale metadata, fallback metadata, and the Thai glossary.
Current main still needs the refresh: Current-main locale memory lacks the 11 mappings added per locale. German metadata still describes the earlier 9,788-key catalog; the candidate describes 9,798 keys. No merged replacement was established. Latest-release blob inspection was unavailable, so release inclusion is not claimed.
Existing locale owner and fallback behavior: The build owner materializes translations from canonical memory. Materialization accepts matching source-text hashes and grouped aliases; missing localized values fall back to English in the runtime translator. The patch uses this existing path.
Findings None None.
Security None None.

How this fits together

The Control UI builds localized text from the English catalog and generated translation memory. These translations supply question controls and Settings descriptions without changing their underlying behavior.

flowchart LR
  A[English catalog] --> C[Locale materialization]
  B[Translation memory] --> C
  C --> D[Selected UI language]
  D --> E[Question controls and warnings]
  D --> F[Operator-role settings]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +144. Total +144 across 42 files.

View PR surface stats
Area Files Added Removed Net
Source 42 305 161 +144
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 42 305 161 +144

Review metrics

Metric Value Why it matters
Translation coverage 11 refreshed mappings per locale across 20 locales The refresh adds missing mappings and replaces obsolete role-help identities without changing retained translation values.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/src/i18n/.i18n/th.tm.jsonl. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep canonical locale generation as the single translation owner and deliver these refreshed artifacts through the existing UI build.

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

Yes, from source: current main lacks the localized mappings requested by the existing question and Settings consumers, which therefore use English fallback text. No runtime reproduction was executed during this review.

Is this the best way to solve the issue?

Yes. Refreshing canonical translation memory repairs the existing localization path without adding competing runtime logic or changing settings.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8c56f7239e98.

Labels

Label changes:

  • add P3: This is a bounded localization repair with no change to question handling, stored settings, or access enforcement.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a bounded localization repair with no change to question handling, stored settings, or access enforcement.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots directly demonstrate the changed German access-policy label and help in the synthetic Control UI Settings flow; reported question-flow and all-locale checks provide supplemental coverage.

Evidence

What I checked:

  • Introduced scope and merge result: The verified test merge has the pinned base followed by the pinned PR head as parents. Its changes against that base remain confined to translation memory, locale metadata, fallback metadata, and the Thai glossary. (5aefe72f8950)
  • Current main still needs the refresh: Current-main locale memory lacks the 11 mappings added per locale. German metadata still describes the earlier 9,788-key catalog; the candidate describes 9,798 keys. No merged replacement was established. Latest-release blob inspection was unavailable, so release inclusion is not claimed. (ui/src/i18n/.i18n/de.meta.json:5, 8c56f7239e98)
  • Existing locale owner and fallback behavior: The build owner materializes translations from canonical memory. Materialization accepts matching source-text hashes and grouped aliases; missing localized values fall back to English in the runtime translator. The patch uses this existing path. (scripts/lib/control-ui-i18n-catalog-values.ts:67, 96f7c6d3f8f3)
  • Role descriptions match the existing contract: The replacement role-help text and access-policy label/help describe the existing English configuration contract. This patch changes neither the configuration schema nor authorization enforcement. (src/config/schema.help.core.ts:163, 96f7c6d3f8f3)
  • Inspected visual evidence: Both downloaded PR-body screenshots were inspected. The synthetic German Settings view changes the access-policy label and help from English to German, preserves the configured example value, and displays the longer text without clipping. The PR separately reports question-flow, catalog, build, and asset-budget validation. (96f7c6d3f8f3)
  • Applicable locale policy: Root and UI AGENTS.md were read fully. The UI guide permits authenticated maintainer locale synchronization and keeps generated memory separate from English-source changes; this PR follows that separation. No maintainer-notes directory was present. (ui/AGENTS.md:40, 96f7c6d3f8f3)

Likely related people:

  • Hüseyin Durna: Raw commit ea75d12 adds scripts/lib/control-ui-i18n-catalog-values.ts:67 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ea75d12e2185; files: scripts/lib/control-ui-i18n-catalog-values.ts)
  • Vincent Koc: 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

Copy link
Copy Markdown
Contributor Author

Closing as superseded by the canonical locale refresh #154870, merged as 8a44705. Its final head 78a2283 covers all 11 original repair keys across all 20 locales, plus the 17 later source changes, with valid placeholders and zero fallback pairs for that generated snapshot. The Thai dismissal notice matches the correction here.

Verified all 41 generated artifact blobs against the merged commit. Newer source refreshes continue through the canonical owner in #155252. The separate phrase glossary guidance is tracked in #155177.

This PR's screenshots and focused proof remain tied to its original generated bytes; they are not transferred to the canonical output. Its historical source-drift failure and the earlier canonical artifact-upload failure remain recorded. This closure does not claim full qualification of latest main.

@steipete steipete closed this Sep 21, 2026
@RomneyDa
RomneyDa deleted the codex/frv-main-ui-i18n-b364 branch October 22, 2026 00:16
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 maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant