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)