Package io.gravitee.am.service.i18n
Interface DictionaryProvider
- All Known Subinterfaces:
DynamicDictionaryProvider
- All Known Implementing Classes:
CompositeDictionaryProvider,DomainBasedDictionaryProvider,FileSystemDictionaryProvider,ThreadLocalDomainDictionaryProvider
public interface DictionaryProvider
- Author:
- Eric LELEU (eric.leleu at graviteesource.com), GraviteeSource Team
-
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)
-
Method Details
-
getDictionaryFor
Get 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.- Parameters:
locale-- Returns:
-
hasDictionaryFor
use the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)- Parameters:
locale-- Returns:
- true if the locale has dictionary
-