Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + var DefaultLocales = NewLocaleStore() + var ErrLocaleAlreadyExist = util.SilentWrap + var ErrUncertainArguments = util.SilentWrap + func Format(format string, args ...interface{}) (msg string, err error) + func ResetDefaultLocales() + type Locale interface + Has func(trKey string) bool + Tr func(trKey string, trArgs ...interface{}) string + func GetLocale(lang string) (Locale, bool) + type LocaleStore interface + AddLocaleByIni func(langName, langDesc string, source, moreSource []byte) error + Has func(lang, trKey string) bool + HasLang func(langName string) bool + ListLangNameDesc func() (names, desc []string) + Locale func(langName string) (Locale, bool) + SetDefaultLang func(lang string) + Tr func(lang, trKey string, trArgs ...interface{}) string + func NewLocaleStore() LocaleStore