Package io.gravitee.am.service.i18n
Class CompositeDictionaryProvider
java.lang.Object
io.gravitee.am.service.i18n.CompositeDictionaryProvider
- All Implemented Interfaces:
DictionaryProvider
- Author:
- Eric LELEU (eric.leleu at graviteesource.com)
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeDictionaryProvider(DictionaryProvider mainProvider, DictionaryProvider secondaryProvider) -
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)
-
Constructor Details
-
CompositeDictionaryProvider
public CompositeDictionaryProvider(DictionaryProvider mainProvider, DictionaryProvider secondaryProvider)
-
-
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
-