Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LangData ¶
type LangData struct { Name string Code string Contributors string Incomplete bool Translations map[string]string }
LangData is the data contained in a language file.
type Manager ¶
type Manager struct { sync.RWMutex Info map[string]LangData // contains filtered or unexported fields }
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) Translators ¶
Translators returns the languages we have and the translators.
Click to show internal directories.
Click to hide internal directories.