Skip to content

Commit

Permalink
Merge pull request #191 from jesseduffield/hotfix/174-language-not-found
Browse files Browse the repository at this point in the history
174: Use fallback language if language not detected on startup
  • Loading branch information
jesseduffield authored Aug 20, 2018
2 parents 65c5a60 + fa8248b commit 5fcbe4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/i18n/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5fcbe4f

Please sign in to comment.