Skip to content

feat(i18n): add Hebrew (he) locale - #95402

Closed
Y-PLONI wants to merge 3 commits into
openclaw:mainfrom
Y-PLONI:feat/i18n-hebrew-locale
Closed

Y-PLONI wants to merge 3 commits into
openclaw:mainfrom
Y-PLONI:feat/i18n-hebrew-locale

Conversation

@Y-PLONI

@Y-PLONI Y-PLONI commented Jun 20, 2026 •

Copy link
Copy Markdown

What Problem This Solves

OpenClaw had no Hebrew (he) locale. Hebrew users got the English Control UI and no Hebrew docs.

Why This Change Was Made

Registers he end-to-end and ships real generated Hebrew so Hebrew is a first-class, fully-translated locale like every other supported one.

User Impact

  • Hebrew appears in the Control UI language switcher and loads as a lazy locale bundle.
  • Browser language he (and legacy iw) auto-resolves to Hebrew.
  • Hebrew strings render correctly (RTL text); existing detectTextDirection already handles the Hebrew script.
  • Docs translation is wired: he registered in scripts/docs-sync-publish.mjs GENERATED_LOCALES (Mintlify accepts he in navigation.languages, so it shows in the docs picker).

Evidence

Real translations (addresses the prior "fallback-only" block):

  • ui/src/i18n/locales/he.ts regenerated via the standard generator — he.meta.json reports translatedKeys: 1414 of 1414 (0 fallbacks).
  • he added to the fallback-bundle regression guard in ui/src/i18n/test/translate.test.ts (now enforced for Hebrew).

Wiring: ui/src/i18n/lib/types.ts, registry.ts (lazy loader + resolveNavigatorLocale incl. legacy iw), scripts/control-ui-i18n.ts, control-ui-i18n-report.ts, language label in en.ts, CI matrix in .github/workflows/control-ui-locale-refresh.yml, docs GENERATED_LOCALES + docs/.i18n/glossary.he.json + he-navigation.json.

Checks:

  • pnpm ui:i18n:check → he: clean (fallbacks=0).
  • ui/src/i18n/test/translate.test.ts → 11/11 passing.
  • test/scripts/docs-sync-publish.test.ts → 2/2 passing.
  • pnpm --dir ui build → succeeds; emits separate he-*.js chunk.

Real behavior proof (built Control UI, headless Chromium):

  • Browser-locale he-IL auto-selects Hebrew; the connect screen renders Hebrew: לוח בקרה של Gateway, כתובת URL של WebSocket, אסימון Gateway, התחבר, and the Hebrew "cannot connect" guidance.
  • Explicit locale selection (openclaw.i18n.locale=he) renders the same Hebrew UI.
  • Screenshot attached below.

🤖 Generated with Claude Code

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: XL labels Jun 20, 2026
@clawsweeper

clawsweeper Bot commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the contribution. This PR has been inactive for a while and still is not in a landable state.

Close as abandoned: the branch has been inactive since 22 June, is conflict-blocked, and its unresolved P1 findings require replacing most of the stale implementation with the current source-only locale pipeline.

So I’m closing this as inactive for now. If you pick the work back up, push a rebased branch with green checks and reopen (or open a fresh PR) and it will be reviewed again.

Review details

Best possible solution:

If maintainers want Hebrew support, open a fresh source-only PR against current main that updates the canonical inventory, adapter, registry, RTL contract, refresh matrix, and docs glossary/navigation; let post-merge automation generate locale memory and catalogs.

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

Not applicable: this is a new locale capability; the attached screenshots directly demonstrate the proposed Hebrew UI after the branch changes.

Is this the best way to solve the issue?

No: the branch predates the current adapter and generated-artifact architecture, so a source-only current-main implementation is safer than rebasing its large generated payload.

Security review:

Security review cleared: The patch changes locale inventories and generated translation material only; no new dependency, credential, permission, or execution boundary was found.

AGENTS.md: found and applied where relevant.

