Skip to content

fix(windows): complete Simplified Chinese UI - #166

Merged
1lck merged 5 commits into
1lck:preview/0.3.0from
zqzlq:codex/fix-issue-146-windows-file-explorer-zh
Aug 19, 2026
Merged

fix(windows): complete Simplified Chinese UI#166
1lck merged 5 commits into
1lck:preview/0.3.0from
zqzlq:codex/fix-issue-146-windows-file-explorer-zh

Conversation

@zqzlq

@zqzlq zqzlq commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Complete Windows Simplified Chinese UI coverage for core visible modules after switching the app language to Simplified Chinese.
  • Localize the reported remaining English UI such as the search placeholder and project/window menu items including New Window, Add Project, and Open Folder.
  • Cover additional visible residual strings in extension install prompts, extension crash fallback UI, AI plan blocks, CSV table summaries, collaboration controls, and the Simplified Chinese language selector label.
  • Keep technical terms and product/protocol names untranslated where appropriate, such as Git, GitHub, Docker, Ollama, SQL, JSON, CSV, URL, API, WSL, Vim, LSP, and Lithe Agent.
  • Merge the latest origin/preview/0.3.0 into this branch and keep the current branch based on the updated preview line.

Linked Issue

Fixes #146

Screenshot

Windows Simplified Chinese UI

Validation

  • bun run typecheck
  • bun test src/i18n/locale.test.ts
  • git diff --check
  • Manual runtime check with bun run desktop:dev

@1lck

1lck commented Aug 18, 2026

Copy link
Copy Markdown
Owner

我看你打的是Draft 还没做完是吗

@zqzlq zqzlq changed the title fix(windows): complete Simplified Chinese localization fix(windows): complete Simplified Chinese UI Aug 18, 2026
@zqzlq

zqzlq commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

差不多整完了,只是pr没有把截图放上去

@zqzlq
zqzlq marked this pull request as ready for review August 18, 2026 14:30
@zqzlq
zqzlq requested a review from 1lck as a code owner August 18, 2026 14:30
@zqzlq

zqzlq commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

算是整完了

@xiaoyumuxi

xiaoyumuxi commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

首先这个方案的改动有很多优秀的地方比如对某些语义 key 的前缀添加确实让代码可读性大大提高,这个建议进行保留

但是在汉化层面,为什么不参考一下 MacOS 的额外 i18 映射文件的方式呢——英文就是 source of truth,中文只是一个映射资源,使用Resources/zh-Hans.lproj/Localizable.strings 集中维护映射
在 macOS 系统中,英语界面文本已经被视为权威的参考来源。而简体中文界面则通过统一的 Localizable.strings 映射机制进行处理,局部化工作是在表示层进行的。
这个PR引入了一个针对 Windows 系统的独立语义密钥目录,并将翻译后的字符串放置到多个视图模型/存储/搜索路径中。这样的改动使得本地化工作的复杂度大幅增加,而且还会产生一些问题,比如被发现的运行操作仍然保留着之前的语言版本。
如果可以考虑一套机制直接将 MacOS 和 Windows 平台汉化的内容直接复用打通的话那就更好了 @1lck @zqzlq
image
可以参考一下这个图

@1lck
1lck merged commit 723fd03 into 1lck:preview/0.3.0 Aug 19, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants