Versions in this module Expand all Collapse all v0 v0.0.1 Aug 7, 2025 Changes in this version + const AlreadyInit + const ApiRequestFailed + const CacheError + const ConstraintError + const CreateFailed + const CreateSuccess + const DatabaseError + const DeleteFailed + const DeleteSuccess + const Failed + const InitRunning + const NotSingularError + const PermissionDeny + const RedisError + const ServiceBusy + const ServiceUnavailable + const SmsCodeError + const Success + const TargetNotFound + const UpdateFailed + const UpdateSuccess + const ValidationError + var LocaleFS embed.FS + type Conf struct + Dir string + type Translator struct + func NewTranslator(conf Conf, efs embed.FS) *Translator + func (l *Translator) AddBundleFromEmbeddedFS(file embed.FS, path string) error + func (l *Translator) AddBundleFromFile(path string) error + func (l *Translator) AddLanguageSupport(lang language.Tag) + func (l *Translator) MatchLocalizer(lang string) *i18n.Localizer + func (l *Translator) Trans(ctx context.Context, msgId string) string + func (l *Translator) TransError(ctx context.Context, err error) error