Copy default yup locale info into rails locale
This commit is contained in:
parent
1f40efbc13
commit
f15a86ace3
1 changed files with 41 additions and 0 deletions
41
config/locales/yup.en.yml
Normal file
41
config/locales/yup.en.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
en:
|
||||
yup:
|
||||
mixed:
|
||||
default: "%{path} is invalid"
|
||||
required: "%{path} is a required field"
|
||||
oneOf: "%{path} must be one of the following values: %{values}"
|
||||
notOneOf: "%{path} must not be one of the following values: %{values}"
|
||||
defined: "%{path} must be defined"
|
||||
string:
|
||||
length: "%{path} must be exactly %{length} characters"
|
||||
min: "%{path} must be at least %{min} characters"
|
||||
max: "%{path} must be at most %{max} characters"
|
||||
matches: "%{path} must match the following: \"%{regex}\""
|
||||
email: "%{path} must be a valid email"
|
||||
url: "%{path} must be a valid URL"
|
||||
uuid: "%{path} must be a valid UUID"
|
||||
trim: "%{path} must be a trimmed string"
|
||||
lowercase: "%{path} must be a lowercase string"
|
||||
uppercase: "%{path} must be a upper case string"
|
||||
number:
|
||||
min: "%{path} must be greater than or equal to %{min}"
|
||||
max: "%{path} must be less than or equal to %{max}"
|
||||
lessThan: "%{path} must be less than %{less}"
|
||||
moreThan: "%{path} must be greater than %{more}"
|
||||
notEqual: "%{path} must be not equal to %{notEqual}"
|
||||
positive: "%{path} must be a positive number"
|
||||
negative: "%{path} must be a negative number"
|
||||
integer: "%{path} must be an integer"
|
||||
date:
|
||||
min: "%{path} field must be later than %{min}"
|
||||
max: "%{path} field must be at earlier than %{max}"
|
||||
object:
|
||||
noUnknown: "%{path} field has unspecified keys: %{unknown}"
|
||||
array:
|
||||
min: "%{path} field must have at least %{min} items"
|
||||
max: "%{path} field must have less than or equal to %{max} items"
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue