Versions in this module Expand all Collapse all v1 v1.24.5 Aug 14, 2025 Changes in this version + var ContextKey any = &contextKey + func InitLocales(ctx context.Context) + func Match(tags ...language.Tag) language.Tag + type LangType struct + Lang string + Name string + func AllLangs() []*LangType + type Locale interface + Language func() string + PrettyNumber func(v any) string + Tr func(key string, args ...any) template.HTML + TrN func(cnt any, key1, keyN string, args ...any) template.HTML + TrString func(string, ...any) string + func NewLocale(lang string) Locale + type MockLocale struct + Lang string + LangName string + func (l MockLocale) Language() string + func (l MockLocale) PrettyNumber(v any) string + func (l MockLocale) Tr(s string, args ...any) template.HTML + func (l MockLocale) TrN(cnt any, key1, keyN string, args ...any) template.HTML + func (l MockLocale) TrString(s string, args ...any) string