1
1
2
2
import bootstrap from '@formio/bootstrap' ;
3
+ import { coreEnTranslation } from '@formio/core' ;
4
+ import _ from 'lodash' ;
3
5
4
6
export default {
5
7
...( bootstrap ?. translations ?. en || { } ) ,
8
+ // these keys contain a '-' to strip whitespace in core
9
+ // which is not handled correctly in the renderer, so we redefine them
10
+ ..._ . omit ( coreEnTranslation , [ 'maxDate' , 'minDate' ] ) ,
6
11
unsavedRowsError : 'Please save all rows before proceeding.' ,
7
12
invalidRowsError : 'Please correct invalid rows before proceeding.' ,
8
13
invalidRowError : 'Invalid row. Please correct it or delete.' ,
9
14
invalidOption : '{{field}} is an invalid value.' ,
10
15
invalidDay : '{{field}} is not a valid day.' ,
16
+ alertMessageWithLabel : '{{label}}: {{message}}' ,
17
+ alertMessage : '{{message}}' ,
11
18
complete : 'Submission Complete' ,
12
19
error : 'Please fix the following errors before submitting.' ,
13
20
errorListHotkey : 'Press Ctrl + Alt + X to go back to the error list.' ,
14
21
errorsListNavigationMessage : 'Click to navigate to the field with following error.' ,
15
22
submitError : 'Please check the form and correct all errors before submitting.' ,
16
- required : '{{field}} is required' ,
17
- unique : '{{field}} must be unique' ,
18
- array : '{{field}} must be an array' ,
19
- array_nonempty : '{{field}} must be a non-empty array' , // eslint-disable-line camelcase
20
- nonarray : '{{field}} must not be an array' ,
21
- select : '{{field}} contains an invalid selection' ,
22
- pattern : '{{field}} does not match the pattern {{pattern}}' ,
23
- minLength : '{{field}} must have at least {{length}} characters.' ,
24
- maxLength : '{{field}} must have no more than {{length}} characters.' ,
25
- minWords : '{{field}} must have at least {{length}} words.' ,
26
- maxWords : '{{field}} must have no more than {{length}} words.' ,
27
- min : '{{field}} cannot be less than {{min}}.' ,
28
- max : '{{field}} cannot be greater than {{max}}.' ,
29
23
maxDate : '{{field}} should not contain date after {{maxDate}}' ,
30
24
minDate : '{{field}} should not contain date before {{minDate}}' ,
31
- maxYear : '{{field}} should not contain year greater than {{maxYear}}' ,
32
- minYear : '{{field}} should not contain year less than {{minYear}}' ,
33
- minSelectedCount : 'You must select at least {{minCount}} items' ,
34
- maxSelectedCount : 'You may only select up to {{maxCount}} items' ,
35
- invalid_email : '{{field}} must be a valid email.' , // eslint-disable-line camelcase
36
- invalid_url : '{{field}} must be a valid url.' , // eslint-disable-line camelcase
37
- invalid_regex : '{{field}} does not match the pattern {{regex}}.' , // eslint-disable-line camelcase
38
- invalid_date : '{{field}} is not a valid date.' , // eslint-disable-line camelcase
39
- invalid_day : '{{field}} is not a valid day.' , // eslint-disable-line camelcase
40
- invalidValueProperty : 'Invalid Value Property' ,
41
- mask : '{{field}} does not match the mask.' ,
42
- valueIsNotAvailable : '{{ field }} is an invalid value.' ,
43
25
stripe : '{{stripe}}' ,
44
- month : 'Month' ,
45
- day : 'Day' ,
46
- year : 'Year' ,
47
- january : 'January' ,
48
- february : 'February' ,
49
- march : 'March' ,
50
- april : 'April' ,
51
- may : 'May' ,
52
- june : 'June' ,
53
- july : 'July' ,
54
- august : 'August' ,
55
- september : 'September' ,
56
- october : 'October' ,
57
- november : 'November' ,
58
- december : 'December' ,
59
26
next : 'Next' ,
60
27
previous : 'Previous' ,
61
28
cancel : 'Cancel' ,
@@ -76,10 +43,7 @@ export default {
76
43
apiKey : 'API Key is not unique: {{key}}' ,
77
44
typeRemaining : '{{ remaining }} {{ type }} remaining.' ,
78
45
typeCount : '{{ count }} {{ type }}' ,
79
- requiredDayField : '{{ field }} is required' ,
80
46
requiredDayEmpty : '{{ field }} is required' ,
81
- requiredMonthField : '{{ field }} is required' ,
82
- requiredYearField : '{{ field }} is required' ,
83
47
formNotReady : 'Form not ready. Use form.ready promise' ,
84
48
noFormElement : 'No DOM element for form.' ,
85
49
notUniqueKey : 'API Key is not unique' ,
@@ -139,8 +103,6 @@ export default {
139
103
words : 'words' ,
140
104
characters : 'characters' ,
141
105
addAnother : 'Add Another' ,
142
- yes : 'Yes' ,
143
- no : 'No' ,
144
106
wantToClearData : 'Do you want to clear data?' ,
145
107
yesDelete :'Yes, delete it' ,
146
108
waitFileProcessing : 'Processing file. Please wait...' ,
@@ -157,8 +119,6 @@ export default {
157
119
maxSelectItems : 'You may only select up to {{maxCount}} items' ,
158
120
minSelectItems : 'You must select at least {{minCount}} items' ,
159
121
clickToSign : 'Click to Sign' ,
160
- surveyQuestion : 'Question' ,
161
- surveyQuestionValue : 'Value' ,
162
122
success : 'Success' ,
163
123
noResultsFound : 'No results found' ,
164
124
noChoices : 'No choices to choose from' ,
0 commit comments