Merge pull request #2136 from Neobii/errorFields

add english field errors
This commit is contained in:
Sacha Greif 2018-12-10 16:00:57 +09:00 committed by GitHub
commit bb56715a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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': ''
});