-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Force SDK locale to English #11836
Comments
Any news on this? For now, renaming the "fr" folder in |
You should be able to set the |
Do note that the SDK has been localized for a long time (1.0?), that override was added around the 2.0 timeframe i believe. |
Thanks @dasMulli!
I was wondering the same thing. I noticed the localization folders in previous versions of the SDK, but I never had to do anything to override the language before. Maybe the heuristics for selecting the default language have changed in 5.0? |
I'll close this issue, since there's a documented solution |
OK, I think I know what the problem is. It's not a problem with the CLI, but with .NET itself. Consider the following code: static void Main(string[] args)
{
Console.WriteLine($"Culture:\t{CultureInfo.CurrentCulture}");
Console.WriteLine($"UI Culture:\t{CultureInfo.CurrentUICulture}");
} If I build and run it in .NET Core 3.1, the output is this:
(which is what I expect based on my system settings) If I build and run it in .NET 5.0, the output is this:
It looks like .NET 5.0 only considers my regional settings, not my UI language. |
It's fixed in preview 5 |
Apparently the SDK for .NET 5 has been localized. I'm sure it's great for some people, but I don't want this. I want the SDK to "speak" English, not French.
My Windows language is English, with French regional settings (for date and number format, etc.)
(in other words, CurrentUICulture is English, CurrentCulture is French)
How do I force the SDK to use English?
The text was updated successfully, but these errors were encountered: