Namespace RentADeveloper.ResXLocalization

Classes

CultureChangedEventArgs

Provides the previous and current culture for a CultureChanged notification, raised after CurrentCulture changes.

Localizer

The default ILocalizer implementation: an ambient, process-wide localizer that resolves strings from registered ResourceManager instances and notifies bindings when the culture changes. Access the shared instance through Current.

LookupFailedEventArgs

Provides the failed lookup reported through LookupFailed.

MessageArguments

The arguments for a translation lookup: positional arguments from values, named arguments from name/value tuples, a dictionary or an object's properties. Build them with the static methods and pass them to ILocalizer.Get, for example Localizer.Current.Get("FilePosition", MessageArguments.FromValues(3, 10)).

StringFormatMessageFormatter

The default IMessageFormatter: returns a value without arguments unchanged, and formats a value with arguments with Format(IFormatProvider, string, params object[]) in the lookup's culture. Argument names are ignored; only positions count.

Structs

LookupFailure

Describes a failed lookup. LookupFailed reports it, and LookupFailureTextBuilder receives it to produce the failure text.

MessageArgument

One argument of a lookup: its position, an optional name and its value. The arguments of one lookup are a MessageArguments; no arguments is Empty.

ResourceKey

A typed, file-scoped resource key that pairs a key name with the ResourceManager that owns it. The bundled source generator emits one static ResourceKey per string entry in each eligible neutral .resx file, giving compile-time-validated keys with editor auto-completion.

Interfaces

ILocalizer

Resolves localized strings from one or more ResourceManager instances for a runtime-selectable culture, and raises change notifications so bindings update live when the culture changes - without reloading views.

IMessageFormatter

Turns a resolved resource value and the arguments of its lookup - possibly none - into the final string. Assign an implementation to MessageFormatter to replace the default StringFormatMessageFormatter.

Enums

LookupFailureReason

Why a lookup failed; see Reason.