Skip to content

feat(i18n): add Hebrew (he) Control UI locale - #166002

Open
aaroil3 wants to merge 5 commits into
openclaw:mainfrom
aaroil3:feat/i18n-he
Open

aaroil3 wants to merge 5 commits into
openclaw:mainfrom
aaroil3:feat/i18n-he

Conversation

@aaroil3

@aaroil3 aaroil3 commented Oct 6, 2026 •

Copy link
Copy Markdown

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 generates he.tm.jsonl, the same as for other newly added locales.

Why This Change Was Made

he is registered the same way as the other lazy locales and added to the RTL locale set next to ar and fa. 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.ts now 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.jsonl breaks pnpm ui:dev with Failed to resolve import ".../he.tm.jsonl". This is the same guard as in #139033.

Evidence

Screenshots: pnpm ui:dev, opened in Chromium with locale: "he-IL".

Before (main): lang="en", dir="ltr"

Before: Hebrew browser gets the LTR English UI

After (this branch): lang="he", dir="rtl". Text is still in English until the locale refresh runs.

After: Hebrew browser gets the RTL layout

Focused tests on Node 24.21.0 (pnpm test <file> --maxWorkers=1, local wall time):

File Result Wall time
ui/src/i18n/test/translate.test.ts (failed 3 tests in CI on the first revision; passes with the #163442 scoping) 15 passed 14.5s
ui/src/i18n/lib/registry.test.ts (adds he-IL and he cases) 15 passed 9.4s
ui/src/i18n/lib/translate.test.ts 12 passed 4.2s
test/scripts/control-ui-i18n.test.ts 33 passed 30.7s
test/scripts/control-ui-i18n-verify.test.ts 6 passed 5.7s
test/scripts/control-ui-i18n-sync-plan.test.ts 11 passed 3.9s

The new test cases are two rows in an existing table test, so they add no measurable CI time.

  • pnpm ui:i18n:verify passes.
  • pnpm ui:i18n:check reports ui/src/i18n/.i18n/he.tm.jsonl does not contain he translations. That's expected until the post-merge refresh; CI runs this step with continue-on-error for PRs.
  • Not run locally: the full pnpm build && pnpm check && pnpm test, and the e2e suite. The locale-offline-retry assertion now derives from SUPPORTED_LOCALES instead of a hard-coded 20.

@clawsweeper

clawsweeper Bot commented Oct 6, 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 size: S labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds 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.

  • Before: The UI selects English and uses a left-to-right layout.
  • After: The UI selects he and uses a right-to-left layout, retaining English text until the automated translation refresh lands.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct visual proof supports the focused implementation; the unresolved adoption decision caps readiness, and a small documentation defect remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the real Vite-served Control UI in Chromium with he-IL and show the changed document layout becoming RTL with intentional English bootstrap text.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Hebrew-speaking operators have no Hebrew language choice, and Hebrew browsers receive the English LTR interface.
Reason: The narrow locale addition has clear user value and follows the approved workflow, but language adoption remains an owner decision.

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
Reviewed head: 7b3bbe700887660b8c325ea65df88cb389cf17e6
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Hebrew join the supported Control UI locales with RTL English bootstrap text until the automated translation refresh lands?
  • Recommendation: Approve Hebrew adoption: Accept the focused addition through the established locale workflow after the documentation correction.
  • Why: Existing maintainer decisions approve the source-only workflow, but neither this PR nor its earlier Hebrew predecessor records approval to adopt Hebrew.

Before merge

  • Qualify Hebrew's bootstrap and docs availability (P3) - Adding he to the supported-locale list makes the following claim that docs cover the same languages include Hebrew, but scripts/docs-sync-publish.mjs excludes he from GENERATED_LOCALES. This PR also intentionally provides English bootstrap text until the refresh. Add a Hebrew-specific note explaining both limitations. The concern remains unfixed and was equally visible at reviewed head 7726155; the earlier review missed it before the preceding cycle raised it.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P3] Qualify Hebrew's bootstrap and docs availability — docs/web/control-ui/settings.md:153
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P3] Qualify Hebrew's bootstrap and docs availability — docs/web/control-ui/settings.md:153
    Adding he to the supported-locale list makes the following claim that docs cover the same languages include Hebrew, but scripts/docs-sync-publish.mjs excludes he from GENERATED_LOCALES. This PR also intentionally provides English bootstrap text until the refresh. Add a Hebrew-specific note explaining both limitations. The concern remains unfixed and was equally visible at reviewed head 7726155; the earlier review missed it before the preceding cycle raised it.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is correct
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Source-only catalog bootstrap and watch registration keeps the original intent (c85be96: Permit registered source-only locales to load English before generated memory exists; later config-hint partitioning preserved lazy loading.)
  • Document language and direction keeps the original intent (4e8c2c5: Synchronize document language and direction with the active locale, as verified in the original source diff.)
  • Lazy catalogs and browser request coverage keeps the original intent (7e78de7: Materialize stable lazy adapters from canonical translation memory while preserving locale availability and offline recovery.)
  • Settings language-support guidance keeps the original intent (98adc95: Move existing Control UI guidance into task-focused pages while preserving its content.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +48, Tests +2, Docs 0, Other +2. Total +52 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 50 2 +48
Tests 2 3 1 +2
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 1 +2
Total 11 57 5 +52

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A focused language-access improvement with limited blast radius and no demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-06T08:02:46.553Z sha e7ffcb0 :: needs changes before merge. :: [P2] Reconcile bootstrap locales with the shipped-translation assertions
  • reviewed 2026-10-06T09:09:34.608Z sha 9740258 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T21:30:10.524Z sha 7726155 :: blocked before merge. :: none
  • reviewed 2026-10-12T21:50:25.792Z sha 7b3bbe7 :: blocked before merge. :: [P3] Qualify Hebrew's bootstrap and docs availability

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]>
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 6, 2026
@Y-PLONI

Y-PLONI commented Oct 12, 2026

Copy link
Copy Markdown

Unlike the PR mentioned here (#139033), this PR hasn't received any response from a maintainer.
The PR I opened a long time ago also didn't receive any response, conflicts slowly accumulated, I fixed them again and again - until I gave up.
Is it possible that the maintainers simply don't want to add Hebrew?

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
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Oct 12, 2026
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
@aaroil3

aaroil3 commented Oct 12, 2026

Copy link
Copy Markdown
Author

@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!

This branch has not been deployed

No deployments
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 P2 Normal backlog priority with limited blast radius. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants