I'm French, and like to have the Windows UI in French, but all my dev tools in English.
The dotnet
CLI tool displays its output in French, and I'd like to force it to English. Is it possible?
I'm French, and like to have the Windows UI in French, but all my dev tools in English.
The dotnet
CLI tool displays its output in French, and I'd like to force it to English. Is it possible?
You can use the DOTNET_CLI_UI_LANGUAGE
environment variable to override the language used by the dotnet
CLI:
> set DOTNET_CLI_UI_LANGUAGE=en
> dotnet --help
…
[english content]
To set DOTNET_CLI_UI_LANGUAGE environment variable please use:
DOTNET_CLI_UI_LANGUAGE=en
in cmd.exe$Env:DOTNET_CLI_UI_LANGUAGE = "en"
in PowerShellFor unix-like system (Mac OS X, Linux)
set DOTNET_CLI_UI_LANGUAGE=en
dotnet --help
For Windows
- setx DOTNET_CLI_UI_LANGUAGE en
- Goto "dotnet-install-directory\sdk\sdk-version" (For example C:\Program Files\dotnet\sdk\3.1.102 in windows for dotnet version 3.1.102)
- Delete folder of your language for example, delete fr because your dotnet show French. delete zh-Hans and zh-Hant if your dotnet show Chinese.
Worked for RU-language too.
setx DOTNET_CLI_UI_LANGUAGE en
- partially change the cli language.
And delete or rename folder of your language in "dotnet-install-directory\sdk\sdk-version"
that you can get via dotnet --info
- changes finally the language to English.
Previous answers didn't work for me on MacOS with zsh
.
What worked was
export DOTNET_CLI_UI_LANGUAGE=en
but it's not enough, because as soon as you close your terminal this variable will be lost, so I had to add it to ~/.zshrc
.
I tried to Martin's answer,but it did not work
After that, i tried followings, it needs to work
setx DOTNET_CLI_UI_LANGUAGE en
C:\Program Files\dotnet\sdk\3.1.102
in windows for dotnet version 3.1.102)zh-Hans
and zh-Hant
on windows using bash
export DOTNET_CLI_UI_LANGUAGE=en
you can run this command every time or add the command to ~/.bashrc file
As said, we need to change the DOTNET_CLI_UI_LANGUAGE
environment variable to the desired language (en
in this case).
# Open Git Bash
cd # go to home directory (e.g C:\Users\your_windows_user)
code .bashrc # open a file (and create if it doesn't exit) called .bashrc in VSCode
Now we put export DOTNET_CLI_UI_LANGUAGE=en
inside C:\Users\your_windows_user\.bashrc
to permanently change the value of the environment variable DOTNET_CLI_UI_LANGUAGE
.
© 2022 - 2025 — McMap. All rights reserved.