intl-example icon indicating copy to clipboard operation
intl-example copied to clipboard

notification problem

Open orlandovallejos opened this issue 6 years ago • 0 comments

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?

image

orlandovallejos avatar Dec 20 '18 19:12 orlandovallejos