Package io.gravitee.am.service.i18n
Class DomainBasedDictionaryProvider
java.lang.Object
io.gravitee.am.service.i18n.DomainBasedDictionaryProvider
- All Implemented Interfaces:
DictionaryProvider,DynamicDictionaryProvider
- Author:
- Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDictionaryFor(Locale locale) Get the Properties object with all i18n message translated for the given locale value.booleanhasDictionaryFor(Locale locale) use the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)voidloadDictionary(I18nDictionary i18nDictionary) voidremoveDictionary(String locale) void
-
Constructor Details
-
DomainBasedDictionaryProvider
public DomainBasedDictionaryProvider()
-
-
Method Details
-
getDictionaryFor
Description copied from interface:DictionaryProviderGet the Properties object with all i18n message translated for the given locale value. If there are no properties matching the Locale, then the default translation are provided.- Specified by:
getDictionaryForin interfaceDictionaryProvider- Returns:
-
hasDictionaryFor
Description copied from interface:DictionaryProvideruse the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)- Specified by:
hasDictionaryForin interfaceDictionaryProvider- Returns:
- true if the locale has dictionary
-
loadDictionary
- Specified by:
loadDictionaryin interfaceDynamicDictionaryProvider
-
removeDictionary
- Specified by:
removeDictionaryin interfaceDynamicDictionaryProvider
-
resetDictionaries
public void resetDictionaries()- Specified by:
resetDictionariesin interfaceDynamicDictionaryProvider
-