Skip to content

translations(tr): add missing translations and fix wrong ones - #1702

Open
Asimmimx wants to merge 1 commit into
go-playground:masterfrom
Asimmimx:tr-complete-translations
Open

Asimmimx wants to merge 1 commit into
go-playground:masterfrom
Asimmimx:tr-complete-translations

Conversation

@Asimmimx

Copy link
Copy Markdown

Fixes Or Enhances

Completes the Turkish (tr) translations so they cover the same tags as en, and fixes several existing translations that were wrong.

Added (37 tags with no Turkish translation):
required_if, required_unless, required_with, required_with_all, required_without, required_without_all, excluded_if, excluded_unless, excluded_with, excluded_with_all, excluded_without, excluded_without_all, isdefault, alphaspace, alphanumspace, alphaunicode, alphanumunicode, e164, startswith, endswith, startsnotwith, endsnotwith, urn_rfc2141, fqdn, cron, json, jwt, lowercase, uppercase, datetime, timezone, postcode_iso3166_alpha2, postcode_iso3166_alpha2_field, boolean, cve, bcp47_strict_language_tag, validateFn.

The entries are copied from translations/en/en.go with the same registration and translation functions; only the message text is Turkish.

Fixed:

  • gtecsfield said "less than or equal to" (küçük veya ona eşit). It now says "greater than or equal to" (büyük veya ona eşit).
  • lt/lte/gt/gte for time.Time translated "the current Date & Time" as "the valid date & time" (geçerli Tarih ve Saat). They now say "the current date and time" (şu anki tarih ve saat) and use before/after.
  • mimetype was written without Turkish characters (gecerli ... turu olmalidir).
  • mac, datauri, latitude and longitude said "must contain" (içermelidir). They now say "must be" (olmalıdır), like the other format checks.
  • oneof used the suffix 'dan, which is grammatically wrong for many values (e.g. [5 63]'dan). It now reads [{1}] değerlerinden biri olmalıdır ("must be one of the values [...]"), which works for any value.
  • hexadecimal was missing the noun (onaltılık → onaltılık sayı).

This also covers alphaunicode from #1159.

Tests: the existing expectations in tr_test.go are updated, and a new TestAdditionalTranslations covers every added tag and checks that each produces exactly one error. go test -race ./translations/... passes and golangci-lint run reports 0 issues.

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

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

This PR was prepared with AI assistance (Claude Code, Claude Opus 5.5) and reviewed by me.

🤖 Generated with Claude Code

Add the 37 tags that had no Turkish translation (required_if and
friends, excluded_*, isdefault, alphaspace/alphanumspace,
alphaunicode/alphanumunicode, e164, startswith/endswith and their
negations, urn_rfc2141, fqdn, cron, json, jwt, lowercase, uppercase,
datetime, timezone, postcode_iso3166_alpha2(_field), boolean, cve,
bcp47_strict_language_tag, validateFn).

Fix existing translations:
- gtecsfield said "less than or equal" instead of "greater than or equal"
- lt/lte/gt/gte datetime translated "current" as "valid" (geçerli)
- mimetype was missing Turkish characters
- mac, datauri, latitude, longitude said "must contain" instead of "must be"
- oneof used a suffix that does not fit every value
- hexadecimal was missing a noun

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Asimmimx
Asimmimx requested a review from a team as a code owner November 24, 2026 17:48
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 72.614% (-0.04%) from 72.649% — Asimmimx:tr-complete-translations into go-playground:master

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