forked from formio/formio.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n.js
65 lines (65 loc) · 2.88 KB
/
i18n.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
export default {
lng: 'en',
nsSeparator: '::',
keySeparator: '.|.',
pluralSeparator: '._.',
contextSeparator: '._.',
resources: {
en: {
translation: {
alertMessage: '{{label}}: {{message}}',
complete: 'Submission Complete',
error: 'Please fix the following errors before submitting.',
submitError: 'Please check the form and correct all errors before submitting.',
required: '{{field}} is required',
unique: '{{field}} must be unique',
array: '{{field}} must be an array',
array_nonempty: '{{field}} must be a non-empty array', // eslint-disable-line camelcase
nonarray: '{{field}} must not be an array',
select: '{{field}} contains an invalid selection',
pattern: '{{field}} does not match the pattern {{pattern}}',
minLength: '{{field}} must have at least {{length}} characters.',
maxLength: '{{field}} must have no more than {{length}} characters.',
minWords: '{{field}} must have at least {{length}} words.',
maxWords: '{{field}} must have no more than {{length}} words.',
min: '{{field}} cannot be less than {{min}}.',
max: '{{field}} cannot be greater than {{max}}.',
maxDate: '{{field}} should not contain date after {{- maxDate}}',
minDate: '{{field}} should not contain date before {{- minDate}}',
maxYear: '{{field}} should not contain year greater than {{maxYear}}',
minYear: '{{field}} should not contain year less than {{minYear}}',
invalid_email: '{{field}} must be a valid email.', // eslint-disable-line camelcase
invalid_url: '{{field}} must be a valid url.', // eslint-disable-line camelcase
invalid_regex: '{{field}} does not match the pattern {{regex}}.', // eslint-disable-line camelcase
invalid_date: '{{field}} is not a valid date.', // eslint-disable-line camelcase
invalid_day: '{{field}} is not a valid day.', // eslint-disable-line camelcase
mask: '{{field}} does not match the mask.',
stripe: '{{stripe}}',
month: 'Month',
day: 'Day',
year: 'Year',
january: 'January',
february: 'February',
march: 'March',
april: 'April',
may: 'May',
june: 'June',
july: 'July',
august: 'August',
september: 'September',
october: 'October',
november: 'November',
december: 'December',
next: 'Next',
previous: 'Previous',
cancel: 'Cancel',
submit: 'Submit Form',
confirmCancel: 'Are you sure you want to cancel?',
saveDraftInstanceError: 'Cannot save draft because there is no formio instance.',
saveDraftAuthError: 'Cannot save draft unless a user is authenticated.',
restoreDraftInstanceError: 'Cannot restore draft because there is no formio instance.',
time: 'Invalid time'
}
}
}
};