Most answers I have seen customize yup validation messages when defining a schema, e.g.
const personSchema = yup.object().shape({
firstName: yup.string().required('First name is a required field'),
lastName: yup.string().required('Last name is a required field'),
});
But what if I want to customize the default validation message itself? For example, required fields should always render a fixed string "Required field".