Skip to content

Add switchable zh-CN / en-US localization (WinUI + docs) - #674

Open
pkssky wants to merge 2 commits into
ntdevlabs:winui-previewfrom
pkssky:i18n-zhcn
Open

pkssky wants to merge 2 commits into
ntdevlabs:winui-previewfrom
pkssky:i18n-zhcn

Conversation

@pkssky

@pkssky pkssky commented Oct 28, 2026

Copy link
Copy Markdown

内容

  • 多语言架构:Core/L10n.cs(WinRT-free)+ App/Localization.cs(ResourceLoader 桥接,语言持久化)
  • 侧边栏语言选择:跟随系统 / English / 简体中文,重启生效
  • XAML 全量 x:Uid + Strings/zh-CN/Resources.resw(546 条,tools/gen_resw.py 生成)
  • C# 动态字符串全量 L10n.T 包裹(Models / CleanupCatalog / Choices / OperationFlow / MainWindow),英文回退
  • 新增 README.zh-CN.md、docs/usage.zh-CN.md、docs/support.zh-CN.md,英文文档加语言切换链接

注意

本机无 .NET SDK 未编译验证,请本地 dotnet build .\Tiny11Builder.sln -c Release 确认。

- Add WinRT-free L10n provider (Core/L10n.cs) bridged to WinUI ResourceLoader
  by App/Localization.cs, persisted via ApplicationLanguages.PrimaryLanguageOverride
- Add language selector in sidebar (System / en-US / zh-CN) with restart-to-apply
- Tag all static XAML text with x:Uid and add Strings/zh-CN/Resources.resw
  (546 entries, generated by tools/gen_resw.py for consistent escaping)
- Localize user-visible C# strings across Models, CleanupCatalog, Choices,
  OperationFlow and MainWindow with English fallbacks
- Add Chinese docs: README.zh-CN.md, docs/usage.zh-CN.md, docs/support.zh-CN.md
  and cross-language links in the English docs
- Localization.cs: add missing using Tiny11Builder.Core for L10n (CS0103)
- Rename C# key CompFast to CompFastWim: it collided with the
  CompFast ComboBoxItem x:Uid in PRI generation (PRI175/PRI278)
- Resw regenerated; verified build + package for x64 and arm64
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.

1 participant