@ Override public Collection < ResourceBundle > bundles ( Locale locale ) { Set < ResourceBundle > bundles = new LinkedHashSet <> ( ) ; for ( I18nExtension extension : extensions ) { if ( extension . locale ( ) . equals ( locale ) ) { bundles . add ( extension . bundle ( ) ) ; } } return bundles ; }
Retrieves the set of resource bundles handled by the system providing messages for the given locale .