jesseduffield / jesseduffield/lazydocker

Wrong UI language detected on Windows

Open
#445 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
52.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I am trying to use lazydocker on Windows with English Language and German Region.
What I am seeing is a UI that is half German/half English.

**To Reproduce**
1. Set Windows Language to English and Region to German
1. Launch lazydocker.
1. See a Language mix.

**Expected behaviour**
Everything is in English.

**Screenshots**
![image](https://user-images.githubusercontent.com/426959/230622216-7d783a73-4e5b-4d43-8521-8297775e308d.png)
![image](https://user-images.githubusercontent.com/426959/230622190-a3754bce-2e4c-472e-8d98-03fd1a84c14b.png)

![image](https://user-images.githubusercontent.com/426959/230623005-6ac892c5-ef47-43a7-b141-c20e25d34e71.png)
![image](https://user-images.githubusercontent.com/426959/230623257-742a5bb9-b83f-41dd-bd46-8f705af2bc72.png)

**Desktop (please complete the following information):**
- OS: Windows 10
- Lazydocker Version
```
Version: 0.20.0
Date: 2022-11-12T04:29:12Z
BuildSource: binaryRelease
Commit: 530dbbe57009f4596bfeedba1c8169becd98b9a8
OS: windows
Arch: amd64
```

**Additional context**
Looking through the source code I can see that cloudfoundry's jibber_jabber library from 2015 is used to detect the user language. That library is abandoned. Maybe there exists a better library to determine the UI language?

If there is no better way to detect the effective UI language, maybe an environment variable can be set to force a certain language in the app?

Btw. all other language sensitive apps I am using correctly display in English.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.