code analysis hints appearing in two different languages
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 737
- Avg merge
- 17h 56m
- Merged PRs (30d)
- 21
Description
**Code analysis hints** (sometimes even called IntelliSense) in Visual Studio Code appear **in two different languages**, English and German, based on the category of the hint.
For example `csharp(IDE0051)` is in English: `Private member 'TestDotnetConsole._value' is unused`
...and `csharp(CA1822)` is in German: `Der Member "Main" greift nicht auf Instanzdaten zu und kann als "static" markiert werden.`

My Windows 10 is set to German, my Visual Studio Code is set to English and I want _all_ my code analysis hints in English (because German hints sound weird and searching for them online brings up far less results than searching for the English ones).
I followed every recommendation I was able to find online to change the language to English - but some, not all, hints are still in German.
https://github.com/OmniSharp/omnisharp-vscode/issues/2513 is similar but labeled as "reature request". I intentionally opened this new issue because mixing languages in output should be an obvious bug.
## Steps to reproduce
Have .NET 8 installed and create a new project with `dotnet new console`. Add the following files to it.
[TestDotnetConsole.cs.txt](https://github.com/dotnet/vscode-csharp/files/14373997/TestDotnetConsole.cs.txt)
[TestDotnetConsole.csproj.txt](https://github.com/dotnet/vscode-csharp/files/14373998/TestDotnetConsole.csproj.txt)
[TestDotnetConsole.code-workspace.txt](https://github.com/dotnet/vscode-csharp/files/14373999/TestDotnetConsole.code-workspace.txt)
[omnisharp.json](https://github.com/dotnet/vscode-csharp/files/14374002/omnisharp.json)
Use Visual Studio Code and extension "C#" to edit the project after having followed all the recommendations mentioned fellow (setting environment variable and deleting all localized DLLs).
## Expected behavior
All code analysis hints are in in English.
## Actual behavior
Some code analysis hints are in German, some others are in English.
## Additional context
Windows 10 Pro, Version 22H2, 19045.4046
Windows language is German (I cannot change that because it is a company PC)
Visual Studio Code version 1.86.2
Visual Studio Code display language "English (en)" (no other language is installed)
Visual Studio Code extension "C#" version 2.15.30
Setting `Omnisharp: Use Modern Net` set to `true` (but I have even seen the issue happen while set to `false`)
Visual Studio Code extension "C# DevKit" _not_ installed!
According to `dotnet sdk check` I have installed:
.NET SDKs:
6.0.412
8.0.101
.NET Runtimes:
Microsoft.AspNetCore.App 6.0.20
Microsoft.NETCore.App 6.0.20
Microsoft.WindowsDesktop.App 6.0.20
Microsoft.AspNetCore.App 8.0.1
Microsoft.NETCore.App 8.0.1
Microsoft.WindowsDesktop.App 8.0.1
The environment variable `DOTNET_CLI_UI_LANGUAGE` is set to `en-us` (when I open `cmd.exe` and run the command `set` the output includes the line `DOTNET_CLI_UI_LANGUAGE=en-us`).
(source for that recommendation: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#dotnet_cli_ui_language )
In the folder `C:\Users\myname\.vscode\extensions\ms-dotnettools.csharp-2.15.30-win32-x64\.omnisharp\1.39.11` I deleted all sub-folders, including `de`.
In the folder `C:\Users\myname\.vscode\extensions\ms-dotnettools.csharp-2.15.30-win32-x64\.omnisharp\1.39.11-net6.0` I deleted all sub-folders, including `de`.
(source for that recommendation: https://github.com/OmniSharp/omnisharp-vscode/issues/2513 )
In the folder `C:\Users\myname\.vscode\extensions\ms-dotnettools.csharp-2.15.30-win32-x64\.debugger\x86_64` I deleted all sub-folders, including `de` and `1031` (which stands for "German - Germany").
(source for that recommendation: https://github.com/dotnet/vscode-csharp/issues/2513#issuecomment-981134545 )
[settings-reduced.json](https://github.com/dotnet/vscode-csharp/files/14373994/settings-reduced.json)
[omnisharp-output.txt](https://github.com/dotnet/vscode-csharp/files/14373995/omnisharp-output.txt)
Contributor guide
Assessment
This issue has not been assessed yet.