Versions in this module Expand all Collapse all v0 v0.3.0 Oct 30, 2026 v0.2.0 Oct 29, 2026 Changes in this version + const MaxDomains + const MaxEntries + const MaxFileBytes + const MaxFiles + const MaxLocales + const MaxMessageBytes + const MaxMessages + const MaxOutputBytes + const MaxParameterBytes + const MaxParameters + const MaxSources + const MaxTotalBytes + var ErrCatalog = errors.New("invalid localization catalog") + var ErrLimit = errors.New("localization limit exceeded") + var ErrLocale = errors.New("unsupported localization locale") + var ErrMessage = errors.New("unknown localization message") + var ErrParameters = errors.New("invalid localization parameters") + type Catalog struct + func Load(sources ...fs.FS) (*Catalog, error) + func (c *Catalog) For(tag string) (*Localizer, error) + func (c *Catalog) Locales() []Locale + type Forms struct + Few string + Many string + One string + Other string + Two string + Zero string + type Locale struct + Direction string + Name string + Tag string + type Localizer struct + func (l *Localizer) Locale() Locale + func (l *Localizer) Messages(domain string) (map[string]Message, error) + func (l *Localizer) Plural(domain, key string, count int64, params map[string]string) (string, error) + func (l *Localizer) Text(domain, key string, params map[string]string) (string, error) + type Message struct + Forms Forms + Locale string