@@ -210,22 +207,12 @@ public class BubbleConfiguration extends PgRestServerConfiguration
@Getter(lazy=true) private final String[] allLocales = initAllLocales();
private String[] initAllLocales() {
try {
final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(getClass().getClassLoader());
final Resource[] resources = resolver.getResources("classpath*:/"+MESSAGE_RESOURCE_BASE+"*");
final String[] locales;
if (resources.length == 0) {
// read from jar file
locales = new JarLister(getBubbleJar(), "^"+MESSAGE_RESOURCE_BASE+"[\\w]{2}(_[\\w]{2})?/$", name -> name.substring(MESSAGE_RESOURCE_BASE.length()).replace("/", ""))