-
Notifications
You must be signed in to change notification settings - Fork 796
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
Cannot switch the FSI language to english #16146
Comments
I don't think we have a way, other than setting language for current console, @KevinRansom? |
I think the correct way to do this would be in the 'dotnet fsi' wrapper command in the dotnet/sdk repo, since this is a question of making an SDK convention apply to a tool that ships as part of the SDK. If there's a known flag/argument for controlling locale then we can set it in that wrapper before invoking the FSI assembly. This is how many integrations (Nuget, format, etc) already happen in the SDK. |
fsi has a command line option --preferreduilang to set the current language There is no persistent way of specifying this other than using the Operating System settings. I have tested a fix that I will submit to the dotnet sdk:
|
thanks! |
I am using the latest .net 8 runtime and calling Calling dotnet for the first time produces a mix of languages where a part comes from the dotnet runtime and fsi interactive: OT: Funnily enough updating the workload as mentioned in the screenshot doesn't respect my language settings, again! Not that you can do anything about it from the F# side but oh my is this a mess! Why does Microsoft always want to localize all my developer tools!? I'm not even a native Italian speaker! 😆 |
I have installed net core 7.0.402 in an OS with language settings in Spanish but without any language pack installed, so the dotnet sdk should be in english.
I have added the environment variable to force dotnet to run with english locale:
So far, this seems to work for running dotnet commands (I am leaving an error to show that the msbuild reports the errors and are displayed in english:
But whenever I execute dotnet fsi, the fsi interactive terminal switches to my OS language(Spanish)
Can I somehow change the
FSI interactive
language to use also english?I found a workaround #https://github.com/dotnet/msbuild/issues/1596#issuecomment-738722213
Basically, delete the {locale} folder within the sdk/{version}/fsharp/{locale}
OS System: Windows 10 22h2 build 19045.3570
netcore Version 7.0.402
Thanks!
The text was updated successfully, but these errors were encountered: