Repository navigation
Conversation
|
🦞👀 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: blocked before merge. What this changesAdds Hebrew browser detection, a language-picker entry, and RTL layout through the existing source-only locale workflow. Example: Open the Control UI in Chromium with browser locale he-IL and no saved language preference.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR: current main lacks Hebrew, and the contribution provides useful locale wiring with demonstrated RTL behavior; Hebrew adoption still needs an owner decision, and the prior documentation finding remains unresolved. Priority: P2 Decision needed
Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI locale registry resolves browser or saved language choices, lazy-loads catalogs through Vite, and publishes translated text plus document language and direction. flowchart TD
A[Browser language or saved preference] --> B[Locale registry]
B --> C[Lazy locale adapter]
C --> D[Vite catalog materializer]
E[English catalog and translation memory] --> D
D --> F[I18n manager]
F --> G[Control UI text and direction]
Technical reviewBest possible solution: If Hebrew is approved, retain the existing bootstrap and automated refresh path while documenting its initial English text and unavailable Hebrew docs. Do we have a high-confidence way to reproduce the issue? Current-main source establishes that he-IL falls back to English; inspected contributor screenshots demonstrate the proposed RTL bootstrap behavior, and no target code was executed during review. Is this the best way to solve the issue? The existing registry, lazy adapters, RTL owner, and automated translation refresh provide a focused implementation without a competing locale owner. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e3ec1f2eeaf6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +48, Tests +2, Docs 0, Other +2. Total +52 across 11 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
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 HistoryReview history (4 earlier review cycles)
Reviewed October 12, 2026, 6:00 PM ET / 22:00 UTC (Revision 5). |
Same change as openclaw#163442. Hebrew ships without translation memory until the post-merge locale refresh, so its catalog intentionally falls back to English. Co-authored-by: Jesús Corrius <[email protected]>
|
Unlike the PR mentioned here (#139033), this PR hasn't received any response from a maintainer. |
Keep only the shared product-name entries, matching ar/fa/ru/de. Translated UI terms come from the post-merge locale refresh. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01C1DuukkHJ7HMnptjsRnUdV
Resolve translate.test.ts: main removed the localized-bundle assertions (openclaw#169801), so the memory-backed scoping is no longer needed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01C1DuukkHJ7HMnptjsRnUdV
|
@obviyus @steipete — ClawSweeper says the remaining blocker is an owner decision on adopting Hebrew. I've resolved the conflicts with main and aligned the Hebrew glossary with the other locales, so the diff is now just locale wiring + RTL on the existing English-bootstrap / post-merge refresh flow. Could one of you weigh in on whether you want Hebrew? Happy to adjust anything. Thanks! |
Related: #95402 (earlier Hebrew locale PR, closed as inactive)
What Problem This Solves
Hebrew-speaking operators can't use the Control UI in their language. Hebrew isn't a supported locale, so a browser set to Hebrew gets the English UI in a left-to-right layout.
User Impact
User impact: browsers set to Hebrew (
he,he-IL) now get the Control UI in a right-to-left layout, and Hebrew appears in Settings → Appearance → Language. Strings stay in English until the post-merge locale refresh generateshe.tm.jsonl, the same as for other newly added locales.Why This Change Was Made
heis registered the same way as the other lazy locales and added to the RTL locale set next toarandfa. The Hebrew glossary keeps the default product terms in English and pins common UI nouns (for example Settings → הגדרות, Sessions → שיחות, Plugins → תוספים), so the generated translation uses consistent terms.The localized-bundle invariants in
ui/src/i18n/test/translate.test.tsnow cover only locales with committed translation memory. This is the same change as #163442, credited to its author. Without it, Hebrew's intentional English bootstrap fails three English-inequality assertions until the refresh lands. If #163442 merges first, this commit drops out on rebase.The dev-server plugin now watches a locale's translation memory only when the file exists. Without that guard, a newly registered locale with no
*.tm.jsonlbreakspnpm ui:devwithFailed to resolve import ".../he.tm.jsonl". This is the same guard as in #139033.Evidence
Screenshots:
pnpm ui:dev, opened in Chromium withlocale: "he-IL".Before (
main):lang="en",dir="ltr"After (this branch):
lang="he",dir="rtl". Text is still in English until the locale refresh runs.Focused tests on Node 24.21.0 (
pnpm test <file> --maxWorkers=1, local wall time):ui/src/i18n/test/translate.test.ts(failed 3 tests in CI on the first revision; passes with the #163442 scoping)ui/src/i18n/lib/registry.test.ts(addshe-ILandhecases)ui/src/i18n/lib/translate.test.tstest/scripts/control-ui-i18n.test.tstest/scripts/control-ui-i18n-verify.test.tstest/scripts/control-ui-i18n-sync-plan.test.tsThe new test cases are two rows in an existing table test, so they add no measurable CI time.
pnpm ui:i18n:verifypasses.pnpm ui:i18n:checkreportsui/src/i18n/.i18n/he.tm.jsonl does not contain he translations. That's expected until the post-merge refresh; CI runs this step withcontinue-on-errorfor PRs.pnpm build && pnpm check && pnpm test, and the e2e suite. Thelocale-offline-retryassertion now derives fromSUPPORTED_LOCALESinstead of a hard-coded 20.