Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Localizer ¶
Localizer will translate a message into the user's language
func NewLocalizer ¶
NewLocalizer creates a new Localizer
func (*Localizer) GetLanguage ¶
GetLanguage returns the currently selected language, e.g 'en'
func (*Localizer) Localize ¶
func (l *Localizer) Localize(config *i18n.LocalizeConfig) string
Localize handels the translations expects i18n.LocalizeConfig as input: https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n#Localizer.MustLocalize output: translated string
Click to show internal directories.
Click to hide internal directories.