forked from didi/cube-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathen-US.js
56 lines (56 loc) · 2.04 KB
/
en-US.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export default {
cancel: 'Cancel',
confirm: 'Confirm',
ok: 'OK',
prev: 'Prev',
next: 'Next',
selectText: 'Please select',
now: 'Now',
selectTime: 'Select time',
today: 'Today',
formatDate: 'M-D',
hours: '',
minutes: '',
validator: {
required: 'Required.',
type: {
string: 'Please input characters.',
number: 'Please input numbers.',
array: 'The data type should be array.',
date: 'Please select a valid date.',
email: 'Please input a valid E-mail.',
tel: 'Please input a valid telphone number.',
url: 'Please input a valid web site.'
},
min: {
string: 'Please input at least {{config}} characters.',
number: 'The number could not smaller than {{config}}.',
array: 'Please select at least {{config}} items.',
date: 'Please select a date after {{config | toLocaleDateString("yyyy-MM-dd")}}.',
email: 'Please input at least {{config}} characters.',
tel: 'Please input at least {{config}} characters.',
url: 'Please input at least {{config}} characters.'
},
max: {
string: 'Please input no more than {{config}} characters.',
number: 'The number could not bigger than {{config}}',
array: 'Please select no more than {{config}} items',
date: 'Please select a date before {{config | toLocaleDateString("yyyy-MM-dd")}}.',
email: 'Please input no more than {{config}} characters.',
tel: 'Please input no more than {{config}} characters.',
url: 'Please input no more than {{config}} characters.'
},
len: {
string: 'Please input {{config}} characters.',
number: 'The length should equal {{config}}',
array: 'Please select {{config}} items',
date: 'Please select {{config | toLocaleDateString("yyyy-MM-dd")}}.',
email: 'Please input {{config}} characters.',
tel: 'Please input {{config}} characters.',
url: 'Please input {{config}} characters.'
},
pattern: 'The input don"t match pattern.',
custom: 'Invalid.',
notWhitespace: 'Whitespace is invalid.'
}
}