-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
CroatianLanguage.cs
60 lines (54 loc) · 3.71 KB
/
CroatianLanguage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 CroatianLanguage {
public const string Culture = "hr";
public static string GetTranslation(string key) => key switch {
"EmailValidator" => "'{PropertyName}' nije ispravna e-mail adresa.",
"GreaterThanOrEqualValidator" => "'{PropertyName}' mora biti veći ili jednak '{ComparisonValue}'.",
"GreaterThanValidator" => "'{PropertyName}' mora biti veći od '{ComparisonValue}'.",
"LengthValidator" => "'{PropertyName}' mora biti između {MinLength} i {MaxLength} znakova. Upisali ste {TotalLength} znakova.",
"MinimumLengthValidator" => "'{PropertyName}' mora imati duljinu veću ili jednaku {MinLength}. Unijeli ste {TotalLength} znakova.",
"MaximumLengthValidator" => "'{PropertyName}' mora imati duljinu manju ili jednaku {MaxLength}. Unijeli ste {TotalLength} znakova.",
"LessThanOrEqualValidator" => "'{PropertyName}' mora biti manji ili jednak '{ComparisonValue}'.",
"LessThanValidator" => "'{PropertyName}' mora biti manji od '{ComparisonValue}'.",
"NotEmptyValidator" => "'{PropertyName}' ne smije biti prazan.",
"NotEqualValidator" => "'{PropertyName}' ne smije biti jednak '{ComparisonValue}'.",
"NotNullValidator" => "Niste upisali '{PropertyName}'",
"PredicateValidator" => "'{PropertyName}' nije ispravan.",
"AsyncPredicateValidator" => "'{PropertyName}' nije ispravan.",
"RegularExpressionValidator" => "'{PropertyName}' nije u odgovarajućem formatu.",
"EqualValidator" => "'{PropertyName}' mora biti jednak '{ComparisonValue}'.",
"ExactLengthValidator" => "'{PropertyName}' mora sadržavati {MaxLength} znakova. Upisali ste {TotalLength} znakova.",
"InclusiveBetweenValidator" => "'{PropertyName}' mora biti između {From} i {To}. Upisali ste {PropertyValue}.",
"ExclusiveBetweenValidator" => "'{PropertyName}' mora biti između {From} i {To} (ne uključujući granice). Upisali ste {PropertyValue}.",
"CreditCardValidator" => "'{PropertyName}' nije odgovarajuća kreditna kartica.",
"ScalePrecisionValidator" => "'{PropertyName}' ne smije imati više od {ExpectedPrecision} znamenki, sa {ExpectedScale} decimalna mjesta. Upisali ste {Digits} znamenki i {ActualScale} decimalna mjesta.",
"EmptyValidator" => "'{PropertyName}' mora biti prazan.",
"NullValidator" => "'{PropertyName}' mora biti prazan.",
"EnumValidator" => "'{PropertyName}' ima raspon vrijednosti koji ne uključuje '{PropertyValue}'.",
// Additional fallback messages used by clientside validation integration.
"Length_Simple" => "'{PropertyName}' mora biti između {MinLength} i {MaxLength} znakova.",
"MinimumLength_Simple" => "'{PropertyName}' mora imati duljinu veću ili jednaku {MinLength}.",
"MaximumLength_Simple" => "'{PropertyName}' mora imati duljinu manju ili jednaku {MaxLength}.",
"ExactLength_Simple" => "'{PropertyName}' mora sadržavati {MaxLength} znakova.",
"InclusiveBetween_Simple" => "'{PropertyName}' mora biti između {From} i {To}.",
_ => null,
};
}