Closed alex3683 closed 7 years ago
Implemented on master
(v2.0.0
).
Usages of htmlMessage
need to be changed to i18nHtmlMessage
, since the provided messages object may be internationalized.
So the result of a validation handler must be changed from this
return [ { htmlMessage: { en: 'This is <em>wrong</em>', de: 'Falsch!' }, level: 'ERROR' } ];
into this:
return [ { i18nHtmlMessage: { en: 'This is <em>wrong</em>', de: 'Falsch!' }, level: 'ERROR' } ];
Currently the factories for success and error events set the messages under the key
htmlMessages
, although they may be internationalized. Hence this field should be renamed toi18nHtmlMessages
. The ax-messages-widget already handles the correct and the legacy case. For the next major release this should be cleaned up.