diff options
-rw-r--r-- | pkg/gui/gui.go | 2 | ||||
-rw-r--r-- | pkg/i18n/i18n.go | 3 |
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 |