Documentation ¶
Overview ¶
Package i18n defines internationalization and localization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocaleMap ¶
type LocaleMap struct {
// contains filtered or unexported fields
}
LocaleMap is a map of locale names to their data structure.
func Load ¶
Load parses and loads the localization files from disk. It builds the locale matcher based on the currently available data (organized by folder).
Due to the heavy I/O, callers should cache the resulting value and only call Load when data needs to be refreshed.
func (*LocaleMap) Canonicalize ¶
Canonicalize converts the given ID to the expected name.
Click to show internal directories.
Click to hide internal directories.