This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(i18n): localize the AI build affordances (console.ai zh/en) - #1888
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…ew/etc.) A concurrent change already added the "Proposed plan" card + nextSteps keys to the locale bundles, but the other /ai/build affordance labels were still absent, so zh users saw English fallbacks. Add the still-missing console.ai keys to zh.ts + en.ts: publishDrafts, publishOk, seedWarn, openBuiltApp, previewDraft, resizeSplit, hideChats, showChats. Values mirror the ConsoleFloatingChatbot locale object. Verified: @object-ui/i18n type-check green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
xuyushun441-sys
force-pushed
the
fix/ai-console-i18n-zh
branch
from
June 22, 2026 06:32
2060603 to
3590141
Compare
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
The
/ai/buildfull-page surface (AiChatPage) passes its build-affordance labels viat('console.ai.*', { defaultValue }), but a whole set of those keys were absent from the locale bundles, so zh users saw English fallbacks — including the new "Proposed plan" card (#1875/#1884) and the publish/preview/next-steps affordances.What
Added the missing keys to zh.ts (real localization) and en.ts (canonical key + silences the dev missing-key warning):
planTitle, planQuestions, planAssumptions, planApproveHint, planApprove, planAdjust, planApproveMessage, planApproveDefaultsMessage, publishDrafts, publishOk, seedWarn, nextSteps, openBuiltApp, previewDraft, resizeSplit, hideChats, showChats. Values mirror theConsoleFloatingChatbotlocale object so both AI surfaces read identically.Verification
@object-ui/i18ntype-check + 156 tests green (zh conforms to theTranslationKeysshape).Closes the localization gap surfaced during the #1884 live test.
🤖 Generated with Claude Code