0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-03 16:09:41 +00:00
crazy-max_diun/vendor/github.com/go-playground/validator/v10/translations.go
2024-12-14 22:30:21 +01:00

11 lines
425 B
Go

package validator
import ut "github.com/go-playground/universal-translator"
// TranslationFunc is the function type used to register or override
// custom translations
type TranslationFunc func(ut ut.Translator, fe FieldError) string
// RegisterTranslationsFunc allows for registering of translations
// for a 'ut.Translator' for use within the 'TranslationFunc'
type RegisterTranslationsFunc func(ut ut.Translator) error