Skip to content

Commit

Permalink
Merge pull request #195 from Inshiku-Han/main
Browse files Browse the repository at this point in the history
feat: add null validation
  • Loading branch information
aiji42 authored Jan 26, 2024
2 parents 34df062 + d1aee6c commit 50f65c8
Show file tree
Hide file tree
Showing 59 changed files with 278 additions and 203 deletions.
3 changes: 2 additions & 1 deletion packages/core/locales/ar/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "المتوقع {{expected}}، المستلم {{received}}",
"invalid_type_received_undefined": "مطلوب",
"invalid_type_received_null": "مطلوب",
"invalid_literal": "قيمة حرفية غير صالحة، المتوقع {{expected}}",
"unrecognized_keys": "عنصر (عناصر) غير معروف في الكائن: {{- keys}}",
"invalid_union": "مدخل غير صالح",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "ماب",
"set": "مجموعة"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/bg/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Очаквано - {{expected}}, получено - {{received}}",
"invalid_type_received_undefined": "Задължително поле",
"invalid_type_received_null": "Задължително поле",
"invalid_literal": "Невалиден литерал, очаквано {{expected}}",
"unrecognized_keys": "Неразпознат(и) ключ(ове) в обекта: {{- keys}}",
"invalid_union": "Невалидно обединение",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "хеш таблица",
"set": "множество"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/cs/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Typ vstupu musí být {{expected}}, ale byl obdržen typ {{received}}",
"invalid_type_received_undefined": "Povinné",
"invalid_type_received_null": "Povinné",
"invalid_literal": "Neplatná doslovná hodnota, očekává se {{expected}}",
"unrecognized_keys": "Nerozpoznané klíče v objektu: {{- keys}}",
"invalid_union": "Neplatný vstup",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/de/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "{{expected}} erwartet, {{received}} erhalten",
"invalid_type_received_undefined": "Darf nicht leer sein",
"invalid_type_received_null": "Darf nicht leer sein",
"invalid_literal": "Ungültiger Literalwert, {{expected}} erwartet",
"unrecognized_keys": "Unbekannte Schlüssel im Objekt: {{- keys}}",
"invalid_union": "Ungültige Eingabe",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "Map",
"set": "Set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/en/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Expected {{expected}}, received {{received}}",
"invalid_type_received_undefined": "Required",
"invalid_type_received_null": "Required",
"invalid_literal": "Invalid literal value, expected {{expected}}",
"unrecognized_keys": "Unrecognized key(s) in object: {{- keys}}",
"invalid_union": "Invalid input",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/es/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Se esperaba {{expected}}, se recibió {{received}}",
"invalid_type_received_undefined": "Requerido",
"invalid_type_received_null": "Requerido",
"invalid_literal": "Valor literal inválido, se esperaba {{expected}}",
"unrecognized_keys": "Llave(s) no reconocida(s) en el objeto: {{- keys}}",
"invalid_union": "Entrada inválida",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "mapa",
"set": "conjunto"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/fa/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "نوع مورد انتظار {{expected}}, نوع دریافت شده {{received}}",
"invalid_type_received_undefined": "الزامی",
"invalid_type_received_null": "الزامی",
"invalid_literal": "مقدار دقیق نامعتبر, مورد انتظار {{expected}}",
"unrecognized_keys": "کلید(ها) شناسایی نشده در آبجکت: {{- keys}}",
"invalid_union": "مقدار ورودی نامعتبر",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "دیکشنری",
"set": "مجموعه"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/fi/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Odotettiin arvon olevan {{expected}}, saatiin {{received}}",
"invalid_type_received_undefined": "Vaadittu",
"invalid_type_received_null": "Vaadittu",
"invalid_literal": "Virheellinen merkkijono, odotettiin {{expected}}",
"unrecognized_keys": "Tuntemattomia avaimia objektissa: {{- keys}}",
"invalid_union": "Virheellinen syöte",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/fr/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Le type « {{expected}} » est attendu mais « {{received}} » a été reçu",
"invalid_type_received_undefined": "Obligatoire",
"invalid_type_received_null": "Obligatoire",
"invalid_literal": "La valeur doit être {{expected}}",
"unrecognized_keys": "Une ou plusieurs clé(s) non reconnue(s) dans l'objet : {{- keys}}",
"invalid_union": "Champ non valide",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "ensemble"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/he/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "צפוי {{expected}}, קיבלנו {{received}}",
"invalid_type_received_undefined": "נדרש",
"invalid_type_received_null": "נדרש",
"invalid_literal": "ערך לא תקין, צפוי {{expected}}",
"unrecognized_keys": "מפתחות לא מזוהים באובייקט: {{- keys}}",
"invalid_union": "קלט לא תקין",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "מפה",
"set": "סט"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/hr-HR/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Očekivano: {{expected}}, uneseno: {{received}}",
"invalid_type_received_undefined": "Obvezno polje",
"invalid_type_received_null": "Obvezno polje",
"invalid_literal": "Neispravna literalna vrijednost, očekivano {{expected}}",
"unrecognized_keys": "Neprepoznat(i) ključ(evi) u objektu: {{- keys}}",
"invalid_union": "Neispravan unos",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "mapa",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/id/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Nilai seharusnya memiliki tipe data {{expected}}, diterima {{received}}",
"invalid_type_received_undefined": "Wajib diisi",
"invalid_type_received_null": "Wajib diisi",
"invalid_literal": "Nilai literal tidak valid, seharusnya {{expected}}",
"unrecognized_keys": "Key {{- keys}} tidak valid pada object",
"invalid_union": "Input tidak valid",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/is/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Bjóst við {{expected}}, fékk {{received}}",
"invalid_type_received_undefined": "Nauðsynlegt",
"invalid_type_received_null": "Nauðsynlegt",
"invalid_literal": "Ógilt bókstaflegt gildi, bjóst við {{expected}}",
"unrecognized_keys": "Óþekktir lyklar í hlut: {{- keys}}",
"invalid_union": "Ógilt inntak",
Expand Down Expand Up @@ -101,4 +102,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/it/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Atteso {{expected}}, ricevuto {{received}}",
"invalid_type_received_undefined": "Obbligatorio",
"invalid_type_received_null": "Obbligatorio",
"invalid_literal": "Valore literal non valido, atteso {{expected}}",
"unrecognized_keys": "Campo/i non riconosciuto nell'oggetto: {{- keys}}",
"invalid_union": "Input non valido",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/ja/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "{{expected}}での入力を期待していますが、{{received}}が入力されました。",
"invalid_type_received_undefined": "必須",
"invalid_type_received_null": "必須",
"invalid_literal": "無効なリテラル値です。{{expected}}を入力してください。",
"unrecognized_keys": "オブジェクトのキー{{- keys}}が識別できません。",
"invalid_union": "入力形式が間違っています。",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "マップ",
"set": "セット"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/ko/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "{{expected}} 입력을 기대하였지만, {{received}}이 입력되었습니다.",
"invalid_type_received_undefined": "필수 입력 값 입니다.",
"invalid_type_received_null": "필수 입력 값 입니다.",
"invalid_literal": "허용되지 않은 리터럴 값 입니다. 입력 가능한 값은 {{expected}} 입니다.",
"unrecognized_keys": "객체 키 {{- keys}} 값은 허용되지 않습니다.",
"invalid_union": "허용되지 않은 입력 값입니다.",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map 타입",
"set": "set 타입"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/lt/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Tikėtasi {{expected}}, gauta(s) {{received}}",
"invalid_type_received_undefined": "Šis laukas yra privalomas",
"invalid_type_received_null": "Šis laukas yra privalomas",
"invalid_literal": "Klaidinga literalo reikšmė, tikėtasi {{expected}}",
"unrecognized_keys": "Neatpažintas(i) raktas(ai) objekte: {{- keys}}",
"invalid_union": "Klaidinga įvestis",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "rakto-reikšmių sąrašas",
"set": "rinkinys"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/nb/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Forventet {{expected}}, mottok {{received}}",
"invalid_type_received_undefined": "Må ikke være tom",
"invalid_type_received_null": "Må ikke være tom",
"invalid_literal": "Ugyldig bokstavlig verdi, forventet {{expected}}",
"unrecognized_keys": "Ukjent nøkkel i objektet: {{- keys}}",
"invalid_union": "Ugyldig inndata",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "Map",
"set": "Set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/nl/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Ongeldig type: {{received}}. Type {{expected}} vereist",
"invalid_type_received_undefined": "Vereist",
"invalid_type_received_null": "Vereist",
"invalid_literal": "Ongeldige letterlijke waarde, vereist {{expected}}",
"unrecognized_keys": "Onbekende sleutel(s) in object: {{- keys}}",
"invalid_union": "Ongeldige invoer",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/pl/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Oczekiwano: {{expected}}, otrzymano: {{received}}",
"invalid_type_received_undefined": "Wymagane",
"invalid_type_received_null": "Wymagane",
"invalid_literal": "Niewłaściwa wartość literału, oczekiwano: {{expected}}",
"unrecognized_keys": "Nierozpoznany klucz(e) w obiekcie: {{- keys}}",
"invalid_union": "Niewłaściwa wartość",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/pt/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "O dado deve ser do tipo {{expected}}, porém foi enviado {{received}}",
"invalid_type_received_undefined": "Obrigatório",
"invalid_type_received_null": "Obrigatório",
"invalid_literal": "Valor literal inválido, era esperado {{expected}}",
"unrecognized_keys": "Chave(s) não reconhecida(s) no objeto: {{- keys}}",
"invalid_union": "Entrada inválida",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/ro/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Tipul de date așteptat era {{expected}}, s-a primit {{received}}",
"invalid_type_received_undefined": "Obligatoriu",
"invalid_type_received_null": "Obligatoriu",
"invalid_literal": "Valoare literală nevalidă, valoarea așteptată era {{expected}}",
"unrecognized_keys": "Chei/e nerecunoscută/e în obiect: {{- keys}}",
"invalid_union": "Intrare nevalidă",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "mulțime"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/ru/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Ожидался тип - {{expected}}, получено - {{received}}",
"invalid_type_received_undefined": "Обязательное поле",
"invalid_type_received_null": "Обязательное поле",
"invalid_literal": "Неверное значение литерала, ожидалось {{expected}}",
"unrecognized_keys": "Неверные ключи в объекте: {{- keys}}",
"invalid_union": "Результаты пересечения не могут быть объединены",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "хеш-таблица",
"set": "множество"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/sv/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Förväntade {{expected}}, fick {{received}}",
"invalid_type_received_undefined": "Obligatoriskt",
"invalid_type_received_null": "Obligatoriskt",
"invalid_literal": "Ogiltigt literalvärde, förväntade {{expected}}",
"unrecognized_keys": "Okänd(a) nyckel(ar) i objektet: {{- keys}}",
"invalid_union": "Ogiltig inmatning",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/tr/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Beklenen {{expected}}, alınan {{received}}",
"invalid_type_received_undefined": "Zorunlu",
"invalid_type_received_null": "Zorunlu",
"invalid_literal": "Geçersiz ilkel veri, beklenen {{expected}}",
"unrecognized_keys": "Nesne içinde bilinmeyen anahtar(lar): {{- keys}}",
"invalid_union": "Geçersiz tip birleşimi",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/locales/uk-UA/zod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"errors": {
"invalid_type": "Очікувався тип {{expected}}, отримано {{received}}",
"invalid_type_received_undefined": "Обов'язковe поле",
"invalid_type_received_null": "Обов'язковe поле",
"invalid_literal": "Невірне літеральне значення, очікувалось {{expected}}",
"unrecognized_keys": "Нерозпізнані ключі в об'єкті: {{- keys}}",
"invalid_union": "Невірне введення",
Expand Down Expand Up @@ -109,4 +110,4 @@
"map": "map",
"set": "set"
}
}
}
Loading

1 comment on commit 50f65c8

@vercel
Copy link

@vercel vercel bot commented on 50f65c8 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zod-i18n – ./

zod-i18n-git-main-aiji42.vercel.app
zod-i18n-aiji42.vercel.app
zod-i18n.vercel.app

Please sign in to comment.