Get value for each property in i18n helper
This commit is contained in:
parent
e116e9edbe
commit
48ee32f23e
|
@ -9,7 +9,7 @@ Ember.Handlebars.registerHelper('i18n', function(property, options) {
|
||||||
var params,
|
var params,
|
||||||
_this = this;
|
_this = this;
|
||||||
params = options.hash;
|
params = options.hash;
|
||||||
Object.keys(params, function(key, value) {
|
_.each(params, function(value, key) {
|
||||||
params[key] = Em.Handlebars.get(_this, value, options);
|
params[key] = Em.Handlebars.get(_this, value, options);
|
||||||
});
|
});
|
||||||
return Ember.String.i18n(property, params);
|
return Ember.String.i18n(property, params);
|
||||||
|
|
Loading…
Reference in New Issue