Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplicationLanguages.Languages is not ordered according to user preference #10075

Open
bjorn-malmo opened this issue Oct 16, 2024 · 0 comments
Open
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@bjorn-malmo
Copy link

Describe the bug

The documentation states that the Languages list is a list of appropriate languages, ranked in order of preference.
The list of languages is filtered from the ManifestLanguages list, but it is not ordered according to preference (as set in Windows Setting Language)

I have set my Windows station to Swedish, only adding sv-SE as language, and yet my Languages list will have en-US as the first entry, and sv-SE as second.

This also affects the primary display language of the application, which in my case will be English if I don't explicitly set the PrimaryLanguageOverride property.

Steps to reproduce the bug

Create a project with multiple resource files
Change the order of preferred language (Windows Settings > Time & language > Language & region).
The order of the Languages list remains the same
Restarting the computer does not affect this behavior

Expected behavior

The order of items should match the preferred selection in Windows

Screenshots

Image
Image
Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@bjorn-malmo bjorn-malmo added the bug Something isn't working label Oct 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant