Repository navigation
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Or Enhances
Completes the Turkish (
tr) translations so they cover the same tags asen, 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.gowith the same registration and translation functions; only the message text is Turkish.Fixed:
gtecsfieldsaid "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/gtefortime.Timetranslated "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.mimetypewas written without Turkish characters (gecerli ... turu olmalidir).mac,datauri,latitudeandlongitudesaid "must contain" (içermelidir). They now say "must be" (olmalıdır), like the other format checks.oneofused 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.hexadecimalwas missing the noun (onaltılık→onaltılık sayı).This also covers
alphaunicodefrom #1159.Tests: the existing expectations in
tr_test.goare updated, and a newTestAdditionalTranslationscovers every added tag and checks that each produces exactly one error.go test -race ./translations/...passes andgolangci-lint runreports 0 issues.Make sure that you've checked the boxes below before you submit PR:
This PR was prepared with AI assistance (Claude Code, Claude Opus 5.5) and reviewed by me.
🤖 Generated with Claude Code