doc / ch.tutteli.atrium.reporting.translating / TranslationSupplier / get

get

abstract fun get(translatable: Translatable, locale: Locale): String?

Returns the translation for the given translatable and the given locale or null if it does not have any translation.

Exceptions

IllegalArgumentException - in case Locale.ROOT is passed for locale.

Return
The translation or null if no translation was found.