Get value for each property in i18n helper

This commit is contained in:
Chris Hunt 2013-06-11 16:42:12 -07:00
parent e116e9edbe
commit 48ee32f23e
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Ember.Handlebars.registerHelper('i18n', function(property, options) {
var params,
_this = this;
params = options.hash;
Object.keys(params, function(key, value) {
_.each(params, function(value, key) {
params[key] = Em.Handlebars.get(_this, value, options);
});
return Ember.String.i18n(property, params);