A registry of localised system components with their associated locales
public class LocaliserRegistry<TLocaliser>
where TLocaliser : classTLocaliser
Inheritance System.Object → LocaliserRegistry<TLocaliser>
Creates a localiser registry with the default localiser factory set to the provided value
public LocaliserRegistry(System.Func<System.Globalization.CultureInfo,TLocaliser> defaultLocaliser);defaultLocaliser System.Func<System.Globalization.CultureInfo,TLocaliser>
Creates a localiser registry with the default localiser set to the provided value
public LocaliserRegistry(TLocaliser defaultLocaliser);defaultLocaliser TLocaliser
Registers the localiser factory for the culture provided
public void Register(string localeCode, System.Func<System.Globalization.CultureInfo,TLocaliser> localiser);localeCode System.String
localiser System.Func<System.Globalization.CultureInfo,TLocaliser>
Registers the localiser for the culture provided
public void Register(string localeCode, TLocaliser localiser);localeCode System.String
localiser TLocaliser
Gets the localiser for the specified culture
public TLocaliser ResolveForCulture(System.Globalization.CultureInfo? culture);culture System.Globalization.CultureInfo
The culture to retrieve localiser for. If not specified, current thread's culture is used.
Gets the localiser for the current thread's UI culture
public TLocaliser ResolveForUiCulture();