#updated Added required_id spanish translation (#1026)

pull/1061/head
Roberto Ramírez 2 years ago committed by GitHub
parent 3201fe42fe
commit 7edc63a0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      translations/es/es.go
  2. 1
      translations/es/es_test.go

@ -29,6 +29,11 @@ func RegisterDefaultTranslations(v *validator.Validate, trans ut.Translator) (er
translation: "{0} es un campo requerido",
override: false,
},
{
tag: "required_if",
translation: "{0} es un campo requerido",
override: false,
},
{
tag: "len",
customRegisFunc: func(ut ut.Translator) (err error) {

@ -35,6 +35,7 @@ func TestTranslations(t *testing.T) {
RequiredString string `validate:"required"`
RequiredNumber int `validate:"required"`
RequiredMultiple []string `validate:"required"`
RequiredIf string `validate:"required_if=Inner.RequiredIf abcd"`
LenString string `validate:"len=1"`
LenNumber float64 `validate:"len=1113.00"`
LenMultiple []string `validate:"len=7"`

Loading…
Cancel
Save