-
Notifications
You must be signed in to change notification settings - Fork 387
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
Default number format should be CultureInfo.CurrentCulture, not CurrentUICulture #787
Comments
Thanks for reporting, you may be right. Will look into it. |
It is correct, we're using the wrong one. This would be a behavior break though. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
No, I don't think this should be wontfix. A PR for this is pending (but apparently waiting for other stuff to get done as well) |
@angularsen @tmilnthorp Are there any plans when 4.X will be branched out so that some of the pending breaking changes could be implemented for 5.0? The number formatting is unfortunately poor, so that I keep doing it manually. |
If I am not mistaken, this was fixed in v5 by #986. |
The default formatting of numbers (in QuantityFormatter.cs), when no explicit culture is given, should use
CultureInfo.CurrentCulture
notCultureInfo.CurrentUICulture
. On Windows, the first corresponds to the selection from the control panel "Regional Settings" and defines the locale settings of the user.CurrentUICulture
represents the language of the UI, which will be english for everyone that uses Windows in english.In my case, CurrentUICulture is "de-DE", since my Windows is German, but CurrentCulture is "de-CH", since I use the number format for Switzerland (which is quite different).
The text was updated successfully, but these errors were encountered: