1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00
This commit is contained in:
Mark Kopenga 2018-08-16 13:35:04 +02:00
parent faf218f465
commit fcf616bd62
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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