get Message
Retrieves a formatted localized message using sequential arguments.
Return
The formatted localized message content.
Parameters
key
The message key.
args
Optional arguments used to format the message.
Retrieves a formatted localized message using a map of named arguments.
Return
The formatted localized message content.
Parameters
key
The message key.
args Complete
A map of placeholders and their corresponding values.
open override fun <T, K, V> getMessage(key: MessageKey<*, *>, intermediate: T, transform: (T) -> Map<K, V>): C
Retrieves a formatted localized message using an intermediate data type.
The given intermediate object is transformed into a placeholder map, which is then used for message formatting.
Return
The formatted localized message content.
Parameters
key
The message key.
intermediate
An object containing data relevant to the message.
transform
A function to convert the intermediate object into a map of placeholders.