ParameterisedLocalizedString

LocalizedString that can have parameters.

The parameters must be specified in the message according to the currently set MessageFormatter in i18n4k (I18n4kConfig.messageFormatter)

Constructors

Link copied to clipboard
constructor(message: Any, parameter: List<Any>, nameMapper: NameToIndexMapper = NameToIndexMapperNumbersFrom0)
constructor(message: Any, parameter: MessageParameters)

Functions

Link copied to clipboard
open operator fun invoke(): String
open operator fun invoke(locale: Locale?): String

Shortcut for toString

Link copied to clipboard

Combines the two LocalizedString into one

Combines the LocalizedString and the String into a LocalizedString

Link copied to clipboard
open override fun toString(): String

Returns the string value based on the currently set Locale in de.comahe.i18n4k.i18n4k (de.comahe.i18n4k.config.I18n4kConfig.locale)

open override fun toString(locale: Locale?): String

Returns the string value based on the given Locale.