From fcf616bd62a71e3ae3fac9ef93d02e20e8355c0b Mon Sep 17 00:00:00 2001 From: Mark Kopenga Date: Thu, 16 Aug 2018 13:35:04 +0200 Subject: Fixed it --- pkg/gui/gui.go | 2 +- pkg/i18n/i18n.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 1a2ec44ba..a5bdb9e07 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -50,7 +50,7 @@ func (gui *Gui) GenerateSentinelErrors() { } // Teml is short for template used to make the required map[string]interface{} shorter when using gui.Tr.SLocalize and gui.Tr.TemplateLocalize -type Teml map[string]interface{} +type Teml i18n.Teml // Gui wraps the gocui Gui object which handles rendering and events type Gui struct { diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index 2e445391d..9102ff0b3 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -7,6 +7,9 @@ import ( "golang.org/x/text/language" ) +// Teml is short for template used to make the required map[string]interface{} shorter when using gui.Tr.SLocalize and gui.Tr.TemplateLocalize +type Teml map[string]interface{} + // Localizer will translate a message into the user's language type Localizer struct { i18nLocalizer *i18n.Localizer -- cgit v1.2.3