{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/12820","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/12820/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/12820/comments","events_url":"https://api.github.com/repos/angular/angular/issues/12820/events","html_url":"https://github.com/angular/angular/issues/12820","id":188858120,"number":12820,"title":"i18n, cannot resource text from attributes","user":{"login":"jaska45","id":10090968,"avatar_url":"https://avatars.githubusercontent.com/u/10090968?v=3","gravatar_id":"","url":"https://api.github.com/users/jaska45","html_url":"https://github.com/jaska45","followers_url":"https://api.github.com/users/jaska45/followers","following_url":"https://api.github.com/users/jaska45/following{/other_user}","gists_url":"https://api.github.com/users/jaska45/gists{/gist_id}","starred_url":"https://api.github.com/users/jaska45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaska45/subscriptions","organizations_url":"https://api.github.com/users/jaska45/orgs","repos_url":"https://api.github.com/users/jaska45/repos","events_url":"https://api.github.com/users/jaska45/events{/privacy}","received_events_url":"https://api.github.com/users/jaska45/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-11T21:47:35Z","updated_at":"2016-11-11T22:01:14Z","closed_at":"2016-11-11T21:59:52Z","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[x] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n\r\nIf I have text in a HTML attribute like in the following placeholder attribute\r\n\r\n <input type=\"text\"\r\n        id=\"skuInput\"\r\n        placeholder=\"SKU text\"\r\n        name=\"sku\" ngModel>\r\n\r\nng-xi18n does not resource it.\r\n\r\ni18n attribute seems to tell xg-x18n to extract only the element text not the attributes.\r\n\r\n**Expected behavior**\r\n\r\nSome way to mark attribute to be extracted. Something like this\r\n\r\n      <input i18n_placeholder type=\"text\"\r\n        id=\"skuInput\"\r\n        placeholder=\"SKU sample\"\r\n        name=\"sku\" ngModel>\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'my-app',\r\n  template: `\r\n  <form #f=\"ngForm\"\r\n    (ngSubmit)=\"onSubmit(f.value)\"\r\n    class=\"ui form\">\r\n\r\n    <div class=\"field\">\r\n      <label i18n for=\"skuInput\">SKU</label>\r\n      <input i18n type=\"text\"\r\n        id=\"skuInput\"\r\n        placeholder=\"SKU sample\"\r\n        name=\"sku\" ngModel>\r\n    </div>\r\n    <button i18n type=\"submit\" class=\"ui button\">Submit</button>\r\n  </form>  \r\n  `\r\n})\r\nexport class AppComponent \r\n{ \r\n}\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\nMake localization possible\r\n\r\n**Please tell us about your environment:**\r\n\r\nWindows 8.1, VS Code 2.0.9, NPM 3.10.8\r\n\r\n* **Angular version:** 2.0.X\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n\r\nall\r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\n\r\nTypeScript 2.0.9\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\n\r\nv6.9.1\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/260065698","html_url":"https://github.com/angular/angular/issues/12820#issuecomment-260065698","issue_url":"https://api.github.com/repos/angular/angular/issues/12820","id":260065698,"user":{"login":"jaska45","id":10090968,"avatar_url":"https://avatars.githubusercontent.com/u/10090968?v=3","gravatar_id":"","url":"https://api.github.com/users/jaska45","html_url":"https://github.com/jaska45","followers_url":"https://api.github.com/users/jaska45/followers","following_url":"https://api.github.com/users/jaska45/following{/other_user}","gists_url":"https://api.github.com/users/jaska45/gists{/gist_id}","starred_url":"https://api.github.com/users/jaska45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaska45/subscriptions","organizations_url":"https://api.github.com/users/jaska45/orgs","repos_url":"https://api.github.com/users/jaska45/repos","events_url":"https://api.github.com/users/jaska45/events{/privacy}","received_events_url":"https://api.github.com/users/jaska45/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T22:01:14Z","updated_at":"2016-11-11T22:01:14Z","body":"Thanks. I tried i18n_placeholder and i18nplacehold but foget i18n-placeholder"}}
{"actor":{"display_login":"jaska45"}}