Hi,
I am trying to edit the invalid message popping up after a user enters something wrong on forms (such as putting plain text in the email box of sign-in form). After many trials and errors, I have found 3 suspicious files:
1. <magento2 directory>/lib/web/mage/validation.js
2. <magento2 directory>/ventor/magento/magento2-base/lib/web/mage/validation.js
3. <magento2 directory>/ventor/magento/module-ui/view/base/web/js/lib/validation/rules.js
I experimented with all 3 files and found that only changes made in /lib/web/mage/validation.js work. So I have these questions:
1. I don't want to directly edit the original validation file. How do I create my custom validation file that overrides the old one?
2. What are the other 2 validation rule files for?
Thanks in advance!