Skip to content

ILocalizationRegistry

Namespace: Bogoware.Localization

Represents a contract for managing culture-specific message templates associated with fully qualified domain names (FQDNs).

public interface ILocalizationRegistry

Attributes NullableContextAttribute

Remarks:

Template keys use typeof(T).FullName as the FQDN convention. Implementations typically provide a culture fallback chain: exact culture, parent culture, then invariant culture.

Methods

TryGetTemplate(String, CultureInfo, String&)

Attempts to retrieve a localized template for the given FQDN and culture.

bool TryGetTemplate(string fqdn, CultureInfo culture, String& template)

Parameters

fqdn String
The fully qualified type name used as the template key (e.g. "MyApp.Errors.InvalidEmailError").

culture CultureInfo
The desired culture for the template lookup.

template String&
When this method returns , contains the resolved template string with {PropertyName} placeholders. When , set to .

Returns

Boolean
if a matching template was found; otherwise .