summaryrefslogtreecommitdiffstats
path: root/pkg/i18n/i18n.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/i18n/i18n.go')
-rw-r--r--pkg/i18n/i18n.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go
index e58c05aec..f54cb9d80 100644
--- a/pkg/i18n/i18n.go
+++ b/pkg/i18n/i18n.go
@@ -18,7 +18,10 @@ type Localizer struct {
func NewLocalizer(log *logrus.Logger) (*Localizer, error) {
// detect the user's language
- userLang, _ := jibber_jabber.DetectLanguage()
+ userLang, err := jibber_jabber.DetectLanguage()
+ if err != nil {
+ return nil, err
+ }
log.Info("language: " + userLang)
// create a i18n bundle that can be used to add translations and other things