Versions in this module Expand all Collapse all v1 v1.0.0 Sep 13, 2023 Changes in this version + type JSONDriver struct + func (this *JSONDriver) Load() error + func (this *JSONDriver) Register(locale string, key string, message string) + func (this JSONDriver) Resolve(locale string, key string) string + func (this JSONDriver) ResolveStruct(s any, locale string, key string, field string) string + func (this JSONDriver) Translate(locale string, key string, placeholders map[string]string) string + func (this JSONDriver) TranslateStruct(s any, locale string, key string, field string, placeholders map[string]string) string + type Translatable interface + GetTranslation func(locale string, key string, field string) string + type Translator interface + Register func(locale string, key string, message string) + Resolve func(locale string, key string) string + ResolveStruct func(s any, locale string, key string, field string) string + Translate func(locale string, key string, placeholders map[string]string) string + TranslateStruct func(s any, locale string, key string, field string, placeholders map[string]string) string + func NewJSONTranslator(fallbackLocale string, dir string) (Translator, error) + func NewMemoryTranslator(fallbackLocale string) Translator