Imagine I have two forms, each has email field required. I want to:
- Show different validation messages for each form
- Be able to localize them
Why do I need this: for example, when user signs up and doesn't fill out email field I want to display something like: "Please, specify your email. We will send you some instructions to this email so that you know how to proceed".
On the other hand, when user is in his profile and tries to change his email, I can just tell him: "Email is required field" or something like that.
Plus, I need to localize both of them.
I know that I can specify custom messages for name attributes for each field, but it'll mean that all forms will use them. However I want to be able to have more control. Actually I have localization files in my app, like en_US.json, ru_RU.json, and each form is placed inside an object, with its labels, placeholders etc, plus there is a validation object.
So, is it possible at all?