mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
Fix language auto-detection
Starting lazygit with an environment containing LANG=ko_KO or LANG=nl_NL would result in an error at startup.
This commit is contained in:
@@ -24,7 +24,7 @@ func NewTranslationSetFromConfig(log *logrus.Entry, configLanguage string) (*Tra
|
||||
language := detectLanguage(jibber_jabber.DetectIETF)
|
||||
for _, languageCode := range languageCodes {
|
||||
if strings.HasPrefix(language, languageCode) {
|
||||
return newTranslationSet(log, language)
|
||||
return newTranslationSet(log, languageCode)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user