mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-14 19:42:16 +01:00
♻️ Address pull request feedback
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
"endsWith": "This field must end with {{endsWith}}",
|
||||
"includes": "This field must include {{includes}}"
|
||||
},
|
||||
"too_small": {
|
||||
"tooSmall": {
|
||||
"string": "This field must be at least {{minimum}} characters long",
|
||||
"number": "This field must be greater than or equal to {{minimum}}"
|
||||
},
|
||||
"too_big": {
|
||||
"tooBig": {
|
||||
"string": "This field must be at most {{maximum}} characters long",
|
||||
"number": "This field must be less than or equal to {{maximum}}"
|
||||
},
|
||||
|
||||
@@ -56,7 +56,7 @@ const handleTooSmallError = (issue: ZodTooSmallIssue, ctx: ErrorMapCtx) => {
|
||||
}
|
||||
|
||||
return {
|
||||
key: `errors.too_small.${issue.type}`,
|
||||
key: `errors.tooSmall.${issue.type}`,
|
||||
params: {
|
||||
minimum: issue.minimum,
|
||||
count: issue.minimum,
|
||||
@@ -72,7 +72,7 @@ const handleTooBigError = (issue: ZodTooBigIssue, ctx: ErrorMapCtx) => {
|
||||
}
|
||||
|
||||
return {
|
||||
key: `errors.too_big.${issue.type}`,
|
||||
key: `errors.tooBig.${issue.type}`,
|
||||
params: {
|
||||
maximum: issue.maximum,
|
||||
count: issue.maximum,
|
||||
|
||||
Reference in New Issue
Block a user