|
|
@ -8996,6 +8996,7 @@ func TestTranslationFieldErrors(t *testing.T) { |
|
|
|
selfErr = append(selfErr, SelfError{e}) |
|
|
|
selfErr = append(selfErr, SelfError{e}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NotEqual(t, selfErr.Error(), "") |
|
|
|
Equal(t, selfErr.Translate(trans), ValidationErrorsTranslations{ |
|
|
|
Equal(t, selfErr.Translate(trans), ValidationErrorsTranslations{ |
|
|
|
"": " is a required field", |
|
|
|
"": " is a required field", |
|
|
|
}) |
|
|
|
}) |
|
|
|