Hello,
I’m looking into making an ember-cli addon adding idiomatic support for formatjs.io libraries. They’re already providing an integration with handlebars (handlebars-intl), so that part is done.
The part I’m struggling with is that the library assumes we’re doing something like
var template = Handlebars.compile(source);
var intlData = {
locales: 'en-US'
}
var context = {
price: 1000
};
var html = template(context, {
data: {intl: intlData}
});
Usually, we’re never calling Handlebars.compile
ourselves. So I’m wondering how I can properly “hook” into this process.
Thanks a lot for reading and for your help !