Commit 3d65a9b
authored
Fix Japanese translation of max-items, lt-items and lte-items error (#1250)
## Fixes
In English version, max-items error message is `"{0} must contain at
maximum {1}"`.
([ref](https://github.com/go-playground/validator/blob/master/translations/en/en.go#L292))
And current Japanese translation `"{0}は最大でも{1}を含まなければなりません"` is strait
translation of English version but quite unnatural for Japanese.
We don’t usually use a sentence like `"含まなければなりません"` ("must contain") in
this context. Because it can not **"contain"** any items further. So, we
simply say `"{0}は最大でも{1}でなければなりません"` ("{0} must be at maximum {1}")
instead.
`"lt-items"` and `"lte-items"` messages have same issue as above. (if
those errors occur, it can not contain any items further as well.)
---
**Make sure that you've checked the boxes below before you submit PR:**
- [x] Tests exist or have been written that cover this particular
change.
@go-playground/validator-maintainers1 parent d3e28c4 commit 3d65a9b
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
0 commit comments