intl-example
intl-example copied to clipboard
notification problem
I'm having a problem when I try to use the notification component.
I want to set a ReactNode like this:
notification.open({
message: 'Notification Title',
description: (<FormattedMessage
id="myKey"
/>)
});
But that is because the HTML element that is created to show the notification is rendered at body
level. So, it's not wrapped inside a IntlProvider
. It makes sense.
However, I need to show translated messages. Is there any change to make it work?