1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

ignore current user language when generating cheatsheets

This commit is contained in:
Jesse Duffield
2022-03-16 19:28:10 +11:00
parent 7e6b43d13b
commit f56988039a
2 changed files with 5 additions and 7 deletions

View File

@ -35,13 +35,11 @@ func GetDir() string {
}
func generateAtDir(cheatsheetDir string) {
os.Setenv("LANG", "en")
translationSetsByLang := i18n.GetTranslationSets()
mConfig := config.NewDummyAppConfig()
for lang := range translationSetsByLang {
os.Setenv("LC_ALL", lang)
mConfig.GetUserConfig().Gui.Language = lang
mApp, _ := app.NewApp(mConfig, "")
path := cheatsheetDir + "/Keybindings_" + lang + ".md"
file, err := os.Create(path)