Skip to content

Switch CLI language with a dotnet option #19246

@ncarandini

Description

@ncarandini

Sometimes, expecially when reporting an issue or writing a blog post in a foreign language, it can be usefull to switch CLI to a non-system language.

Currently the dotnet CLI on Windows don't use the DOTNET_CLI_UI_LANGUAGE environment variable anymore and the workaround is to rename the folder of the system language in the dotnet SDK folder (located on "dotnet-install-directory\sdk\sdk-version"). For example, renaming it to it-off if the system language is Italian. Please note that renaming is better than deleting, as we can revert to the system language simply restoring the folder name (i.e. it-off to it).

This is tedious and error prone, and I'd like to use a dotnet option to set it , like dotnet --lang-en --help or dotnet --lang-es --help or dotnet --lang-jp --help.

Would it be feasible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions