Language
Base class for languages
Assembly: ServiceStack.dll
View Source
Declaration
[Obsolete("The Language class is no longer used and will be removed in FluentValidation 10.")]
public abstract class Language
Properties
Name
Name of language (culture code)
View Source
Declaration
public abstract string Name { get; }
Methods
Translate(String, String)
Adds a translation
View Source
Declaration
public virtual void Translate(string key, string message)
Parameters
Type | Name |
---|---|
System.String | key |
System.String | message |
Translate<T>(String)
Adds a translation for a type
View Source
Declaration
public void Translate<T>(string message)
Parameters
Type | Name |
---|---|
System.String | message |
Type Parameters
T
GetTranslation(String)
Gets the localized version of a string with a specific key.
View Source
Declaration
public virtual string GetTranslation(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |