I'm looking to change the generic error message in Magento 2. The default error message when an action is required is 'This is a required field'.
Example;
Configurable Product: If the add the cart button is clicked without an attribute selected, it returns the error 'This is a required field'. I'd like it to return ''Please select a {attribute_label}'. This way it will show, 'Please select a size' or 'Please select a colour'.
E-Mail Input Field: If the email signup field is left blank, and the subscribe button clicked, it returns 'This is a required field'. I'd prefer it to return 'Please enter your email'.
Please also help me understand if these error messages are called from a translation/language file, or if each field has its own error message associated with itself.