getMsg

inline fun <G : Any> getMsg(key: MessageKey<*, *>, argsComplete: Map<String, G> = emptyMap()): C

Retrieves a localized message of type G, applies placeholder replacement, and then converts it into the default class type C.

This method first retrieves a localized message of type G using getMsgWithOther, applies the necessary placeholder replacements, and then converts it into the class-level default type C using the registered converter.

Return

The localized message converted into the class-defined type C.

Parameters

G

The intermediate type used for processing before conversion to C.

key

The MessageKey identifying which localized message to retrieve.

argsComplete

A map of placeholders (keys) and their respective replacement values.

Throws

if no converter is found for type C.

if message conversion fails due to a type mismatch.