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

TranslationSupplier

interface TranslationSupplier (source)

A supplier of translations for Translatables for particular Locales.

Functions

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.

Inheritors

PropertiesBasedTranslationSupplier

abstract class PropertiesBasedTranslationSupplier<in T> : TranslationSupplier

A base class for properties based TranslationSuppliers which provides a loading and caching mechanism of properties files.