doc / ch.tutteli.atrium.reporting.translating / ArgumentsSupportingTranslator / translate

translate

fun translate(translatable: Translatable): String

Overrides Translator.translate

Returns the translation of the given translatable or its getDefault in case there is not a translation defined for it.

In case of a TranslatableWithArgs it translates the Translatable of the given TranslatableWithArgs and formats it with its arguments.

Parameters

translatable - The Translatable which shall be translated.

Return
The result of the translation for the given translatable.