|
| 1 | +#region License |
| 2 | + |
| 3 | +// Copyright (c) .NET Foundation and contributors. |
| 4 | +// |
| 5 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +// you may not use this file except in compliance with the License. |
| 7 | +// You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, software |
| 12 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +// See the License for the specific language governing permissions and |
| 15 | +// limitations under the License. |
| 16 | +// |
| 17 | +// The latest version of this file can be found at https://github.com/FluentValidation/FluentValidation |
| 18 | + |
| 19 | +#endregion |
| 20 | + |
| 21 | +#pragma warning disable 618 |
| 22 | + |
| 23 | +namespace FluentValidation.Resources; |
| 24 | + |
| 25 | +internal class EstonianLanguage { |
| 26 | + public const string Culture = "et"; |
| 27 | + |
| 28 | + public static string GetTranslation(string key) => key switch { |
| 29 | + "EmailValidator" => "'{PropertyName}' ei ole sobiv e-posti aadress.", |
| 30 | + "GreaterThanOrEqualValidator" => "'{PropertyName}' peab olema suurem või sama suur kui '{ComparisonValue}'.", |
| 31 | + "GreaterThanValidator" => "'{PropertyName}' peab olema suurem kui '{ComparisonValue}'.", |
| 32 | + "LengthValidator" => "'{PropertyName}' peab olema {MinLength}-{MaxLength} märki. Sisestasid {TotalLength} märki.", |
| 33 | + "MinimumLengthValidator" => "'{PropertyName}' peab olema vähemalt {MinLength} märki. Sisestasid {TotalLength} märki.", |
| 34 | + "MaximumLengthValidator" => "'{PropertyName}' võib olla kõige rohkem {MaxLength} märki. Sisestasid {TotalLength} märki.", |
| 35 | + "LessThanOrEqualValidator" => "'{PropertyName}' peab olema väiksem või sama suur kui '{ComparisonValue}'.", |
| 36 | + "LessThanValidator" => "'{PropertyName}' peab olema väiksem kui '{ComparisonValue}'.", |
| 37 | + "NotEmptyValidator" => "'{PropertyName}' ei või olla tühi.", |
| 38 | + "NotEqualValidator" => "'{PropertyName}' ei või olla sama nagu '{ComparisonValue}'.", |
| 39 | + "NotNullValidator" => "'{PropertyName}' ei või olla tühi.", |
| 40 | + "PredicateValidator" => "'{PropertyName}' ei vasta eeskirjale.", |
| 41 | + "AsyncPredicateValidator" => "'{PropertyName}' ei vasta eeskirjale.", |
| 42 | + "RegularExpressionValidator" => "'{PropertyName}' ei ole õige kujuga.", |
| 43 | + "EqualValidator" => "'{PropertyName}' peab olema sama väärtusega nagu '{ComparisonValue}'.", |
| 44 | + "ExactLengthValidator" => "'{PropertyName}' peab olema {MaxLength} märki. Sisestasid {TotalLength} märki.", |
| 45 | + "InclusiveBetweenValidator" => "'{PropertyName}' peab olema vahemikus {From}-{To}. Sisestasid {PropertyValue}.", |
| 46 | + "ExclusiveBetweenValidator" => "'{PropertyName}' peab olema vahemikus {From}-{To}. Sisestasid {PropertyValue}.", |
| 47 | + "CreditCardValidator" => "'{PropertyName}' ei ole sobiv krediitkaardi number.", |
| 48 | + "ScalePrecisionValidator" => "'{PropertyName}' ei tohi olla pikem kui {ExpectedPrecision} numbrit, {ExpectedScale} kümndendikku. Sisestatud {Digits} numbrit ja {ActualScale} kümnendikku.", |
| 49 | + "EmptyValidator" => "'{PropertyName}' peab olema tühi.", |
| 50 | + "NullValidator" => "'{PropertyName}' peab olema tühi.", |
| 51 | + "EnumValidator" => "'{PropertyName}' lubatud väärtuste hulgas ei ole '{PropertyValue}'.", |
| 52 | + // Additional fallback messages used by clientside validation integration. |
| 53 | + "Length_Simple" => "'{PropertyName}' peab olema {MinLength}-{MaxLength} märki.", |
| 54 | + "MinimumLength_Simple" => "'{PropertyName}' pikkus peab olema vähemalt {MinLength} märki.", |
| 55 | + "MaximumLength_Simple" => "'{PropertyName}' võib olla kõige rohkem {MaxLength} märki.", |
| 56 | + "ExactLength_Simple" => "'{PropertyName}' peab olema {MaxLength} märgi pikkune.", |
| 57 | + "InclusiveBetween_Simple" => "'{PropertyName}' peab olema vahemikus {From}-{To}.", |
| 58 | + _ => null, |
| 59 | + }; |
| 60 | +} |
0 commit comments