formatjs / handlebars-intl

Handlebars helpers for internationalization.
http://formatjs.io/handlebars/
Other
265 stars 28 forks source link

formatMessage with intlGet lookup fail on context sub properties #58

Closed yamsellem closed 9 years ago

yamsellem commented 9 years ago

It seems that using dot notation in formatMessageparameters won't work in combinaison with intlGet.

This works: {{formatMessage "Welcome {name}" name=user.name}} This don't: {{formatMessage (intlGet "messages.welcome") name=user.name}}

Without the dot notation, both work. This works: {{formatMessage "Welcome {name}" name=name}} This too: {{formatMessage (intlGet "messages.welcome") name=name}}

caridy commented 9 years ago

this has nothing to do with handlebars-intl, this is handlebars, and the resolution process used by handlebars to resolve those props when passing it into a helper.