php - Symfony change validation message globally -
is there way change basic validation error message 1 need entities @ once? using yaml config every entity, it's not way.
cf\mybundle\entity\user: properties: email: - email: message: e-mail no válido - notblank: message: campo obligatorio username: -notblank: message: campo obligatorio
the easiest way define translations file.
# app/resources/translations/validators.es.yml value should not blank.: campo obligatorio value not valid email address.: e-mail no válido
Comments
Post a Comment