Update errors.go

pull/671/head
Dean Karn 4 years ago committed by GitHub
parent 2a5412a1bc
commit d9e95d55e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      errors.go

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

Loading…
Cancel
Save