mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-12 00:26:24 -04:00
use fallback language if language not detected on startup
This commit is contained in:
parent
e6712832b5
commit
fa8248bd70
|
|
@ -23,7 +23,10 @@ func NewLocalizer(log *logrus.Logger) (*Localizer, error) {
|
|||
// detect the user's language
|
||||
userLang, err := jibber_jabber.DetectLanguage()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if err.Error() != "Could not detect Language" {
|
||||
return nil, err
|
||||
}
|
||||
userLang = "C"
|
||||
}
|
||||
log.Info("language: " + userLang)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue