Message Provider Default
An abstract base class implementing the IMessageProvider
interface for creating localized message systems.
This class is intended to handle the localization of messages grouped by language settings and provides multiple strategies for retrieving context-aware localized messages, including:
Messages with sequential arguments.
Messages using placeholder-based maps.
Messages generated based on intermediate types and custom transformations.
The output type of localized messages is determined by the generic type parameter C
.
Parameters
Self-referenced generic type used for type-safe association within implementations.
The type of the final localized message output (e.g., string, text component).
Properties
Functions
Retrieves the language code associated with this provider.
Retrieves a formatted localized message using sequential arguments.
Retrieves a formatted localized message using a map of named arguments.
Retrieves a formatted localized message using an intermediate data type.
Retrieves a localized message of type C based on the specified key, applies placeholder replacement using argsComplete, and converts the processed message into the requested type.
Retrieves the raw message string for the provided key without formatting.
Checks if a localized message exists for the given key.