{"action":"created","issue":{"url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/423","repository_url":"https://api.github.com/repos/jamesarosen/ember-i18n","labels_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/423/comments","events_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/423/events","html_url":"https://github.com/jamesarosen/ember-i18n/pull/423","id":196150534,"number":423,"title":"RFC: Update helper to allow binding hash to be passed","user":{"login":"k-fish","id":6111995,"avatar_url":"https://avatars.githubusercontent.com/u/6111995?v=3","gravatar_id":"","url":"https://api.github.com/users/k-fish","html_url":"https://github.com/k-fish","followers_url":"https://api.github.com/users/k-fish/followers","following_url":"https://api.github.com/users/k-fish/following{/other_user}","gists_url":"https://api.github.com/users/k-fish/gists{/gist_id}","starred_url":"https://api.github.com/users/k-fish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-fish/subscriptions","organizations_url":"https://api.github.com/users/k-fish/orgs","repos_url":"https://api.github.com/users/k-fish/repos","events_url":"https://api.github.com/users/k-fish/events{/privacy}","received_events_url":"https://api.github.com/users/k-fish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-12-16T20:44:55Z","updated_at":"2016-12-17T04:24:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/423","html_url":"https://github.com/jamesarosen/ember-i18n/pull/423","diff_url":"https://github.com/jamesarosen/ember-i18n/pull/423.diff","patch_url":"https://github.com/jamesarosen/ember-i18n/pull/423.patch"},"body":"When translations need to occur across components or via services (for example, a flash message), it's easier to build a hash to send to the service to be rendered. \r\n\r\nA second parameter (non hash) should be able to be set to cover cases when a hash has been built and needs to be passed to the `{{t}}` helper.\r\n\r\nI'm not sure if this is in line with the vision for this addon, so this is just an RFC for now, I'm happy for comments or suggestions. Tests to come if this is all 👍 "},"comment":{"url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/comments/267742531","html_url":"https://github.com/jamesarosen/ember-i18n/pull/423#issuecomment-267742531","issue_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/423","id":267742531,"user":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T04:24:51Z","updated_at":"2016-12-17T04:24:51Z","body":"In my above example,\r\n```hbs\r\n{{#each errors as |error|}}\r\n  {{t error.key error}}\r\n{{/each}}\r\n```\r\nis equivalent to\r\n```hbs\r\n{{t 'errors.foo.invalid' key='errors.foo.invalid' foo=foo}}\r\n{{t 'errors.bar.invalid' key='errors.bar.invalid' bar=bar}}\r\n```\r\nThe translation doesn't have interpolations for `key`, so it throws them away. It _does_ have interpolations for `foo` and `bar` (respectively), and will interpolate them.\r\n\r\nThis functionality already exists in v4.0 due to the way Handlebars binding works."}}
{"actor":{"display_login":"jamesarosen"}}