Skip to content

Commit ccc1514

Browse files
colinhacksColin McDonnell
andauthored
fix(locales): add the credit_card key to the seven locales missing it (#6424)
#5931 backfilled credit_card across every locale that existed when it landed, so the only gaps are locales added after it: bn, ckb, hi, kn, nn, sk and tk. The fall-through prints the raw snake_case key, which is the one FormatDictionary miss that reads as broken rather than merely untranslated. Each translation reuses the word the same file already uses for e164, so it matches that locale's own vocabulary rather than a sibling's. Co-authored-by: Colin McDonnell <colin@colinhacks.com>
1 parent 73bacbb commit ccc1514

7 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/zod/src/v4/locales/bn.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const error: () => errors.$ZodErrorMap = () => {
4545
base64url: "base64url-এনকোডেড স্ট্রিং",
4646
json_string: "JSON স্ট্রিং",
4747
e164: "E.164 নম্বর",
48+
credit_card: "ক্রেডিট কার্ড নম্বর",
4849
jwt: "JWT",
4950
template_literal: "ইনপুট",
5051
};

‎packages/zod/src/v4/locales/ckb.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const error: () => errors.$ZodErrorMap = () => {
4545
base64url: "دەقی base64url",
4646
json_string: "دەقی JSON",
4747
e164: "ژمارەی E.164",
48+
credit_card: "ژمارەی کارتی کرێدیت",
4849
jwt: "JWT",
4950
template_literal: "تێکردە",
5051
};

‎packages/zod/src/v4/locales/hi.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const error: () => errors.$ZodErrorMap = () => {
4545
base64url: "Base64URL-एन्कोडेड स्ट्रिंग",
4646
json_string: "JSON स्ट्रिंग",
4747
e164: "E.164 संख्या",
48+
credit_card: "क्रेडिट कार्ड संख्या",
4849
jwt: "JWT",
4950
template_literal: "इनपुट",
5051
};

‎packages/zod/src/v4/locales/kn.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const error: () => errors.$ZodErrorMap = () => {
4545
base64url: "base64url-encodedಸ್ಟ್ರಿಂಗ್",
4646
json_string: "JSONಸ್ಟ್ರಿಂಗ್",
4747
e164: "E.164 ಸಂಖ್ಯೆ",
48+
credit_card: "ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",
4849
jwt: "JWT",
4950
template_literal: "ಇನ್ಪುಟ್",
5051
};

‎packages/zod/src/v4/locales/nn.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const error: () => errors.$ZodErrorMap = () => {
4343
base64url: "base64url-enkoda streng",
4444
json_string: "JSON-streng",
4545
e164: "E.164-nummer",
46+
credit_card: "kredittkortnummer",
4647
jwt: "JWT",
4748
template_literal: "input",
4849
};

‎packages/zod/src/v4/locales/sk.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const error: () => errors.$ZodErrorMap = () => {
4545
base64url: "reťazec zakódovaný vo formáte base64url",
4646
json_string: "reťazec vo formáte JSON",
4747
e164: "číslo E.164",
48+
credit_card: "číslo kreditnej karty",
4849
jwt: "JWT",
4950
template_literal: "vstup",
5051
};

‎packages/zod/src/v4/locales/tk.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const error: () => errors.$ZodErrorMap = () => {
4444
base64url: "base64url bilen şifrlenen setir",
4545
json_string: "JSON setiri",
4646
e164: "E.164 nomeri",
47+
credit_card: "kredit kartynyň nomeri",
4748
jwt: "JWT",
4849
template_literal: "şablon",
4950
};

0 commit comments

Comments
 (0)