I've got my custom formats
{
number: {
USD: {
style: 'currency',
currency: 'USD',
},
EUR: {
style: 'currency',
currency: 'EUR',
},
},
}
and I want to create an ICU message so that I could pass currency
as a parameter:
formatMessage(message, {amount: 40, currency: 'EUR'})
I would imagine something like this:
{amount, number, {currency}}
but it doesn't work.