Skip to content

feat(translations): add timezone support for en and ja locales#1566

Merged
nodivbyzero merged 1 commit into
go-playground:masterfrom
dedyf5:feat/timezone-translations-en-ja
Apr 23, 2026
Merged

feat(translations): add timezone support for en and ja locales#1566
nodivbyzero merged 1 commit into
go-playground:masterfrom
dedyf5:feat/timezone-translations-en-ja

Conversation

@dedyf5
Copy link
Copy Markdown
Contributor

@dedyf5 dedyf5 commented Apr 23, 2026

This PR adds missing translations for the timezone validation tag in both English (en) and Japanese (ja) locales.

Previously, the timezone tag did not have a localized error message in these languages, causing it to fallback to the default tag name. This enhancement ensures a better user experience for developers using these locales.

Changes

  • Added timezone translation to translations/en/en.go
  • Added timezone translation to translations/ja/ja.go
  • Added unit tests for timezone translation in translations/en/en_test.go
  • Added unit tests for timezone translation in translations/ja/ja_test.go

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

@dedyf5 dedyf5 requested a review from a team as a code owner April 23, 2026 03:33
@nodivbyzero nodivbyzero merged commit ee971fb into go-playground:master Apr 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants