Formatting for KEYCLOAK-1113
This commit is contained in:
parent
a2c4a1f760
commit
58068946e4
3 changed files with 43 additions and 44 deletions
|
@ -214,8 +214,7 @@ public class FreeMarkerAccountProvider implements AccountProvider {
|
|||
if (message == null)
|
||||
return null;
|
||||
if (messagesBundle.containsKey(message.getMessage())) {
|
||||
return new MessageFormat(messagesBundle.getProperty(message.getMessage()), locale)
|
||||
.format(message.getParameters());
|
||||
return new MessageFormat(messagesBundle.getProperty(message.getMessage()), locale).format(message.getParameters());
|
||||
} else {
|
||||
return message.getMessage();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue