-
- All Implemented Interfaces:
public abstract class TranslationsDelegateBase class to handle translations in ViewModels. Allows to lazily access the LanguagesHelper translations. Its validity should be verified each time the model is injected.
-
-
Field Summary
Fields Modifier and Type Field Description private final LocaleselectedLocaleprivate final LanguagesHelperlanguagesHelper
-
Constructor Summary
Constructors Constructor Description TranslationsDelegate(LanguagesHelper languagesHelper)
-
Method Summary
Modifier and Type Method Description final LocalegetSelectedLocale()Current locale final LanguagesHelpergetLanguagesHelper()final BooleanisNotValid()Check if locale changed since delegate was initialized -
-
Constructor Detail
-
TranslationsDelegate
TranslationsDelegate(LanguagesHelper languagesHelper)
-
-
Method Detail
-
getSelectedLocale
final Locale getSelectedLocale()
Current locale
-
getLanguagesHelper
final LanguagesHelper getLanguagesHelper()
-
isNotValid
final Boolean isNotValid()
Check if locale changed since delegate was initialized
-
-
-
-