Skip to content

Wrong string resource loaded. #696

@lighterhy

Description

@lighterhy

Describe the bug
We should use CultureInfo.CurrentUICulture instead of CultureInfo.CurrentCulture when loading resources.

For language & region settings in my system:
Image

CultureInfo.CurrentCulture returns zh-CN, But actually en-US is my prefered display language. This cause my UI like this:

Image

Screenshots

Desktop/Platform (please complete the following information):

  • OS: All
  • FluentAvalonia Version: 2.4.0 is used
  • Avalonia Version: 11.3.6

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions