Documentation
¶
Index ¶
- type LangData
- type Manager
- func (lm *Manager) CapValue() string
- func (lm *Manager) Codes(codes []string) []string
- func (lm *Manager) Count() int
- func (lm *Manager) Default() []string
- func (lm *Manager) Enabled() bool
- func (lm *Manager) Translate(languages []string, originalString string) string
- func (lm *Manager) Translators() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangData ¶
LangData is the data contained in a language file.
type Manager ¶
Manager manages our languages and provides translation abilities.
func NewManager ¶
NewManager returns a new Manager.
func (*Manager) Codes ¶
Codes returns the proper language codes for the given casefolded language codes.
func (*Manager) Default ¶
Default returns the default languages.
func (*Manager) Enabled ¶ added in v1.2.0
Enabled returns whether translation is enabled.
func (*Manager) Translate ¶
Translate returns the given string, translated into the given language.
Click to show internal directories.
Click to hide internal directories.