Class CompositeDictionaryProvider

java.lang.Object
io.gravitee.am.service.i18n.CompositeDictionaryProvider
All Implemented Interfaces:
DictionaryProvider

public class CompositeDictionaryProvider extends Object implements DictionaryProvider
Author:
Eric LELEU (eric.leleu at graviteesource.com)
  • Constructor Details

  • Method Details

    • getDictionaryFor

      public Properties getDictionaryFor(Locale locale)
      Description copied from interface: DictionaryProvider
      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.
      Specified by:
      getDictionaryFor in interface DictionaryProvider
      Returns:
    • hasDictionaryFor

      public boolean hasDictionaryFor(Locale locale)
      Description copied from interface: DictionaryProvider
      use the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)
      Specified by:
      hasDictionaryFor in interface DictionaryProvider
      Returns:
      true if the locale has dictionary