atrium-impl-robstoll / ch.tutteli.atrium.reporting.translating / ITranslationSupplier

ITranslationSupplier

interface ITranslationSupplier

A supplier of translations for ITranslatables for particular Locales.

Functions

get

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

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

Inheritors

PropertiesBasedTranslationSupplier

abstract class PropertiesBasedTranslationSupplier<in T> : ITranslationSupplier

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