Package io.gravitee.am.service.i18n
Class FileSystemDictionaryProvider
java.lang.Object
io.gravitee.am.service.i18n.FileSystemDictionaryProvider
- All Implemented Interfaces:
DictionaryProvider
- Author:
- Eric LELEU (eric.leleu at graviteesource.com), GraviteeSource Team
-
Field Summary
Fields -
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)
-
Field Details
-
DEFAULT_LOCALE
- See Also:
-
-
Constructor Details
-
FileSystemDictionaryProvider
-
-
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
-