mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-27 22:01:46 +02:00
removed logrus logger import
This commit is contained in:
parent
c90e865e34
commit
29f2bdbba3
@ -1,8 +1,6 @@
|
|||||||
package i18n
|
package i18n
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/cloudfoundry/jibber_jabber"
|
"github.com/cloudfoundry/jibber_jabber"
|
||||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
"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
|
// create a i18n bundle that can be used to add translations and other things
|
||||||
i18nBundle := &i18n.Bundle{DefaultLanguage: language.English}
|
i18nBundle := &i18n.Bundle{DefaultLanguage: language.English}
|
||||||
|
|
||||||
addBundles(i18nBundle)
|
addBundles(log, i18nBundle)
|
||||||
|
|
||||||
// return the new localizer that can be used to translate text
|
// return the new localizer that can be used to translate text
|
||||||
i18nLocalizer := i18n.NewLocalizer(i18nBundle, userLang)
|
i18nLocalizer := i18n.NewLocalizer(i18nBundle, userLang)
|
||||||
@ -80,7 +78,7 @@ func (l *Localizer) GetLanguage() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add translation file(s)
|
// add translation file(s)
|
||||||
func addBundles(i18nBundle *i18n.Bundle) {
|
func addBundles(log *logrus.Logger, i18nBundle *i18n.Bundle) {
|
||||||
err := addPolish(i18nBundle)
|
err := addPolish(i18nBundle)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user