What I checked:

  • Current locale ownership: Current main centralizes locale entries in the canonical inventory; the stale branch instead edits the former inline inventory in scripts/control-ui-i18n.ts. (scripts/lib/control-ui-i18n-config.ts:3, 3faa2b088823)
  • Generated artifacts are isolated: The UI policy and CI guard require source PRs to omit translation memory and locale metadata; this branch adds Hebrew memory and metadata alongside source changes. (ui/AGENTS.md:16, 3faa2b088823)
  • RTL behavior remains incomplete: The branch registers Hebrew but does not update the document RTL set, which still contains only Arabic and Persian. (ui/src/i18n/lib/translate.ts:22, fd1662f49cc3)
  • Inactive conflicting head: The PR head is 479e363 from 2026-06-22; GitHub reports it dirty and labeled waiting on author, with no later author commit. (src/i18n/registry.test.ts:93, 479e3639fd43)

Likely related people:

  • vincentkoc: Current locale registry, RTL handling, and canonical locale inventory are attributed to this recent current-main snapshot; the available history is shallow, so older ownership cannot be resolved confidently. (role: recent i18n refactor contributor; confidence: medium; commits: fd1662f49cc3; files: ui/src/i18n/lib/registry.ts, ui/src/i18n/lib/translate.ts, scripts/lib/control-ui-i18n-config.ts)

Codex review notes: model internal, reasoning high; reviewed against 3faa2b088823.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jun 20, 2026
@Y-PLONI Y-PLONI closed this Jun 20, 2026
@Y-PLONI Y-PLONI reopened this Jun 22, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Y-PLONI

Y-PLONI commented Jun 22, 2026

Copy link
Copy Markdown
Author
he-autodetect he-explicit

Replace English-fallback he.ts with generated Hebrew (1414/1414 keys),
register he in docs-sync GENERATED_LOCALES, and cover he in the
fallback-bundle regression guard.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Y-PLONI
Y-PLONI force-pushed the feat/i18n-hebrew-locale branch from 8036d86 to 5e133db Compare June 22, 2026 18:46
add he to the SUPPORTED_LOCALES list and a he-IL browser-resolution
check in src/i18n/registry.test.ts.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@clawsweeper clawsweeper Bot added 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 rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 23, 2026
@Y-PLONI

Y-PLONI commented Jun 24, 2026

Copy link
Copy Markdown
Author

@openclaw-bot
I can rebase this PR repeatedly, but given the number of commits landing in the repository, that does not seem particularly efficient.
Could you let me know when you expect to review or merge the PR? I’ll try to rebase it shortly beforehand so it is up to date at that point.
Alternatively, if the current conflicts are not a concern and you prefer to resolve them during the merge process, please let me know.

@Y-PLONI

Y-PLONI commented Jul 1, 2026

Copy link
Copy Markdown
Author

???

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Jul 7, 2026
@Y-PLONI

Y-PLONI commented Jul 17, 2026 •

Copy link
Copy Markdown
Author

Hi maintainers — friendly nudge on this one. 👋

All CI checks are green and ClawSweeper has it labeled status: ready for maintainer look with no contributor-facing blocker, so I'd love to get it in front of a human when you have a moment.

I'm aware of the open items and happy to take care of them as soon as I know the PR is on someone's radar:

  1. Conflicts against main — the branch went stale behind the Hindi/Russian locale additions. I'll rebase and carefully preserve those existing locales.
  2. Localized picker label — the languages.he label currently keeps an English parenthetical (עברית (Hebrew)) in the non-English bundles. I'll regenerate through the i18n pipeline so the parenthetical follows the active UI language like the other entries, then rerun the focused i18n/docs checks.

I've held off on repeated rebases to avoid churn while the PR waits. If you can let me know roughly when a review is likely, I'll rebase right beforehand so it lands clean — or if you'd prefer to resolve conflicts at merge time, just say the word.

Thanks for the great project, and for taking a look.

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@clawsweeper clawsweeper Bot closed this Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper could not autoclose this item.

Reason: structured ClawSweeper close marker: close-required (sha=479e3639fd43f69cbe8e797b90088c526da0a7be)

Usage: /autoclose <maintainer close reason>. I will close this item and any open same-repo items explicitly referenced in the command text.

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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL 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.

1 participant