Merge pull request #1015 from chrishunt/translate-keys

Get value for each property in i18n helper
This commit is contained in:
Sam 2013-06-11 16:57:04 -07:00
commit 638c656a06

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);