Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Uzbek language #163

Merged
merged 4 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/with-next-i18next/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
"ru",
"ro",
"uk-UA",
"uz",
],
},
localePath: path.resolve("./public/locales"),
Expand Down
1 change: 1 addition & 0 deletions examples/with-next-i18next/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default function HookForm() {
<option value="pl">polski</option>
<option value="ru">Русский</option>
<option value="uk-UA">Українська</option>
<option value="uz">O‘zbekcha</option>
<option value="ro">Română</option>
<option value="tr">Türkçe</option>
<option value="zh-CN">简体中文</option>
Expand Down
7 changes: 7 additions & 0 deletions examples/with-next-i18next/public/locales/uz/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"username": "Foydalanuvchining ismi",
"username_placeholder": "John Doe",
"email": "Email",
"favoriteNumber": "Sevimli raqam",
"submit": "Yuborish"
}
112 changes: 112 additions & 0 deletions examples/with-next-i18next/public/locales/uz/zod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"errors": {
"invalid_type": "Kutilayotgan tur - {{expected}}, qabul qilingan - {{received}}",
"invalid_type_received_undefined": "Majburiy maydon",
"invalid_literal": "Noto'g'ri so'zma-so'z qiymat, kutilmoqda {{expected}}",
"unrecognized_keys": "Obyektdagi kalit(lar) noto'g'ri: {{- keys}}",
"invalid_union": "Kesishma natijalarini birlashtirib bo'lmaydi",
"invalid_union_discriminator": "Diskriminator qiymati noto'g'ri. {{-options}} kutilmoqda",
"invalid_enum_value": "Enum qiymati noto'g'ri. Kutilayotgan {{-options}}, qabul qilingan '{{received}}'",
"invalid_arguments": "Funksiya argumentlari noto'g'ri",
"invalid_return_type": "Funktsiyani qaytarish turi noto'g'ri",
"invalid_date": "Sana noto'g'ri",
"custom": "Noto'g'ri kiritildi",
"invalid_intersection_types": "Kesishma natijalarini birlashtirib bo'lmaydi",
"not_multiple_of": "Son {{multipleOf}} ga karrali bo'lishi kerak",
"not_finite": "Son chekli bo'lishi kerak",
"invalid_string": {
"email": "Noto'g'ri {{validation}}",
"url": "Noto'g'ri {{validation}}",
"uuid": "Noto'g'ri {{validation}}",
"cuid": "Noto'g'ri {{validation}}",
"regex": "Noto'g'ri",
"datetime": "Noto'g'ri {{validation}}",
"startsWith": "Noto'g'ri kiritildi: \"{{startsWith}}\" bilan boshlanishi kerak",
"endsWith": "Noto'g'ri kiritildi: \"{{endsWith}}\" bilan tugashi kerak"
},
"too_small": {
"array": {
"exact": "Massivda aynan {{minimum}} ta element(lar) bo'lishi kerak",
"inclusive": "Massivda kamida {{minimum}} ta element(lar) bo'lishi kerak",
"not_inclusive": "Massivda {{minimum}} ta dan ortiq element(lar) bo'lishi kerak"
},
"string": {
"exact": "Satr aniq {{minimum}} ta belgidan iborat bo'lishi kerak",
"inclusive": "Satr kamida {{minimum}} belgidan iborat bo'lishi kerak",
"not_inclusive": "Satr {{minimum}} dan ortiq belgidan iborat bo'lishi kerak"
},
"number": {
"exact": "Son aynan {{minimum}} bo'lishi kerak",
"inclusive": "Son {{minimum}} dan katta yoki unga teng bo'lishi kerak",
"not_inclusive": "Son {{minimum}} dan katta bo'lishi kerak"
},
"set": {
"exact": "Noto'g'ri kiritildi",
"inclusive": "Noto'g'ri kiritildi",
"not_inclusive": "Noto'g'ri kiritildi"
},
"date": {
"exact": "Sana aynan {{- minimum, sana vaqti}} bo'lishi kerak",
"inclusive": "Sana {{- minimum, datetime}} dan katta yoki unga teng bo'lishi kerak",
"not_inclusive": "Sana {{- minimum, datetime}} dan katta bo'lishi kerak"
}
},
"too_big": {
"array": {
"exact": "Massivda aynan {{maximum}} ta element(lar) bo'lishi kerak",
"inclusive": "Massiv {{maximum}} ta elementdan oshmasligi kerak",
"not_inclusive": "Massiv {{maximum}} ta elementdan kam bo'lishi kerak"
},
"string": {
"exact": "Satr aynan {{maximum}} ta belgidan iborat bo'lishi kerak",
"inclusive": "Satrda ko'pi bilan {{maximum}} ta belgi bo'lishi kerak",
"not_inclusive": "Satr {{maximum}} ta belgidan oshmasligi kerak"
},
"number": {
"exact": "Son aynan {{maximum}} bo'lishi kerak",
"inclusive": "Son {{maximum}} dan kichik yoki unga teng bo'lishi kerak",
"not_inclusive": "Son {{maximum}} dan kichik bo'lishi kerak"
},
"set": {
"exact": "Noto'g'ri kiritildi",
"inclusive": "Noto'g'ri kiritildi",
"not_inclusive": "Noto'g'ri kiritildi"
},
"date": {
"exact": "Sana aynan {{- maximum, datetime}} bo'lishi kerak",
"inclusive": "Sana {{- maximum, datetime}} dan kichik yoki unga teng bo'lishi kerak",
"not_inclusive": "Sana {{- maximum, datetime}} dan kichik bo'lishi kerak"
}
}
},
"validations": {
"email": "e-mail",
"url": "URL",
"uuid": "UUID",
"cuid": "CUID",
"regex": "muntazam ifoda",
"datetime": "sana va vaqt"
},
"types": {
"function": "funksiya",
"number": "son",
"string": "satr",
"nan": "NaN",
"integer": "butun son",
"float": "suzuvchi nuqtali son",
"boolean": "mantiqiy qiymat",
"date": "sana",
"bigint": "bigint",
"undefined": "undefined",
"symbol": "belgi",
"null": "null",
"array": "massiv",
"object": "obyekt",
"unknown": "unknown",
"promise": "promise",
"void": "void",
"never": "never",
"map": "xesh jadvali",
"set": "to'plam"
}
}
112 changes: 112 additions & 0 deletions packages/core/locales/uz/zod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"errors": {
"invalid_type": "Kutilayotgan tur - {{expected}}, qabul qilingan - {{received}}",
"invalid_type_received_undefined": "Majburiy maydon",
"invalid_literal": "Noto'g'ri so'zma-so'z qiymat, kutilmoqda {{expected}}",
"unrecognized_keys": "Obyektdagi kalit(lar) noto'g'ri: {{- keys}}",
"invalid_union": "Kesishma natijalarini birlashtirib bo'lmaydi",
"invalid_union_discriminator": "Diskriminator qiymati noto'g'ri. {{-options}} kutilmoqda",
"invalid_enum_value": "Enum qiymati noto'g'ri. Kutilayotgan {{-options}}, qabul qilingan '{{received}}'",
"invalid_arguments": "Funksiya argumentlari noto'g'ri",
"invalid_return_type": "Funktsiyani qaytarish turi noto'g'ri",
"invalid_date": "Sana noto'g'ri",
"custom": "Noto'g'ri kiritildi",
"invalid_intersection_types": "Kesishma natijalarini birlashtirib bo'lmaydi",
"not_multiple_of": "Son {{multipleOf}} ga karrali bo'lishi kerak",
"not_finite": "Son chekli bo'lishi kerak",
"invalid_string": {
"email": "Noto'g'ri {{validation}}",
"url": "Noto'g'ri {{validation}}",
"uuid": "Noto'g'ri {{validation}}",
"cuid": "Noto'g'ri {{validation}}",
"regex": "Noto'g'ri",
"datetime": "Noto'g'ri {{validation}}",
"startsWith": "Noto'g'ri kiritildi: \"{{startsWith}}\" bilan boshlanishi kerak",
"endsWith": "Noto'g'ri kiritildi: \"{{endsWith}}\" bilan tugashi kerak"
},
"too_small": {
"array": {
"exact": "Massivda aynan {{minimum}} ta element(lar) bo'lishi kerak",
"inclusive": "Massivda kamida {{minimum}} ta element(lar) bo'lishi kerak",
"not_inclusive": "Massivda {{minimum}} ta dan ortiq element(lar) bo'lishi kerak"
},
"string": {
"exact": "Satr aniq {{minimum}} ta belgidan iborat bo'lishi kerak",
"inclusive": "Satr kamida {{minimum}} belgidan iborat bo'lishi kerak",
"not_inclusive": "Satr {{minimum}} dan ortiq belgidan iborat bo'lishi kerak"
},
"number": {
"exact": "Son aynan {{minimum}} bo'lishi kerak",
"inclusive": "Son {{minimum}} dan katta yoki unga teng bo'lishi kerak",
"not_inclusive": "Son {{minimum}} dan katta bo'lishi kerak"
},
"set": {
"exact": "Noto'g'ri kiritildi",
"inclusive": "Noto'g'ri kiritildi",
"not_inclusive": "Noto'g'ri kiritildi"
},
"date": {
"exact": "Sana aynan {{- minimum, sana vaqti}} bo'lishi kerak",
"inclusive": "Sana {{- minimum, datetime}} dan katta yoki unga teng bo'lishi kerak",
"not_inclusive": "Sana {{- minimum, datetime}} dan katta bo'lishi kerak"
}
},
"too_big": {
"array": {
"exact": "Massivda aynan {{maximum}} ta element(lar) bo'lishi kerak",
"inclusive": "Massiv {{maximum}} ta elementdan oshmasligi kerak",
"not_inclusive": "Massiv {{maximum}} ta elementdan kam bo'lishi kerak"
},
"string": {
"exact": "Satr aynan {{maximum}} ta belgidan iborat bo'lishi kerak",
"inclusive": "Satrda ko'pi bilan {{maximum}} ta belgi bo'lishi kerak",
"not_inclusive": "Satr {{maximum}} ta belgidan oshmasligi kerak"
},
"number": {
"exact": "Son aynan {{maximum}} bo'lishi kerak",
"inclusive": "Son {{maximum}} dan kichik yoki unga teng bo'lishi kerak",
"not_inclusive": "Son {{maximum}} dan kichik bo'lishi kerak"
},
"set": {
"exact": "Noto'g'ri kiritildi",
"inclusive": "Noto'g'ri kiritildi",
"not_inclusive": "Noto'g'ri kiritildi"
},
"date": {
"exact": "Sana aynan {{- maximum, datetime}} bo'lishi kerak",
"inclusive": "Sana {{- maximum, datetime}} dan kichik yoki unga teng bo'lishi kerak",
"not_inclusive": "Sana {{- maximum, datetime}} dan kichik bo'lishi kerak"
}
}
},
"validations": {
"email": "e-mail",
"url": "URL",
"uuid": "UUID",
"cuid": "CUID",
"regex": "muntazam ifoda",
"datetime": "sana va vaqt"
},
"types": {
"function": "funksiya",
"number": "son",
"string": "satr",
"nan": "NaN",
"integer": "butun son",
"float": "suzuvchi nuqtali son",
"boolean": "mantiqiy qiymat",
"date": "sana",
"bigint": "bigint",
"undefined": "undefined",
"symbol": "belgi",
"null": "null",
"array": "massiv",
"object": "obyekt",
"unknown": "unknown",
"promise": "promise",
"void": "void",
"never": "never",
"map": "xesh jadvali",
"set": "to'plam"
}
}
Loading