feat: 为 Electron 演示应用增加中英文切换#157
Open
wzy2023 wants to merge 1 commit into
Open
Conversation
|
|
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.
Summary / 摘要
为 Electron Demo 增加中英文国际化能力,首次打开时中文系统默认使用中文,其他系统默认使用英文,并支持在设置中手动切换。
Motivation / 背景与动机
Electron Demo 当前界面仅提供英文。增加中英文切换后,中文用户可以直接使用本地化界面,同时保留英文作为非中文系统的默认语言。
apps/electron-demo,不涉及公共 APIChanges / 变更内容
apps/electron-demo:Testing / 测试
pnpm test:35 个测试文件、549 个测试全部通过pnpm typecheck:通过pnpm build:electron-demo:通过Compliance / 合规自检
AI 使用说明:Codex AI 参与了本功能的代码实现、测试和验证;提交者需要在合并前逐行复核,并能够解释相关设计决策。
.env/ personal vault data committedChecklist / 自检清单
live-preview-table.tsScreenshots / Recordings · 截图或录屏
已在本地 Electron Demo 中手动验证语言选择器及界面切换。