summaryrefslogtreecommitdiffstats
path: root/pkg/i18n/i18n.go
diff options
context:
space:
mode:
authorMark Kopenga <mkopenga@gmail.com>2018-08-14 15:26:25 +0200
committerMark Kopenga <mkopenga@gmail.com>2018-08-14 15:26:25 +0200
commit73a168254066278b6f5d38667564877a071b4376 (patch)
tree33fb41af7105616ebe63a9f7bf5e8fc3bd123277 /pkg/i18n/i18n.go
parent8e22d569a09a3ddd3a508bf2be382f2d0f2d17af (diff)
fixed package naming and added tr object to file_panel.go
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