Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TranslationProvider ¶
type TranslationProvider struct {
// contains filtered or unexported fields
}
TranslationProvider provides translation handling, i.e. loading of bundles etc.
func NewTranslationProvider ¶
func NewTranslationProvider() *TranslationProvider
NewTranslationProvider creates a new translation provider.
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
Translator handles i18n translations.
func NewTranslator ¶
NewTranslator creates a new Translator for the given language bundle and configuration.
func (Translator) Func ¶
func (t Translator) Func(lang string) bundle.TranslateFunc
Func gets the translate func for the given language, or for the default configured language if not found.
Click to show internal directories.
Click to hide internal directories.