Closed rochapablo closed 7 years ago
I'm trying to use https://formatjs.io/handlebars/ (# Using Named Number Formats), and they set the config like this:
var intlData = { locales: 'en-US' } var context = { price: 1000 }; var html = template(context, { data: {intl: intlData} });
So, using new EmailTemplate(path), where do I can set data: {intl: intlData}?
new EmailTemplate(path)
data: {intl: intlData}
I'm asking, because I've tried many things, but nothing seems to work (https://github.com/yahoo/handlebars-intl/issues/86).
try v3.x?
I'm trying to use https://formatjs.io/handlebars/ (# Using Named Number Formats), and they set the config like this:
So, using
new EmailTemplate(path)
, where do I can setdata: {intl: intlData}
?I'm asking, because I've tried many things, but nothing seems to work (https://github.com/yahoo/handlebars-intl/issues/86).