Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
117 additions
and
23 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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
mock==1.0.1 | ||
alabaster>=0.7,<0.8,!=0.7.5 | ||
alabaster==0.7.13 | ||
commonmark==0.9.1 | ||
recommonmark==0.5.0 | ||
readthedocs-sphinx-ext<2.3 | ||
jinja2<3.1.0 | ||
recommonmark==0.5.0 | ||
sphinx==1.8.5 | ||
sphinx-rtd-theme==0.4.3 | ||
docutils==0.17 | ||
docutils==0.17 |
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
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
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
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
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/NorwegianNynorskLanguage.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 NorwegianNynorskLanguage { | ||
public const string Culture = "nn"; | ||
|
||
public static string GetTranslation(string key) => key switch { | ||
"EmailValidator" => "'{PropertyName}' er ikkje ei gyldig e-postadresse.", | ||
"GreaterThanOrEqualValidator" => "'{PropertyName}' skal vera større enn eller lik '{ComparisonValue}'.", | ||
"GreaterThanValidator" => "'{PropertyName}' skal vera større enn '{ComparisonValue}'.", | ||
"LengthValidator" => "'{PropertyName}' skal vere mellom {MinLength} og {MaxLength} teikn. Du har tasta inn {TotalLength} teikn.", | ||
"MinimumLengthValidator" => "'{PropertyName}' skal vera større enn eller lik {MinLength} teikn. Du tasta inn {TotalLength} teikn.", | ||
"MaximumLengthValidator" => "'{PropertyName}' skal vera mindre enn eller lik {MaxLength} teikn. Du tasta inn {TotalLength} teikn.", | ||
"LessThanOrEqualValidator" => "'{PropertyName}' skal vera mindre enn eller lik '{ComparisonValue}'.", | ||
"LessThanValidator" => "'{PropertyName}' skal vera mindre enn '{ComparisonValue}'.", | ||
"NotEmptyValidator" => "'{PropertyName}' kan ikkje vera tom.", | ||
"NotEqualValidator" => "'{PropertyName}' kan ikkje vera lik '{ComparisonValue}'.", | ||
"NotNullValidator" => "'{PropertyName}' kan ikkje vera tom.", | ||
"PredicateValidator" => "Den angjevne føresetnaden var ikkje oppfylt for '{PropertyName}'.", | ||
"AsyncPredicateValidator" => "Den angjevne føresetnaden var ikkje oppfylt for '{PropertyName}'.", | ||
"RegularExpressionValidator" => "'{PropertyName}' har ikkje rett format.", | ||
"EqualValidator" => "'{PropertyName}' skal vera lik '{ComparisonValue}'.", | ||
"ExactLengthValidator" => "'{PropertyName}' skal vera {MaxLength} teikn langt. Du har tasta inn {TotalLength} teikn.", | ||
"InclusiveBetweenValidator" => "'{PropertyName}' skal vera mellom {From} og {To}. Du har tasta inn {PropertyValue}.", | ||
"ExclusiveBetweenValidator" => "'{PropertyName}' skal vera mellom {From} og {To} (unntatt). Du har tasta inn {PropertyValue}.", | ||
"CreditCardValidator" => "'{PropertyName}' er ikkje eit gyldig kredittkortnummer.", | ||
"ScalePrecisionValidator" => "'{PropertyName}' kan ikkje vera meir enn {ExpectedPrecision} siffer totalt, inkludert {ExpectedScale} desimalar. {Digits} siffer og {ActualScale} desimalar vart funnen.", | ||
"EmptyValidator" => "'{PropertyName}' skal vera tomt.", | ||
"NullValidator" => "'{PropertyName}' skal vera tomt.", | ||
"EnumValidator" => "'{PropertyName}' har ei rekkje verdiar men inneheld ikkje '{PropertyValue}'.", | ||
// Additional fallback messages used by clientside validation integration. | ||
"Length_Simple" => "'{PropertyName}' skal vera mellom {MinLength} og {MaxLength} teikn.", | ||
"MinimumLength_Simple" => "'{PropertyName}' skal vera større enn eller lik {MinLength} teikn.", | ||
"MaximumLength_Simple" => "'{PropertyName}' skal vera mindre enn eller lik {MaxLength} teikn.", | ||
"ExactLength_Simple" => "'{PropertyName}' skal vera {MaxLength} teikn langt.", | ||
"InclusiveBetween_Simple" => "'{PropertyName}' skal vera mellom {From} og {To}.", | ||
_ => null, | ||
}; | ||
} |
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