Documentation ¶
Overview ¶
Package i18n provides experimental internationalization features.
Backward incompatible API changes are to be expected.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translations ¶
type Translations struct {
// contains filtered or unexported fields
}
func NewTranslations ¶
func NewTranslations() *Translations
func TranslationsFromMap ¶
func TranslationsFromMap(defaultLanguage string, languages map[string]Entries) *Translations
func (*Translations) AddLanguage ¶
func (b *Translations) AddLanguage(code string, entries Entries)
func (*Translations) SetDefaultLanguage ¶
func (b *Translations) SetDefaultLanguage(code string)
Click to show internal directories.
Click to hide internal directories.