Repository navigation
fix(wizard): keep custom model discovery prompts in Chinese - #174191
Merged
Merged
Conversation
Fill the missing Simplified and Traditional Chinese catalog entries for manual model-ID entry and unavailable endpoint discovery. The two keys were introduced in #173300 without translations, causing the wizard to fall back to English and breaking the existing locale parity check. The catalogs are maintained in-tree. Preserve runtime fallback and every parity assertion. No migration or update behavior changes. Proof: pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1 reproduced 7 pass / 1 fail before and passes 8/8 after (3.50s Vitest, 5.56s runner). Core and commands/wizard test types, scoped oxlint, boundary lint, formatting, and P2 autoreview pass.
Contributor
|
🦞👀 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. |
steipete
marked this pull request as ready for review
October 16, 2026 12:03
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…penclaw#174191) Fill the missing Simplified and Traditional Chinese catalog entries for manual model-ID entry and unavailable endpoint discovery. The two keys were introduced in openclaw#173300 without translations, causing the wizard to fall back to English and breaking the existing locale parity check. The catalogs are maintained in-tree. Preserve runtime fallback and every parity assertion. No migration or update behavior changes. Proof: pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1 reproduced 7 pass / 1 fail before and passes 8/8 after (3.50s Vitest, 5.56s runner). Core and commands/wizard test types, scoped oxlint, boundary lint, formatting, and P2 autoreview pass.
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.
Related: #173300
What Problem This Solves
The custom-provider wizard displays English for the manual model-ID option and model-discovery error in both Chinese locales, and the locale parity check fails on main.
User Impact
Simplified and Traditional Chinese setup now show translated guidance when choosing manual model entry or when an endpoint's models cannot be discovered. No migration, configuration, or update behavior changes.
Why This Change Was Made
The model-discovery change added two English keys without corresponding entries in the wizard's Chinese catalogs. Add their translations in the existing in-tree owner; Control UI and native translation generators maintain separate catalogs. The runtime fallback and every parity assertion remain unchanged.
The complete change is four added lines across two locale catalogs. The existing parity test is the regression test; no additional test machinery is needed.
Evidence
On current main
9215eace2fb2,pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1reproduced the failure: 7 passed, 1 failed (Vitest 4.00s; runner 7.01s). Both Chinese catalogs had 1,103 keys versus English's 1,105, missing exactly the two model-discovery strings. The same command after final formatting passed all 8 tests (Vitest 3.50s; runner 5.56s), including parity for both locales. These runs used Node 24 and the repository launcher with one worker.Core production types and the owning commands/wizard test-type graph passed. Targeted type-aware oxlint, boundary lint, formatting, and diff checks passed. Independent Codex autoreview was clean through P2; the only subsequent change was formatter-only line wrapping. PR CI will supply broad proof.