From 29f2bdbba3b385eeefc84a172f8440bd6ef18f19 Mon Sep 17 00:00:00 2001 From: Mark Kopenga Date: Sat, 18 Aug 2018 14:03:20 +0200 Subject: [PATCH] removed logrus logger import --- pkg/i18n/i18n.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index eac8dc140..f2bd2839e 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -1,8 +1,6 @@ package i18n import ( - "log" - "github.com/Sirupsen/logrus" "github.com/cloudfoundry/jibber_jabber" "github.com/nicksnyder/go-i18n/v2/i18n" @@ -32,7 +30,7 @@ func NewLocalizer(log *logrus.Logger) (*Localizer, error) { // create a i18n bundle that can be used to add translations and other things i18nBundle := &i18n.Bundle{DefaultLanguage: language.English} - addBundles(i18nBundle) + addBundles(log, i18nBundle) // return the new localizer that can be used to translate text i18nLocalizer := i18n.NewLocalizer(i18nBundle, userLang) @@ -80,7 +78,7 @@ func (l *Localizer) GetLanguage() string { } // add translation file(s) -func addBundles(i18nBundle *i18n.Bundle) { +func addBundles(log *logrus.Logger, i18nBundle *i18n.Bundle) { err := addPolish(i18nBundle) if err != nil { log.Fatal(err)