diff --git a/services/src/main/java/org/keycloak/services/resources/LocaleResource.java b/services/src/main/java/org/keycloak/services/resources/LocaleResource.java index 4622845c1f..0eef8d3dac 100644 --- a/services/src/main/java/org/keycloak/services/resources/LocaleResource.java +++ b/services/src/main/java/org/keycloak/services/resources/LocaleResource.java @@ -49,7 +49,7 @@ public class LocaleResource { Map realmLocalizationMessages = LocaleUtil.getRealmLocalizationTexts(realm, locale); for (Locale currentLocale = locale; currentLocale != null; currentLocale = LocaleUtil.getParentLocale(currentLocale)) { final List realmOverride = realmLocalizationMessages.get(currentLocale).entrySet().stream().map(e -> - new KeySource((String) e.getKey(), (String) e.getValue(), Source.OVERRIDE)).collect(toList()); + new KeySource((String) e.getKey(), (String) e.getValue(), Source.REALM)).collect(toList()); result.addAll(realmOverride); } @@ -62,7 +62,7 @@ public class LocaleResource { enum Source { THEME, - OVERRIDE + REALM } class KeySource { private String key;