Skip to main content
Version: 2.13.14

Humanizer.Configuration.Configurator

Configurator Class

Provides a configuration point for Humanizer

public static class Configurator

Inheritance System.Object → Configurator

Properties

Configurator.CollectionFormatters Property

A registry of formatters used to format collections based on the current locale

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.CollectionFormatters.ICollectionFormatter> CollectionFormatters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<ICollectionFormatter>

Configurator.DateOnlyHumanizeStrategy Property

The strategy to be used for DateOnly.Humanize

public static Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy DateOnlyHumanizeStrategy { get; set; }

Property Value

IDateOnlyHumanizeStrategy

Configurator.DateOnlyToOrdinalWordsConverters Property

A registry of ordinalizers used to localise Ordinalize method

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.DateToOrdinalWords.IDateOnlyToOrdinalWordConverter> DateOnlyToOrdinalWordsConverters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<IDateOnlyToOrdinalWordConverter>

Configurator.DateTimeHumanizeStrategy Property

The strategy to be used for DateTime.Humanize

public static Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; }

Property Value

IDateTimeHumanizeStrategy

Configurator.DateTimeOffsetHumanizeStrategy Property

The strategy to be used for DateTimeOffset.Humanize

public static Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; }

Property Value

IDateTimeOffsetHumanizeStrategy

Configurator.DateToOrdinalWordsConverters Property

A registry of ordinalizers used to localise Ordinalize method

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.DateToOrdinalWords.IDateToOrdinalWordConverter> DateToOrdinalWordsConverters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<IDateToOrdinalWordConverter>

Configurator.EnumDescriptionPropertyLocator Property

A predicate function for description property of attribute to use for Enum.Humanize

public static System.Func<System.Reflection.PropertyInfo,bool> EnumDescriptionPropertyLocator { get; set; }

Property Value

System.Func<System.Reflection.PropertyInfo,System.Boolean>

Configurator.Formatters Property

A registry of formatters used to format strings based on the current locale

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.Formatters.IFormatter> Formatters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<IFormatter>

Configurator.NumberToWordsConverters Property

A registry of number to words converters used to localise ToWords and ToOrdinalWords methods

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.NumberToWords.INumberToWordsConverter> NumberToWordsConverters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<INumberToWordsConverter>

Configurator.Ordinalizers Property

A registry of ordinalizers used to localise Ordinalize method

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.Ordinalizers.IOrdinalizer> Ordinalizers { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<IOrdinalizer>

Configurator.TimeOnlyHumanizeStrategy Property

The strategy to be used for TimeOnly.Humanize

public static Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy TimeOnlyHumanizeStrategy { get; set; }

Property Value

ITimeOnlyHumanizeStrategy

Configurator.TimeOnlyToClockNotationConverters Property

A registry of time to clock notation converters used to localise ToClockNotation methods

public static Humanizer.Configuration.LocaliserRegistry<Humanizer.Localisation.TimeToClockNotation.ITimeOnlyToClockNotationConverter> TimeOnlyToClockNotationConverters { get; }

Property Value

Humanizer.Configuration.LocaliserRegistry<ITimeOnlyToClockNotationConverter>