Skip to content

[2.0] Incorrect locale fallback to zh-Hans on zh-Hant systems #832

@petercpg

Description

@petercpg

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.

zh = "zh_hans"
might be the cause of issue. Shall we add more locales to the alias list?

Steps to reproduce

  1. 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.
  2. Install or execute Edit version 2.0.
  3. Observe the UI is displayed in Simplified Chinese or Traditional Chinese.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions