Description
After upgrading to version 2.0, the application defaults to run with Simplified Chinese (zh-hans) UI on a Traditional Chinese (zh-hant / zh-TW) system.
Although the release seems to contain the zh-hant translation, the application seems to fail in matching the correct locale and incorrectly falls back to zh-hans as the default for the zh language family. This did not happen in earlier releases.
might be the cause of issue. Shall we add more locales to the alias list?
Steps to reproduce
- Set up a Windows 11 environment with the display language and regional format set to Chinese (Taiwan) /
zh-TW. Make sure by executing Get-Culture / Get-UICulture in PowerShell.
- Install or execute Edit version 2.0.
- Observe the UI is displayed in Simplified Chinese or Traditional Chinese.
- Then, execute Edit version 1.2.1, and observe UI strings again.
Expected behavior
The application should correctly detect the zh-TW system locale, and display with zh-hant translation.
For File(F) menu, the text should be 檔案(F)
Actual behavior
The application displays in Simplified Chinese (zh-hans).
For File(F) menu, the text is 文件(F)
Additional Context & Troubleshooting
Environment
- OS: Windows 11 25H2
- Region/Language: Traditional Chinese / Taiwan
- Edit Version: 2.0
Description
After upgrading to version 2.0, the application defaults to run with Simplified Chinese (
zh-hans) UI on a Traditional Chinese (zh-hant/zh-TW) system.Although the release seems to contain the
zh-hanttranslation, the application seems to fail in matching the correct locale and incorrectly falls back tozh-hansas the default for thezhlanguage family. This did not happen in earlier releases.edit/i18n/edit.toml
Line 17 in d3f8697
Steps to reproduce
zh-TW. Make sure by executingGet-Culture/Get-UICulturein PowerShell.Expected behavior
The application should correctly detect the
zh-TWsystem locale, and display withzh-hanttranslation.For
File(F)menu, the text should be檔案(F)Actual behavior
The application displays in Simplified Chinese (
zh-hans).For
File(F)menu, the text is文件(F)Additional Context & Troubleshooting
Environment