jesseduffield / jesseduffield/lazygit

lazygit does not consider `$LC_MESSAGES`

Open
#3,384 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**

l10n support in lazygit does not consider the `$LC_MESSAGES` environment variable. Only `$LANG` and `$LC_ALL` seem to have any effect.

**To Reproduce**

1. Set `$LANG` to a different value than `C` or `en_US.UTF-8`
2. Set `$LC_MESSAGES` to `en_US.UTF-8`
3. Launch lazygit
4. Observe localized messages

**Expected behavior**

I expected lazygit to output non-localized (English) messages because `$LC_MESSAGES` is supposed to override `$LANG`

**Version info:**

```
$ lazygit --version
commit=v0.40.2, build date=2023-08-12T17:47:33Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.44.0

$ git --version
git version 2.44.0
```

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.