Repository navigation
fix(ui): bootstrap source-only locales - #131015
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
obviyus
force-pushed
the
codex/issue-130070
branch
2 times, most recently
from
August 27, 2026 16:22
d7c3965 to
552ec9d
Compare
obviyus
force-pushed
the
codex/issue-130070
branch
from
August 27, 2026 16:49
552ec9d to
1283026
Compare
Collaborator
Author
|
Thanks @TheAngryPit! Proof: On exact head
Example
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
Allow source-only locale contributions to load intentional English bootstrap copy until post-merge generated memory exists. Derive refresh targets from canonical locale data while preserving strict validation. Co-authored-by: Ayaan Zaidi <[email protected]>
This was referenced Oct 2, 2026
jcorrius
added a commit
to jcorrius/openclaw
that referenced
this pull request
Oct 2, 2026
…k invariants The shipped-locale invariants in translate.test.ts started deriving their locale sweep from SUPPORTED_LOCALES (openclaw#159292), which accidentally broke the source-only locale flow from openclaw#131015: a locale registered before the post-merge control-ui-locale-refresh workflow commits its translation memory intentionally bootstraps from English copy, so the three "localized in shipped locale bundles" tests fail for it. Hold only locales with committed <locale>.tm.jsonl memory to those invariants. The exemption derives from the memory file's presence, so it retires itself once the refresh workflow lands translations and cannot hide a regression for any memory-backed locale. Unblocks the Catalan locale PR (openclaw#139033).
This was referenced Oct 21, 2026
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #130070
Reported by @TheAngryPit.
What Problem This Solves
Fixes an issue where contributors adding a Control UI locale could not load or test it before the post-merge translation workflow created its generated translation memory.
Why This Change Was Made
The Vite locale materializer now serves the complete English source catalog only while a registered locale's generated memory file is absent. Existing empty, malformed, or stale generated output remains subject to the strict validation path.
The locale refresh workflow now derives its matrix from the canonical locale configuration. The runtime locale list is also derived from its loader registry instead of repeating every locale.
User Impact
Contributors can submit the documented source-only locale wiring, see and select that locale in the Control UI, and rely on the post-merge workflow to target it automatically.
Evidence
main8e4075371039, a source-only Swedish fixture passedpnpm ui:i18n:verify, then failed registry and Vite loading withControl UI sv translation memory is missing or empty.12830260249, the identical fixture passed all 41 registry tests, appeared in the derived refresh target set, and loaded in the real Vite Control UI withhtml.langset tosvand English bootstrap copy visible.pnpm ui:i18n:checkrejected a present malformed fixture memory file with a JSON parse error.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts --configLoader runner ui/src/app/vite-config.node.test.ts ui/src/i18n/lib/registry.test.ts— 63 passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.tooling-isolated.config.ts --configLoader runner test/scripts/control-ui-i18n.test.ts— 21 passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.tooling.config.ts --configLoader runner test/scripts/ci-workflow-guards.test.ts -t "keeps locale refresh matrices alive"— passed.pnpm ui:i18n:verify,pnpm check:script-erasability, focused Oxlint, formatting, and conflict-marker checks passed.Visual proof
AI-assisted. I reviewed the code and understand the source/generated ownership boundary.