format

fun String.format(vararg args: Any?, locale: KalugaLocale = defaultLocale): String

Formats this String as a printf-style format String using a variable number of arguments.

Return

The formatted String

Parameters

args

The list of arguments used for formatting the string.

locale

The KalugaLocale used for formatting the arguments. This is relevant for number and date formatting, as well as capitalization.

Throws

if the string could not be formatted using args.