-
Notifications
You must be signed in to change notification settings - Fork 10
/
strings.js
107 lines (106 loc) · 3.49 KB
/
strings.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
const strings = {
errors: {
general:
"There was a problem with your submission. Please review the fields below.",
leastOneField: "At least one field must be filled out.",
unknownError: "An unknown error occured.",
required: "This field is required.",
emailsDontmatch: "Your emails do not match.",
wrongRangeMin: "Please enter a number greater than or equal to {{min}}.",
wrongRangeMax: "Please enter a number less than or equal to {{max}}.",
wrongRangeBoth: "Please enter a number from {{min}} to {{max}}.",
pattern: {
email:
"The email address entered is invalid, please check the formatting (e.g. email@domain.com).",
phone: "This is an invalid phone number.",
default: "The format seems to be wrong.",
},
maxChar: {
front: "Need more than",
back: "characters.",
},
name: "Please complete the following fields: {{fields}}",
date: {
required: "Please complete the following fields: {{fields}}",
invalid: "Please enter a valid date.",
picker: {
invalid: "Please enter a valid date in the format ({{format}}).",
},
},
fileupload: {
exceedsSizeLimit: "File exceeds size limit. Maximum file size: {{max}}MB",
typeNotAllowed:
"The uploaded file type is not allowed. Must be one of the following: {{types}}",
},
multiFileUpload: {
exceedsSizeLimit: "{{name}} - File exceeds size limit",
typeNotAllowed:
"{{name}} - This type of file is not allowed. Must be one of the following: {{types}}",
maxFiles: "Maximum number of files reached",
},
number: {
invalid: "Please enter a valid number",
wrongRangeMin: "Please enter a number greater than or equal to {{min}}.",
wrongRangeMax: "Please enter a number less than or equal to {{max}}.",
wrongRangeBoth: "Please enter a number from {{min}} to {{max}}.",
},
url: "Please enter a valid Website URL (e.g. https://gravityforms.com).",
},
counter: "{{value}} of {{max}} max characters",
datepicker: {
days: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
],
iconText: "Select date",
screenReaderText: {
mdy: "MM slash DD slash YYYY",
dmy: "DD slash MM slash YYYY",
dmy_dash: "DD dash MM dash YYYY",
dmy_dot: "DD dot MM dot YYYY",
ymd_slash: "YYYY slash MM slash DD",
ymd_dash: "YYYY dash MM dash DD",
ymd_dot: "YYYY dot MM dot DD",
},
name: "Please complete the following fields: {{fields}}",
},
checkboxes: {
selectAll: "Select All",
deselectAll: "Deselect All",
},
radio: {
otherChoiceLabel: "Other Choice, please specify",
// add the field ID, i.e., otherChoice_3, to override it for the specific field only.
otherChoice: "Other",
},
honeypot:
"This field is for validation purposes and should be left unchanged.",
multiselect: {
placeholder: "Click to select...",
},
fileupload: {
acceptedFiles: "Accepted file types: {{types}}",
maxFileSize: "Max. file size: {{max}}",
maxFiles: "Max. files: {{max}}",
deleteFile: "Delete this file: {{name}}",
multiFileUpload: {
drop: "Drop files here or ",
select: "Select files",
},
},
loading: "Loading...",
submit: "Submit",
step: "Step {{step}} of {{total}}",
};
export default strings;