|
|
@ -257,8 +257,8 @@ func (fe *fieldError) Error() string { |
|
|
|
// Translate returns the FieldError's translated error
|
|
|
|
// Translate returns the FieldError's translated error
|
|
|
|
// from the provided 'ut.Translator' and registered 'TranslationFunc'
|
|
|
|
// from the provided 'ut.Translator' and registered 'TranslationFunc'
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// NOTE: is not registered translation can be found it returns the same
|
|
|
|
// NOTE: if no registered translation can be found, it returns the original
|
|
|
|
// as calling fe.Error()
|
|
|
|
// untranslated error message.
|
|
|
|
func (fe *fieldError) Translate(ut ut.Translator) string { |
|
|
|
func (fe *fieldError) Translate(ut ut.Translator) string { |
|
|
|
|
|
|
|
|
|
|
|
m, ok := fe.v.transTagFunc[ut] |
|
|
|
m, ok := fe.v.transTagFunc[ut] |
|
|
|