Versions in this module Expand all Collapse all v1 v1.3.12 Jun 29, 2024 Changes in this version + const Nolisence v1.0.0 Apr 5, 2024 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 Success + const TargetNotFound + const UpdateFailed + const UpdateSuccess + const ValidationError + var LocaleFS embed.FS + type Conf struct + Dir string + type Translator struct + func NewTranslator(file embed.FS) *Translator + func NewTranslatorFromFile(conf Conf) *Translator + func (l *Translator) MatchLocalizer(lang string) *i18n.Localizer + func (l *Translator) NewBundle(file embed.FS) + func (l *Translator) NewBundleFromFile(conf Conf) + func (l *Translator) NewTranslator() + func (l *Translator) Trans(ctx context.Context, msgId string) string + func (l *Translator) TransError(ctx context.Context, err error) error