Skip to content

Fix: Fixed issue where settings displayed wrong language after installing Files #10222

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

Merged
merged 2 commits into from
Oct 16, 2022

Conversation

cinqmilleans
Copy link
Contributor

@cinqmilleans cinqmilleans commented Oct 15, 2022

Resolved / Related Issues
This pr restores Windows default in the language selection. This option is by default.
The others languages are sorted by name, including English.

Fixes #10220.

The current behavior is to select Windows default after installation, but display English in the options. It is no longer possible to return to Windows default after changing the language. This pr fixes that. Windows default should be English if the Windows language doesn't exist in Files, but I couldn't test.

The method AddSupportedAppLanguages in PreferencesViewModel is refactored.

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

Screenshots (optional)
selector

@yaira2 yaira2 changed the title Restore Windows default language Fix: Fixed issue where settings displayed wrong language after installing Files Oct 16, 2022
@yaira2
Copy link
Member

yaira2 commented Oct 16, 2022

How did you validate these changes?

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Oct 16, 2022
@yaira2 yaira2 merged commit 8597ac3 into files-community:main Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Settings displays wrong language after installing Files
2 participants