mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Merge pull request #2136 from Neobii/errorFields
add english field errors
This commit is contained in:
commit
bb56715a16
1 changed files with 16 additions and 3 deletions
|
@ -136,10 +136,23 @@ addStrings('en', {
|
|||
'admin': 'Admin',
|
||||
'notifications': 'Notifications',
|
||||
|
||||
'errors.expectedType': 'Expected a field “{label}” of type {dataType}, got “{value}” instead.',
|
||||
'errors.expectedType': 'Expected type {dataType} for field “{label}”, received “{value}” instead.',
|
||||
'errors.required': 'Field “{label}” is required.',
|
||||
'errors.minString': 'Field “{label}” needs to have at least {min} characters',
|
||||
'errors.maxString': 'Field “{label}” is limited to {max} characters.',
|
||||
'errors.generic': 'Sorry, something went wrong: <code>{errorMessage}</code>.',
|
||||
'errors.generic_report': 'Sorry, something went wrong: <code>{errorMessage}</code>. <br/>An error report has been generated.',
|
||||
'errors.minNumber': 'Field “{label}” must be higher than {min}. ',
|
||||
'errors.maxNumber': 'Field “{label}” must be lower than {max}. ',
|
||||
'errors.minCount': 'There needs to be at least {count} in field “{label}”.',
|
||||
'errors.maxCount': 'Field “{label}” is only allowed {count}.',
|
||||
'errors.regEx': 'Field “{label}”: wrong formatting',
|
||||
'errors.badDate': 'Field “{label}” is not a date.',
|
||||
'errors.notAllowed': 'The value for field “{label}” is not allowed.',
|
||||
'errors.noDecimal': 'The value for field “{label}” must not be a decimal number.',
|
||||
//TODO other simple schema errors
|
||||
'errors.minNumberExclusive': '',
|
||||
'errors.maxNumberExclusive': '',
|
||||
'errors.keyNotInSchema': ''
|
||||
|
||||
});
|
Loading…
Add table
Reference in a new issue