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

Feature/azerbaijanese language #1770

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
10.3.0 -
Update Russian translations (#1761)
Add Thai translations (#1768)
Add Azerbaijani translations (#1770)

10.2.3 - 3 Jun 2021
Resolve issue with rulesets not cascading correctly to Inheritance Validators (#1754)
Expand Down
1 change: 1 addition & 0 deletions src/FluentValidation/Resources/LanguageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class LanguageManager : ILanguageManager {
EnglishLanguage.Culture => EnglishLanguage.GetTranslation(key),
AlbanianLanguage.Culture => AlbanianLanguage.GetTranslation(key),
ArabicLanguage.Culture => ArabicLanguage.GetTranslation(key),
AzerbaijaneseLanguage.Culture => AzerbaijaneseLanguage.GetTranslation(key),
BengaliLanguage.Culture => BengaliLanguage.GetTranslation(key),
BosnianLanguage.Culture => BosnianLanguage.GetTranslation(key),
ChineseSimplifiedLanguage.Culture => ChineseSimplifiedLanguage.GetTranslation(key),
Expand Down
62 changes: 62 additions & 0 deletions src/FluentValidation/Resources/Languages/AzerbaijaneseLanguage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#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 {
using Validators;

internal class AzerbaijaneseLanguage {
public const string Culture = "az-Latn-AZ";

public static string GetTranslation(string key) => key switch {
"EmailValidator" => "'{PropertyName}' keçərli bir e-poçt ünvanı deyil.",
"GreaterThanOrEqualValidator" => "'{PropertyName}' dəyəri '{ComparisonValue}' dəyərindən böyük və ya bərabər olmalıdır.",
"GreaterThanValidator" => "'{PropertyName}' dəyəri '{ComparisonValue}' dəyərindən böyük olmalıdır.",
"LengthValidator" => "'{PropertyName}', {MinLength} və {MaxLength} aralığında simvol uzunluğunda olmalıdır . Ümumilikdə {TotalLength} ədəd simvol daxil etmisiniz.",
"MinimumLengthValidator" => "'{PropertyName}', {MinLength} simvoldan böyük və ya bərabər olmalıdır. {TotalLength} simvol daxil etmisiniz.",
"MaximumLengthValidator" => "'{PropertyName}', {MaxLength} simvoldan kiçik və ya bərabər olmalıdır. {TotalLength} simvol daxil etmisiniz.",
"LessThanOrEqualValidator" => "'{PropertyName}', '{ComparisonValue}' dəyərindən kiçik və ya bərabər olmalıdır.",
"LessThanValidator" => "'{PropertyName}', '{ComparisonValue}' dəyərindən kiçik olmalıdır.",
"NotEmptyValidator" => "'{PropertyName}' boş olmamalıdır.",
"NotEqualValidator" => "'{PropertyName}', '{ComparisonValue}' dəyərinə bərabər olmamalıdır.",
"NotNullValidator" => "'{PropertyName}' daxil edilməlidir.",
"PredicateValidator" => "'{PropertyName}' təyin edilmiş şərtlərə uyğun deyil.",
"AsyncPredicateValidator" => "{PropertyName}' təyin edilmiş şərtlərə uyğun deyil.",
"RegularExpressionValidator" => "'{PropertyName}' dəyərinin formatı düzgün değil.",
"EqualValidator" => "'{PropertyName}', '{ComparisonValue}' dəyərinə bərabər olmalıdır.",
"ExactLengthValidator" => "'{PropertyName}', {MaxLength} simvol uzunluğunda olmalıdır. {TotalLength} ədəd simvol daxil etmisiniz.",
"InclusiveBetweenValidator" => "'{PropertyName}', {From} və {To} aralığında olmalıdır. {PropertyValue} dəyərini daxil etmisiniz.",
"ExclusiveBetweenValidator" => "'{PropertyName}', {From} (daxil deyil) və {To} (daxil deyil) aralığında olmalıdır. {PropertyValue} dəyərini daxil etmisiniz.",
"CreditCardValidator" => "'{PropertyName}' keçərli kredit kartı nömrəsi değil.",
"ScalePrecisionValidator" => "'{PropertyName}' icazə verilən {ExpectedScale} rəqəmli onluq hissə ilə birlikdə ümumilikdə {ExpectedPrecision} rəqəmdən ibarət olmalıdır. {Digits} tam və {ActualScale} onluq ədəd tapıldı.",
"EmptyValidator" => "'{PropertyName}' boş olmalıdır.",
"NullValidator" => "'{PropertyName}' boş olmalıdır.",
"EnumValidator" => "'{PropertyName}' -in mümkün qiymətlər çoxluğuna '{PropertyValue}' daxil deyil.",
// Additional fallback messages used by clientside validation integration.
"Length_Simple" => "'{PropertyName}', {MinLength} və {MaxLength} aralığında simvol uzunluğunda olmalıdır.",
"MinimumLength_Simple" => "'{PropertyName}', {MinLength} simvoldan böyük və ya bərabər olmalıdır.",
"MaximumLength_Simple" => "'{PropertyName}', {MaxLength} simvoldan kiçik və ya bərabər olmalıdır.",
"ExactLength_Simple" => "'{PropertyName}', {MaxLength} simvol uzunluğunda olmalıdır.",
"InclusiveBetween_Simple" => "'{PropertyName}', {From} və {To} aralığında olmalıdır.",
_ => null,
};
}
}