Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator interface {
TranslateFunction(language string) TranslatorFunc
}
type TranslatorFunc ¶
type TranslatorPack ¶
type TranslatorPack struct {
// contains filtered or unexported fields
}
func (*TranslatorPack) TranslateFunction ¶
func (translator *TranslatorPack) TranslateFunction(language string) TranslatorFunc
Returns a function based on passed language tag.
You can get your language string code with using "golang.org/x/text/language" library like: language.English.String()
Click to show internal directories.
Click to hide internal directories.