Repository navigation
feat: add localization runtime foundation - #109456
giodl73-repo wants to merge 3 commits into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 4ade23d8-abc3-418f-b143-0bf668e98582
Co-authored-by: Copilot <[email protected]> Copilot-Session: 4ade23d8-abc3-418f-b143-0bf668e98582
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 11:04 PM ET / July 17, 2026, 03:04 UTC. ClawSweeper reviewWhat this changesAdds a private shared localization package and coverage baseline, then migrates Control UI and onboarding locale resolution to the shared runtime. Merge readiness⛔ Blocked until real behavior proof is added - 8 items remain Keep this PR open for explicit maintainer review: it carries the protected Priority: P2 Review scores
Verification
Decision needed
Why: The patch is technically plausible, but it assigns policy and ownership across core runtime, channels, apps, plugins, CLI, documentation, and security-sensitive copy; that permanent boundary requires maintainer intent rather than automated code judgment. Before merge
Findings
Agent review detailsSecurityNeeds attention: No secret-handling or malicious-code concern is evident, but the external branch changes the workspace dependency graph and lockfile and therefore needs authorized exact-head supply-chain review. PR surfaceSource +1066, Tests +587, Docs +1, Config +52, Other +1549. Total +3255 across 36 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one owner-approved shared locale registry and catalog contract, keep consumer migrations narrow, document intentional override semantics, remove release-owned changelog editing, authorize the exact dependency graph, and prove the resulting Control UI and onboarding behavior in real setups. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR establishes a new localization architecture rather than repairing one already-defined broken behavior, although it includes narrower consumer improvements. Is this the best way to solve the issue? Unclear: a shared browser/server-safe package is a credible design, but adopting its cross-surface ownership model before RFC approval is not demonstrably the best permanent solution without maintainer direction. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 082ffd442ae0. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Co-authored-by: Copilot <[email protected]> Copilot-Session: 4ade23d8-abc3-418f-b143-0bf668e98582
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: add localization runtime foundation This is item 1/1 in the current shard. Shard 21/22. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing this as superseded by the smaller, owner-scoped RFC 0024 implementation stack now under review:
This branch combines the shared runtime, wizard, Control UI, and coverage governance in one broad change. The replacement stack intentionally separates those ownership boundaries so each contract can be reviewed and corrected independently. This branch should not merge alongside them; please continue the work in the split PRs. |
Related: #88570
Related: #81253
RFC: openclaw/rfcs#42
What Problem This Solves
OpenClaw currently has localized Control UI, native-app, documentation, and
onboarding content, but those surfaces do not share a package-wide locale
contract. Runtime work therefore has no canonical locale registry, fallback
behavior, immutable catalog snapshot, or honest cross-surface coverage baseline
to build on.
This is visible today in gaps such as hardcoded runtime and approval copy,
inconsistent platform locale discovery, missing RTL document metadata, and no
single inventory showing which product surfaces and locales are actually
supported.
Why This Change Was Made
This introduces a private browser/server-safe
@openclaw/localization-corepackage and proves it through two existing production consumers: Control UI and
the onboarding wizard. It centralizes the existing 22-locale product registry,
strict explicit overrides, inferred platform matching, English fallback,
immutable catalog snapshots, interpolation, plural/select rendering, and
catalog validation.
It also checks in a generated 15-surface by 22-locale coverage baseline with
representative expansion, bidi, shaping, and segmentation fixtures. The
baseline is conservative: translated content is marked partial unless reviewed
ownership and completeness evidence exists.
This PR does not localize Gateway protocols, channel messages, CLI/TUI output,
or plugin catalogs. Those remain later RFC 0024 slices.
User Impact
langanddirsynchronized, including Arabic and Persian RTL presentation.Linux, containers, and explicit
OPENCLAW_LOCALEoverrides.cannot overwrite a newer user choice.
migrating safety-critical runtime messages.
Existing English behavior and protocol shapes remain unchanged.
Evidence
tests.
.mjsand.d.mtsexports.zh-Hans-CN,zh-Hant-HK,fa-IR, andpt-PT..craft/rolesreview across runtime, platform, security, simplicity, andmaintainer lenses.
codex review --uncommitted: no actionable findings.