feat: add i18n translated form errors (#509)
This commit is contained in:
@@ -512,6 +512,31 @@ export default {
|
||||
show: "Show preview",
|
||||
hide: "Hide preview",
|
||||
},
|
||||
zod: {
|
||||
errors: {
|
||||
default: "This field is invalid",
|
||||
required: "This field is required",
|
||||
string: {
|
||||
startsWith: "This field must start with {startsWith}",
|
||||
endsWith: "This field must end with {endsWith}",
|
||||
includes: "This field must include {includes}",
|
||||
invalidEmail: "This field must be a valid email",
|
||||
},
|
||||
tooSmall: {
|
||||
string: "This field must be at least {minimum} characters long",
|
||||
number: "This field must be greater than or equal to {minimum}",
|
||||
},
|
||||
tooBig: {
|
||||
string: "This field must be at most {maximum} characters long",
|
||||
number: "This field must be less than or equal to {maximum}",
|
||||
},
|
||||
custom: {
|
||||
passwordsDoNotMatch: "Passwords do not match",
|
||||
boardAlreadyExists: "A board with this name already exists",
|
||||
// TODO: Add custom error messages
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
section: {
|
||||
category: {
|
||||
|
||||
Reference in New Issue
Block a user