Realm translations are being added to the account console. (#10329)
For the account console translations are being fetched from the realm translations as well as from the theme properties. Closes #10328
This commit is contained in:
parent
209df44641
commit
91a51d276f
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ public class AccountConsole {
|
|||
Locale locale = session.getContext().resolveLocale(user);
|
||||
map.put("locale", locale.toLanguageTag());
|
||||
Properties messages = theme.getMessages(locale);
|
||||
messages.putAll(realm.getRealmLocalizationTextsByLocale(locale.toLanguageTag()));
|
||||
map.put("msg", new MessageFormatterMethod(locale, messages));
|
||||
map.put("msgJSON", messagesToJsonString(messages));
|
||||
map.put("supportedLocales", supportedLocales(messages));
|
||||
|
|
Loading…
Reference in a new issue