Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Localizer ¶
type Localizer struct { Log *logrus.Entry S TranslationSet // contains filtered or unexported fields }
Localizer will translate a message into the user's language
type TranslationSet ¶
TranslationSet is a set of localised strings for a given language
func NewTranslationSet ¶
func NewTranslationSet(log *logrus.Entry) TranslationSet
NewTranslationSet creates a new Localizer
Click to show internal directories.
Click to hide internal directories.