dotnet / dotnet/sdk

.NET SDK installer UI always displayed in wrong launguage

Open
#42,780 4 comments 0 reactions 0 assignees View on GitHub
untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
Whenever I run an installer of the .NET SDK, the UI of the installer is displayed in German, even though I have a genuine English version of Windows 11 Pro.

![image](https://github.com/user-attachments/assets/fb1dd881-e3d9-47d0-a037-c69c15e1826c)

This bug is probably due to the fact installer is choosing the UI language based on the [CurrentCulture](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.currentculture) instead of the [CurrentUICulture](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.currentuiculture).

Because even though I have a English version of Windows 11 Pro and my UI is set to English, my regional format is set to German:

![image](https://github.com/user-attachments/assets/b3663855-c828-4a16-afd6-4db750c32708)

### To Reproduce
On an English Windows 11 Pro with English UI language, set "Country or region" and "Regional format" to German and then run any .NET SDK installer (e.g. thtough `winget intstall Microsoft.DotNet.SDK.8` or `winget update Microsoft.DotNet.SDK.8`).

The installer is one of first thing new .NET user will encounter. I think it is quite valuable to make the installer as "polished" as possible for a good first impression.

### Actual Result

The installer displays its UI in German.

### Expected Result

The installer displays its UI in English.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.