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

translate

fun translate(translatable: ITranslatable): String

Overrides ITranslator.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 ITranslatableWithArgs it translates the ITranslatable of the given ITranslatableWithArgs and formats it with its arguments.

Parameters

translatable - The ITranslatable which shall be translated.

Return
The result of the translation for the given translatable.