Commit f65db98
authored
feat: add translations for alphaspace and alphanumspace tags in indonesian (#1522)
This pull request adds support for two new validation tags, `alphaspace`
and `alphanumspace`, to the Indonesian translations. It also updates the
corresponding unit tests to ensure these new tags are properly validated
and translated.
**Translation additions:**
* Added Indonesian translation for the `alphaspace` validation tag,
indicating that a field may only contain alphabetic characters and
spaces.
* Added Indonesian translation for the `alphanumspace` validation tag,
indicating that a field may only contain alphanumeric characters and
spaces.
**Testing improvements:**
* Updated the `TestStringTagsTranslations` test struct and test cases to
include fields for `Alphaspace` and `Alphanumspace`, and added invalid
test values for both.
[[1]](diffhunk://#diff-e71a6006a2e0721801e0d7233ec0aa3d5f2d250e037b05bcd8373d1fad2c7d09R402-R403)
[[2]](diffhunk://#diff-e71a6006a2e0721801e0d7233ec0aa3d5f2d250e037b05bcd8373d1fad2c7d09R430-R431)
* Added expected error messages for the new validation tags to the test
assertions, ensuring the translations are correct.## Fixes Or Enhances
**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 1f5bae4 commit f65db98
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
261 | 271 | | |
262 | 272 | | |
263 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| 430 | + | |
| 431 | + | |
428 | 432 | | |
429 | 433 | | |
430 | 434 | | |
| |||
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
467 | 479 | | |
468 | 480 | | |
469 | 481 | | |
| |||
0 commit comments