-
Notifications
You must be signed in to change notification settings - Fork 22
/
messages.js
137 lines (135 loc) · 3.72 KB
/
messages.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import { defineMessages } from './redux-form-validators'
let messages = defineMessages({
absence: {
id: 'form.errors.absence',
defaultMessage: 'must be blank'
},
acceptance: {
id: 'form.errors.acceptance',
defaultMessage: 'must be accepted'
},
confirmation: {
id: 'form.errors.confirmation',
defaultMessage: "doesn't match `{fieldLabel}`"
},
dateFormat: {
id: 'form.errors.dateFormat',
defaultMessage: 'expected format: {format}'
},
dateInvalid: {
id: 'form.errors.dateInvalid',
defaultMessage: 'is not a valid date'
},
dateRange: {
id: 'form.errors.dateRange',
defaultMessage: 'shoud be {op} {date}'
},
email: {
id: 'form.errors.email',
defaultMessage: 'is not a valid email'
},
emailDomain: {
id: 'form.errors.emailDomain',
defaultMessage: '{domain} is not an accepted domain'
},
equalTo: {
id: 'form.errors.equalTo',
defaultMessage: 'must be equal to {count, number}'
},
even: {
id: 'form.errors.even',
defaultMessage: 'must be even'
},
exclusion: {
id: 'form.errors.exclusion',
defaultMessage: 'is reserved'
},
file: {
id: 'form.errors.file',
defaultMessage: 'is not a file'
},
fileAccept: {
id: 'form.errors.fileAccept',
defaultMessage: 'invalid file {count, plural, one {type} other {types ({count})}}'
},
fileTooBig: {
id: 'form.errors.fileTooBig',
defaultMessage:
'{count, plural, one {is} other {{count} files are}} too big (maximum is {count, plural, one {{size}} other {{size} each}})'
},
fileTooFew: {
id: 'form.errors.fileTooFew',
defaultMessage: 'invalid number of files (minimum is {count})'
},
fileTooMany: {
id: 'form.errors.fileTooMany',
defaultMessage: 'invalid number of files (maximum is {count})'
},
fileTooSmall: {
id: 'form.errors.fileTooSmall',
defaultMessage:
'{count, plural, one {is} other {{count} files are}} too small (minimum is {count, plural, one {{size}} other {{size} each}})'
},
greaterThan: {
id: 'form.errors.greaterThan',
defaultMessage: 'must be greater than {count, number}'
},
greaterThanOrEqualTo: {
id: 'form.errors.greaterThanOrEqualTo',
defaultMessage: 'must be greater than or equal to {count, number}'
},
inclusion: {
id: 'form.errors.inclusion',
defaultMessage: 'is not included in the list'
},
invalid: {
id: 'form.errors.invalid',
defaultMessage: 'is invalid'
},
lessThan: {
id: 'form.errors.lessThan',
defaultMessage: 'must be less than {count, number}'
},
lessThanOrEqualTo: {
id: 'form.errors.lessThanOrEqualTo',
defaultMessage: 'must be less than or equal to {count, number}'
},
notAnInteger: {
id: 'form.errors.notAnInteger',
defaultMessage: 'is not an integer'
},
notANumber: {
id: 'form.errors.notANumber',
defaultMessage: 'is not a number'
},
odd: {
id: 'form.errors.odd',
defaultMessage: 'must be odd'
},
otherThan: {
id: 'form.errors.otherThan',
defaultMessage: 'must be other than {count, number}'
},
presence: {
id: 'form.errors.presence',
defaultMessage: 'is required'
},
tooLong: {
id: 'form.errors.tooLong',
defaultMessage: 'is too long (maximum is {count, number} {count, plural, one {character} other {characters}})'
},
tooShort: {
id: 'form.errors.tooShort',
defaultMessage: 'is too short (minimum is {count, number} {count, plural, one {character} other {characters}})'
},
url: {
id: 'form.errors.url',
defaultMessage: 'is not a valid URL'
},
wrongLength: {
id: 'form.errors.wrongLength',
defaultMessage:
'is the wrong length (should be {count, number} {count, plural, one {character} other {characters}})'
}
})
export default messages