Class TlumachLanguageManagerOptions
- Namespace
- Tlumach.FluentValidation
- Assembly
- Tlumach.FluentValidation.dll
The options of TlumachLanguageManager. The language manager copies the values when it is created.
public class TlumachLanguageManagerOptions
- Inheritance
-
TlumachLanguageManagerOptions
- Derived
- Inherited Members
Properties
CultureSource
Gets or sets the culture source used when neither the caller nor LanguageManager.Culture specifies a culture.
The default value is CurrentUICulture.
public MessageCultureSource CultureSource { get; set; }
Property Value
FluentValidationGroup
Gets or sets the group of the translation, in which the keys of FluentValidation are stored, for example NotEmptyValidator and the error codes set with
WithErrorCode. A key is looked up as {FluentValidationGroup}.{key}, or as {key} when this property is null or empty.
The default value is "FluentValidation". In a JSON translation file, that is an object named FluentValidation at the root, and Generator creates the
nested class Strings.FluentValidation for it.
public string? FluentValidationGroup { get; set; }