Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I configure formatjs? #221

Closed
rochapablo opened this issue Apr 20, 2017 · 1 comment
Closed

How can I configure formatjs? #221

rochapablo opened this issue Apr 20, 2017 · 1 comment

Comments

@rochapablo
Copy link

rochapablo commented Apr 20, 2017

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}?

I'm asking, because I've tried many things, but nothing seems to work (formatjs/handlebars-intl#86).

@niftylettuce
Copy link
Collaborator

try v3.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants