All files / src/locale en_us.js

0% Statements 0/9
0% Branches 0/2
0% Functions 0/7
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10                   

export default {
  required: (filed) => `${filed} is required.`,
  numberic: (filed) => `${filed} only can contain numeric characters.`,
  email: (filed) => `${filed} is not a valid email.`,
  date: (filed, format) => `${filed} must be in the format: ${format || 'YYYY-MM-DD'}`,
  max: (filed, length) => `${filed} may not be greater than ${length}`,
  min: (filed, length) => `${filed} must be at least ${length}`,
  len: (filed, length) => `${filed} must be at ${length}`
}