0

Trying to get the following to work, but it seems that react-intl doesn't support it. Curious to know if there are any alternatives? Seems like it might be a common probably

<FormattedMessage 
  values={{session:{user:{first_name:'fred'}}}} 
  defaultMessage="Hello {session.user.first_name}!"
/>

Outputs:

Hello {session.user.first_name}!

Desired:

Hello fred!
Adam Jenkins
  • 51,445
  • 11
  • 72
  • 100

1 Answers1

0

. is not a valid ICU argument token, which is why react-intl doesn't support it.

Long Ho
  • 599
  • 4
  • 15