diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-16 19:28:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-16 19:46:11 +1100 |
commit | f56988039af1ffd44d9ce82ee7e885d012974e46 (patch) | |
tree | dfb4e7729e9c2bb76571fd3da48d6dee5b0d4e14 | |
parent | 7e6b43d13b70fdd8df8a832fe7f3b1cb532b7372 (diff) |
ignore current user language when generating cheatsheets
-rw-r--r-- | docs/keybindings/Keybindings_nl.md | 8 | ||||
-rw-r--r-- | pkg/cheatsheet/generate.go | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/docs/keybindings/Keybindings_nl.md b/docs/keybindings/Keybindings_nl.md index 325f6b001..7d5b8f78c 100644 --- a/docs/keybindings/Keybindings_nl.md +++ b/docs/keybindings/Keybindings_nl.md @@ -18,7 +18,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct <kbd>ctrl+z</kbd>: redo (via reflog) (experimenteel) <kbd>+</kbd>: volgende scherm modus (normaal/half/groot) <kbd>_</kbd>: vorige scherm modus - <kbd>:</kbd>: voor aangepaste commando uit + <kbd>:</kbd>: voer aangepaste commando uit <kbd>ctrl+s</kbd>: bekijk scoping opties <kbd>W</kbd>: open diff menu <kbd>ctrl+e</kbd>: open diff menu @@ -63,7 +63,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct ## Branches Paneel (Remote Branches (in Remotes tabblad)) <pre> - <kbd>esc</kbd>: Ga terug naar remotes lijst + <kbd>esc</kbd>: ga terug naar remotes lijst <kbd>g</kbd>: bekijk reset opties <kbd>enter</kbd>: bekijk commits <kbd>space</kbd>: uitchecken @@ -179,7 +179,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct ## Bestanden Paneel (Bestanden) <pre> - <kbd>c</kbd>: Commit veranderingen + <kbd>c</kbd>: commit veranderingen <kbd>w</kbd>: commit veranderingen zonder pre-commit hook <kbd>A</kbd>: wijzig laatste commit <kbd>C</kbd>: commit veranderingen met de git editor @@ -276,7 +276,7 @@ _This file is auto-generated. To update, make the changes in the pkg/i18n direct <kbd>a</kbd>: toggle selecteer hunk <kbd>H</kbd>: scroll left <kbd>L</kbd>: scroll right - <kbd>c</kbd>: Commit veranderingen + <kbd>c</kbd>: commit veranderingen <kbd>w</kbd>: commit veranderingen zonder pre-commit hook <kbd>C</kbd>: commit veranderingen met de git editor </pre> diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go index 94eea0687..546239df5 100644 --- a/pkg/cheatsheet/generate.go +++ b/pkg/cheatsheet/generate.go @@ -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) |