1
0
mirror of synced 2024-11-22 21:36:04 +03:00
vue-formulario/src/errors.js

7 lines
334 B
JavaScript
Raw Normal View History

2018-01-31 01:21:21 +03:00
export default {
required: ({field, value}, label) => `${label || field} is required`,
email: ({field, value}, label) => `${label || 'Email address'} is invalid.`,
confirmed: ({field, value}, label) => `${label || field} does not match the confirmation field.`,
default: ({field, value}) => `The ${field} field is invalid.`
}