ILocalizationProvider
Namespace: Bogoware.Localization
Self-localizing types that can produce their own localized string representation.
public interface ILocalizationProvider : ILocalizableImplements ILocalizable
Remarks:
This is the highest-priority step in the ILocalizationFormatter resolution chain. When a type implements both ILocalizable and ILocalizationProvider, the formatter calls ILocalizationProvider.Localize(CultureInfo) directly, bypassing DI providers, registry templates, and fallback formatting entirely.
Methods
Localize(CultureInfo)
Produces a localized string representation of the current instance.
string Localize(CultureInfo culture)Parameters
culture CultureInfo
The target culture. When , defaults to
CultureInfo.CurrentUICulture at the discretion of the implementor.
Returns
String
A culture-aware human-readable string.