Files
Files copied to clipboard
Bug: Not correct Default system language load for `MessageFormatExtensions`
Description
The system language is incorrectly defined, a problem occurs when Formater takes the default 'en' for parsing
Screenshot problem
- If I don't choose the exact language
- Language not set to system language
- This causes the plural localization to function incorrectly
Steps To Reproduce
- If not specified default language load OS default correctly
We overlooked this because I had it selected explicitly, but I have a quick workaround
It would be enough for this method to be static https://github.com/files-community/Files/blob/b2863a3d483e338357d6a283f16cde702cb97088/src/Files.App/ViewModels/Settings/GeneralViewModel.cs#L146-L163
And then you could just use a similar condition for 'en' instead of CultureInfo.InstalledUICulture and store it in ApplicationLanguages.PrimaryLanguageOverride, I just don't know what the convention is for adding it to the App start method https://github.com/files-community/Files/blob/b2863a3d483e338357d6a283f16cde702cb97088/src/Files.App/Extensions/MessageFormatExtensions.cs#L18