summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorMark Kopenga <mkopenga@gmail.com>2018-08-16 13:35:04 +0200
committerMark Kopenga <mkopenga@gmail.com>2018-08-16 13:35:04 +0200
commitfcf616bd62a71e3ae3fac9ef93d02e20e8355c0b (patch)
tree1addda7c41f1aee562c17c3e10de5329c21299b2 /pkg
parentfaf218f4650edbd0a711a3304cc5549180e9dfdc (diff)
Fixed it
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/gui.go2
-rw-r--r--pkg/i18n/i18n.go3
2 files changed, 4 insertions, 1 deletions
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