get Msg With Other
inline fun <C : Any> getMsgWithOther(key: MessageKey<*, *>, argsComplete: Map<String, C> = emptyMap()): C
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.
This method first retrieves the raw message from LangMan
, then applies placeholder replacements using the registered replaceLogic
. After the placeholders are replaced, the message is converted into the final type C using the registered convertToFinalType
.
Return
The localized message of type C.
Parameters
C
The reified output type.
key
The MessageKey identifying which localized message to retrieve.
args Complete
A map of placeholders (keys) and their respective replacement values.
Throws
if no replacement logic is found for type C.
if message conversion fails due to a type mismatch.