UNPKG

hc-awesome-validation

Version:

Validation module for redux-form based on react-intl messages.

91 lines (90 loc) 3.09 kB
export default { emptyField: { id: 'form.field.empty', defaultMessage: 'This field should not be empty' }, numberField: { id: 'form.field.number', defaultMessage: 'This field should be a number' }, notValidEmail: { id: 'form.field.invalidEmail', defaultMessage: 'Please enter correct email address' }, emptyEmail: { id: 'form.field.emptyEmail', defaultMessage: 'Email can not be empty' }, notValidPhoneNumber: { id: 'form.field.notValidPhoneNumber', defaultMessage: 'Please enter your phone number in correct format e.g. +00 00 000000' }, emptyPhoneNumber: { id: 'form.field.emptyPhoneNumber', defaultMessage: 'Phone number can not be empty.' }, unofficialWebsite: { id: 'form.field.unofficialWebsite', defaultMessage: 'Please provide a direct url to your an official hotel website.' }, notValidWebsite: { id: 'form.field.notValidWebsite', defaultMessage: 'Website address can not contain `(at)` `[at]` `@`' }, notAbsoluteUrl: { id: 'form.field.notAbsoluteUrl', defaultMessage: 'Website should start with http:// or https://' }, emptyPassword: { id: 'form.field.emptyPassword', defaultMessage: 'Password should not be empty' }, tooWeakPassword: { id: 'form.field.tooWeakPassword', defaultMessage: 'Password is too weak' }, fieldWrongLength: { id: 'form.field.fieldWrongLength', defaultMessage: 'This field value must be minimum 2 and maximum 50 characters long.' }, fieldWithNumbers: { id: 'form.field.fieldWithNumbers', defaultMessage: 'This field can not contain numbers.' }, fieldWithNumbersOnly: { id: 'form.field.fieldWithNumbersOnly', defaultMessage: 'This field can not contain numbers only.' }, firstNameEmpty: { id: 'form.field.emptyFirstName', defaultMessage: 'First name can not be empty' }, firstNameWrongLength: { id: 'form.field.firstNameWrongLength', defaultMessage: 'First name must be minimum 2 and maximum 50 characters long.' }, lastNameWrongLength: { id: 'form.field.lastNameWrongLength', defaultMessage: 'Last name must be minimum 2 and maximum 50 characters long.' }, lastNameEmpty: { id: 'form.field.emptyLastName', defaultMessage: 'Last name can not be empty' }, firstNameWithNumbers: { id: 'form.field.firstNameWithNumbers', defaultMessage: 'First name can not contain numbers.' }, lastNameWithNumbers: { id: 'form.field.lastNameWithNumbers', defaultMessage: 'Last name can not contain numbers.' }, toShortFieldValue: { id: 'form.field.toShortFieldValue', defaultMessage: 'This field must contain maximum of 10 characters.' }, wrongComment: { id: 'form.field.wrongComment', defaultMessage: 'Please write your response to the review.' } };