-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uzbek Latin and Cyrillic languages added.
- Loading branch information
1 parent
1c7cf0f
commit 4adfb52
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
60 changes: 60 additions & 0 deletions
60
src/FluentValidation/Resources/Languages/UzbekCyrillicLanguage.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#region License | ||
|
||
// Copyright (c) .NET Foundation and contributors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// The latest version of this file can be found at https://github.com/FluentValidation/FluentValidation | ||
|
||
#endregion | ||
|
||
#pragma warning disable 618 | ||
|
||
namespace FluentValidation.Resources; | ||
|
||
internal class UzbekCyrillicLanguage { | ||
public const string Culture = "uz-Cyrl-UZ"; | ||
|
||
public static string GetTranslation(string key) => key switch { | ||
"EmailValidator" => "'{PropertyName}' яроқли электрон манзил эмас.", | ||
"GreaterThanOrEqualValidator" => "'{PropertyName}' камида '{ComparisonValue}'га тенг бўлиши шарт.", | ||
"GreaterThanValidator" => "'{PropertyName}' '{ComparisonValue}'дан катта бўлиши шарт.", | ||
"LengthValidator" => "'{PropertyName}' {MinLength}тадан {MaxLength}тагача белгидан иборат бўлиши шарт. Сиз {TotalLength}та белги киритдингиз.", | ||
"MinimumLengthValidator" => "'{PropertyName}' камида {MinLength}та белгидан иборат бўлиши шарт. Сиз {TotalLength}та белги киритдингиз.", | ||
"MaximumLengthValidator" => "'{PropertyName}' кўпи билан {MaxLength}та белгидан иборат бўлиши шарт. Сиз {TotalLength}та белги киритдингиз.", | ||
"LessThanOrEqualValidator" => "'{PropertyName}' '{ComparisonValue}'дан кам ёки тенг бўлиши шарт.", | ||
"LessThanValidator" => "'{PropertyName}' '{ComparisonValue}'дан кам бўлиши шарт.", | ||
"NotEmptyValidator" => "'{PropertyName}' бўш бўлиши мумкин эмас.", | ||
"NotEqualValidator" => "'{PropertyName}' '{ComparisonValue}'га тенг бўлиши мумкин эмас.", | ||
"NotNullValidator" => "'{PropertyName}' бўш бўлиши мумкин эмас.", | ||
"PredicateValidator" => "'{PropertyName}'нинг белгиланган шарти бажарилмади.", | ||
"AsyncPredicateValidator" => "'{PropertyName}'нинг белгиланган шарти бажарилмади.", | ||
"RegularExpressionValidator" => "'{PropertyName}' нотўғри форматда.", | ||
"EqualValidator" => "'{PropertyName}' '{ComparisonValue}'га тенг бўлиши шарт.", | ||
"ExactLengthValidator" => "'{PropertyName}' айнан {MaxLength}та белгидан иборат бўлиши шарт. Сиз {TotalLength}та белги киритдингиз.", | ||
"InclusiveBetweenValidator" => "'{PropertyName}' {From}дан {To}гача бўлиши шарт. Сиз {PropertyValue} киритдингиз.", | ||
"ExclusiveBetweenValidator" => "'{PropertyName}' {From}дан {To}гача бўлиши шарт (ушбу қийматлар ҳисобга олинмайди). Сиз {PropertyValue} киритдингиз.", | ||
"CreditCardValidator" => "'{PropertyName}' яроқли кредит карта рақами эмас.", | ||
"ScalePrecisionValidator" => "'{PropertyName}' бутун қисми жами {ExpectedPrecision}та рақамдан ошмаслиги шарт, жумладан рухсат этилган {ExpectedScale} хона каср(лар) аниқликда. Бутун қисмда {Digits}та рақам(лар) ва {ActualScale} хона каср(лар) топилди.", | ||
"EmptyValidator" => "'{PropertyName}' бўш бўлиши шарт.", | ||
"NullValidator" => "'{PropertyName}' бўш бўлиши шарт.", | ||
"EnumValidator" => "'{PropertyName}' қийматлари орасида '{PropertyValue}' ёъқ.", | ||
// Additional fallback messages used by clientside validation integration. | ||
"Length_Simple" => "'{PropertyName}' {MinLength}тадан {MaxLength}тагача белгидан иборат бўлиши шарт.", | ||
"MinimumLength_Simple" => "'{PropertyName}' камида {MinLength}та белгидан иборат бўлиши шарт.", | ||
"MaximumLength_Simple" => "'{PropertyName}' кўпи билан {MaxLength}та белгидан иборат бўлиши шарт.", | ||
"ExactLength_Simple" => "'{PropertyName}' айнан {MaxLength}та белгидан иборат бўлиши шарт.", | ||
"InclusiveBetween_Simple" => "'{PropertyName}'нинг қиймати {From}дан {To}гача бўлиши шарт.", | ||
_ => null, | ||
}; | ||
} |
60 changes: 60 additions & 0 deletions
60
src/FluentValidation/Resources/Languages/UzbekLatinLanguage.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#region License | ||
|
||
// Copyright (c) .NET Foundation and contributors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// The latest version of this file can be found at https://github.com/FluentValidation/FluentValidation | ||
|
||
#endregion | ||
|
||
#pragma warning disable 618 | ||
|
||
namespace FluentValidation.Resources; | ||
|
||
internal class UzbekLatinLanguage { | ||
public const string Culture = "uz"; | ||
|
||
public static string GetTranslation(string key) => key switch { | ||
"EmailValidator" => "'{PropertyName}' yaroqli elektron manzil emas.", | ||
"GreaterThanOrEqualValidator" => "'{PropertyName}' kamida '{ComparisonValue}'ga teng bo'lishi shart.", | ||
"GreaterThanValidator" => "'{PropertyName}' '{ComparisonValue}'dan katta bo'lishi shart.", | ||
"LengthValidator" => "'{PropertyName}' {MinLength}tadan {MaxLength}tagacha belgidan iborat bo'lishi shart. Siz {TotalLength}ta belgi kiritdingiz.", | ||
"MinimumLengthValidator" => "'{PropertyName}' kamida {MinLength}ta belgidan iborat bo'lishi shart. Siz {TotalLength}ta belgi kiritdingiz.", | ||
"MaximumLengthValidator" => "'{PropertyName}' ko'pi bilan {MaxLength}ta belgidan iborat bo'lishi shart. Siz {TotalLength}ta belgi kiritdingiz.", | ||
"LessThanOrEqualValidator" => "'{PropertyName}' '{ComparisonValue}'dan kam yoki teng bo'lishi shart.", | ||
"LessThanValidator" => "'{PropertyName}' '{ComparisonValue}'dan kam bo'lishi shart.", | ||
"NotEmptyValidator" => "'{PropertyName}' bo'sh bo'lishi mumkin emas.", | ||
"NotEqualValidator" => "'{PropertyName}' '{ComparisonValue}'ga teng bo'lishi mumkin emas.", | ||
"NotNullValidator" => "'{PropertyName}' bo'sh bo'lishi mumkin emas.", | ||
"PredicateValidator" => "'{PropertyName}'ning belgilangan sharti bajarilmadi.", | ||
"AsyncPredicateValidator" => "'{PropertyName}'ning belgilangan sharti bajarilmadi.", | ||
"RegularExpressionValidator" => "'{PropertyName}' noto'g'ri formatda.", | ||
"EqualValidator" => "'{PropertyName}' '{ComparisonValue}'ga teng bo'lishi shart.", | ||
"ExactLengthValidator" => "'{PropertyName}'ning uzunligi {MaxLength}ta belgidan iborat bo'lishi shart. Siz {TotalLength}ta belgi kiritdingiz.", | ||
"InclusiveBetweenValidator" => "'{PropertyName}' {From}dan {To}gacha bo'lishi shart. Siz {PropertyValue} kiritdingiz.", | ||
"ExclusiveBetweenValidator" => "'{PropertyName}' {From}dan {To}gacha bo'lishi shart (ushbu qiymatlar hisobga olinmaydi). Siz {PropertyValue} kiritdingiz.", | ||
"CreditCardValidator" => "'{PropertyName}' yaroqli kredit karta raqami emas.", | ||
"ScalePrecisionValidator" => "'{PropertyName}' butun qismi jami {ExpectedPrecision}ta raqamdan oshmasligi shart, jumladan ruxsat etilgan {ExpectedScale} xona kasr(lar) aniqlikda. Butun qismda {Digits}ta raqam(lar) va {ActualScale} xona kasr(lar) topildi.", | ||
"EmptyValidator" => "'{PropertyName}' bo'sh bo'lishi shart.", | ||
"NullValidator" => "'{PropertyName}' bo'sh bo'lishi shart.", | ||
"EnumValidator" => "'{PropertyName}' qiymatlari orasida '{PropertyValue}' yo'q.", | ||
// Additional fallback messages used by clientside validation integration. | ||
"Length_Simple" => "'{PropertyName}' {MinLength}tadan {MaxLength}tagacha belgidan iborat bo'lishi shart.", | ||
"MinimumLength_Simple" => "'{PropertyName}' kamida {MinLength}ta belgidan iborat bo'lishi shart.", | ||
"MaximumLength_Simple" => "'{PropertyName}' ko'pi bilan {MaxLength}ta belgidan iborat bo'lishi shart.", | ||
"ExactLength_Simple" => "'{PropertyName}' aynan {MaxLength}ta belgidan iborat bo'lishi shart.", | ||
"InclusiveBetween_Simple" => "'{PropertyName}'ning qiymati {From}dan {To}gacha bo'lishi shart.", | ||
_ => null, | ||
}; | ||
} |