Class I18NResourceBundlesLoader


  • public class I18NResourceBundlesLoader
    extends Object
    Simulates the behaviour of ResourceBundle.getBundle() and searches for all bundles for a locale from most specific to least specific
    • Constructor Detail

      • I18NResourceBundlesLoader

        public I18NResourceBundlesLoader()
    • Method Detail

      • getResourceBundles

        public static Map<String,​ResourceBundle> getResourceBundles​(I18NResource i18NResource,
                                                                          Locale locale)
        Get resource bundles keyed by locale. For example: Map: {en_GB -> ResourceBundle} {en -> ResourceBundle} {<NOLOCALE> -> ResourceBundle}
        Parameters:
        i18NResource -
        locale -