mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1015 from chrishunt/translate-keys
Get value for each property in i18n helper
This commit is contained in:
commit
638c656a06
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue