37 lines
1.2 KiB
37 lines
1.2 KiB
import { i18n } from 'boot/i18n'
|
|
export const errorMessages = {
|
|
integer () {
|
|
return i18n.global.t('Only none decimal numbers are allowed')
|
|
},
|
|
numeric () {
|
|
return i18n.global.t('Input must be a valid number')
|
|
},
|
|
required () {
|
|
return i18n.global.t('Input is required')
|
|
},
|
|
passwordDigits () {
|
|
return i18n.global.t('Password is not strong enough, add more digits')
|
|
},
|
|
passwordLowercase () {
|
|
return i18n.global.t('Password is not strong enough, add more lowercase letters')
|
|
},
|
|
passwordMaxLength (param) {
|
|
return i18n.global.t('Password must be at least {max} characters long', param)
|
|
},
|
|
passwordMinLength (param) {
|
|
return i18n.global.t('Password must be at least {min} characters long', param)
|
|
},
|
|
passwordUppercase () {
|
|
return i18n.global.t('Password is not strong enough, add more uppercase letters')
|
|
},
|
|
passwordChars () {
|
|
return i18n.global.t('Password is not strong enough, add more special characters')
|
|
},
|
|
passwordStrength () {
|
|
return i18n.global.t('Password is considered weak')
|
|
},
|
|
sameAsPassword () {
|
|
return i18n.global.t('Passwords must be equal')
|
|
}
|
|
}
|