diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-20 13:23:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 13:23:26 +1000 |
commit | 5fcbe4ff8ae816c32861948fd6a823b483281f97 (patch) | |
tree | 5c26d6548f88bdac1ff6ec9e0b957767ce114d35 /pkg | |
parent | 65c5a6014b11a5115a2c4a3570d7232ad833dd6d (diff) | |
parent | fa8248bd7059e0edb617d8d165281d188089824c (diff) |
Merge pull request #191 from jesseduffield/hotfix/174-language-not-foundv0.1.74
174: Use fallback language if language not detected on startup
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/i18n/i18n.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index f2bd2839e..e209d55c5 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -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) |