Skip to main content

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
TypeName
System.Stringkey
System.Stringmessage

Translate<T>(String)

Adds a translation for a type

View Source
Declaration
public void Translate<T>(string message)
Parameters
TypeName
System.Stringmessage
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
TypeName
System.Stringkey