{"action":"created","issue":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/233","repository_url":"https://api.github.com/repos/ocombe/ng2-translate","labels_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/233/comments","events_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/233/events","html_url":"https://github.com/ocombe/ng2-translate/issues/233","id":176855880,"number":233,"title":"Add possibility to pass a desired target language to TranslatePipe","user":{"login":"MZellhofer","id":5822722,"avatar_url":"https://avatars.githubusercontent.com/u/5822722?v=3","gravatar_id":"","url":"https://api.github.com/users/MZellhofer","html_url":"https://github.com/MZellhofer","followers_url":"https://api.github.com/users/MZellhofer/followers","following_url":"https://api.github.com/users/MZellhofer/following{/other_user}","gists_url":"https://api.github.com/users/MZellhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/MZellhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MZellhofer/subscriptions","organizations_url":"https://api.github.com/users/MZellhofer/orgs","repos_url":"https://api.github.com/users/MZellhofer/repos","events_url":"https://api.github.com/users/MZellhofer/events{/privacy}","received_events_url":"https://api.github.com/users/MZellhofer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ocombe/ng2-translate/labels/Priority:%20low","name":"Priority: low","color":"009800"},{"url":"https://api.github.com/repos/ocombe/ng2-translate/labels/Status:%20help%20wanted","name":"Status: help wanted","color":"0052cc"},{"url":"https://api.github.com/repos/ocombe/ng2-translate/labels/Type:%20feature","name":"Type: feature","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-14T09:16:23Z","updated_at":"2016-09-14T09:53:26Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting\r\n[ ] support request => check the FAQ and search github for a similar issue before submitting\r\n[x] feature request\r\n```\r\n\r\n**Current behavior**\r\nUsing the `TranslatePipe`, there is no possibility to get a translation for a language other than the one that is set up - one can only pass `interpolateParams` to `TranslatePipe`.\r\n\r\n**Expected/desired behavior**\r\nIt would be cool if one could also pass the token of the desired langauge for the translation to the pipe in case you need to translate a key to two (or more) different languages on the same page. Of course, this could be handled via the `TranslateService` using a method or another custom pipe, but passing the langauge token to the pipe would be a more elegant solution for the user.\r\n\r\n```html\r\n<p>english: {{ some.key | translate }}</p>\r\n<p>french: {{ some.key | translate:'fr' }}</p>\r\n<p>german: {{ some.key | translate:'de' }}</p>\r\n```"},"comment":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/comments/246962828","html_url":"https://github.com/ocombe/ng2-translate/issues/233#issuecomment-246962828","issue_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/233","id":246962828,"user":{"login":"ocombe","id":265378,"avatar_url":"https://avatars.githubusercontent.com/u/265378?v=3","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T09:53:26Z","updated_at":"2016-09-14T09:53:26Z","body":"Hello, this is an interesting feature, but this requires some big changes in the code :)\r\n\r\nI keep it here, but don't expect this to be added soon unless someone else wants to do a PR"}}
{"actor":{"display_login":"ocombe"}}