mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
Merge pull request #1015 from chrishunt/translate-keys
Get value for each property in i18n helper
This commit is contained in:
commit
638c656a06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user