repocrypts / Validator

Client-side javascript validator library ports from Laravel 5.2
MIT License
46 stars 22 forks source link

Custom validation messages doen't work with subType messages #48

Open IvanD4RE opened 1 year ago

IvanD4RE commented 1 year ago

sample code:

    const messagesCustom = {
      "min":{
      "numeric": ":attr minimo :min.",
      "file": ":attr dev'essere almeno :min kilobytes.",
      "string": ":attr deve essere lungo almeno :min caratteri.",
     "array": ":attr deve avere almeno :min elementi.",      }
    }
    Validator.make(building, rules,messagesCustom);