Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog holds UI translation messages for all configured languages.
func NewCatalog ¶
NewCatalog loads TOML translation files from fsys for each configured language. The primary language is the first entry in languages. Files are expected as <lang>.toml (e.g. "en.toml", "fr.toml"). Missing files are silently skipped as long as at least the primary language file exists.
Click to show internal directories.
Click to hide internal directories.