Skip to content

feat: add Traditional Chinese (zh-TW) UI and installer language - #75

Merged
coldhighsun merged 3 commits into
mainfrom
feat/traditional-chinese
Nov 11, 2026
Merged

coldhighsun merged 3 commits into
mainfrom
feat/traditional-chinese

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • Add a Traditional Chinese interface language: new zh-TW.json string table (including data source names and option texts), a ZhTW language choice in settings, and Traditional CJK fallback fonts (Microsoft JhengHei UI / PingFang TC / Noto Sans CJK TC).
  • Auto now resolves zh-TW, zh-HK, zh-MO and Hant systems to Traditional Chinese; other Chinese systems stay Simplified, and an explicit Hans script wins over the region (zh-Hans-HK is Simplified).
  • Both Chinese languages now default the base currency to CNY (Loc.IsChinese).
  • Add ChineseTraditional.isl to the Inno Setup installer. It ships with Inno Setup 7, which the release workflow already uses, so no workflow change is needed.
  • Add README.zh-TW.md, link it from the other READMEs, and update the localization notes in CLAUDE.md and docs/ADDING_A_PROVIDER.md.

Notes

  • Provider_* / Option_* keys must exist in both Chinese tables; a missing one falls back to English, not to the other Chinese file. A test requires the two tables to have the same keys.
  • The zh-TW.json wording is converted from the Simplified table and would benefit from a review by a native Taiwan speaker (for example 持倉).
  • README.zh-TW.md reuses the Simplified screenshots.

Test plan

  • dotnet build FluxTick.slnx
  • dotnet test --solution FluxTick.slnx (all passing)
  • Compiled installer/FluxTick.iss with Inno Setup 7
  • Switch the language to Traditional Chinese in the running app and check the main window and settings
  • Run the installer on a Traditional Chinese system and check the language selection

Add a zh-TW string table and a ZhTW language choice. Auto now picks Traditional Chinese for zh-TW, zh-HK, zh-MO and Hant systems (an explicit Hans script still wins), uses Traditional CJK fallback fonts, and treats both Chinese languages alike for the default base currency.
Use the official ChineseTraditional.isl shipped with Inno Setup 7.
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coldhighsun
coldhighsun merged commit 7da5bca into main Nov 11, 2026
8 checks passed
@coldhighsun
coldhighsun deleted the feat/traditional-chinese branch November 11, 2026 09:42
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