{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/9826","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/9826/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/9826/comments","events_url":"https://api.github.com/repos/angular/angular/issues/9826/events","html_url":"https://github.com/angular/angular/issues/9826","id":163932137,"number":9826,"title":"i18nPlural pipe not working rc.4","user":{"login":"m3chanic","id":15237925,"avatar_url":"https://avatars.githubusercontent.com/u/15237925?v=3","gravatar_id":"","url":"https://api.github.com/users/m3chanic","html_url":"https://github.com/m3chanic","followers_url":"https://api.github.com/users/m3chanic/followers","following_url":"https://api.github.com/users/m3chanic/following{/other_user}","gists_url":"https://api.github.com/users/m3chanic/gists{/gist_id}","starred_url":"https://api.github.com/users/m3chanic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m3chanic/subscriptions","organizations_url":"https://api.github.com/users/m3chanic/orgs","repos_url":"https://api.github.com/users/m3chanic/repos","events_url":"https://api.github.com/users/m3chanic/events{/privacy}","received_events_url":"https://api.github.com/users/m3chanic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T19:54:41Z","updated_at":"2016-07-05T19:54:41Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[X ] bug report\r\n[ ] 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\nplatform-browser.umd.js:1900 ORIGINAL EXCEPTION: No provider for NgLocalization!\r\n\r\n**Expected/desired behavior**\r\nThe i18nPlural pipe in the code below should output 'many items'. This had been working in rc.3\r\n\r\n**Reproduction of the problem**\r\n`import {Component} from '@angular/core';\r\nimport {I18nSelectPipe,I18nPluralPipe} from '@angular/common';\r\n\r\n@Component({\r\n  selector: 'i18n-mini-test',\r\n  template: `<h1>Begin Test </h1>\r\n             <br/><div>{{'hi' | i18nSelect : languageMapping}}</div>\r\n             <br/><div>{{'bye' | i18nSelect : languageMapping}}</div>\r\n             <br/>Number Items: {{numberItems}}\r\n             <br/><div>{{numberItems | i18nPlural : itemPluralMapping}}</div>\r\n             <h1>End Test</h1>\r\n             `,\r\n  pipes: [I18nSelectPipe, I18nPluralPipe]\r\n})\r\nexport class i18nMiniComponent {\r\n\r\n  itemPluralMapping: any;\r\n  languageMapping: any;\r\n\r\n  // Number of items being displayed, used for the plural mapping.\r\n  //\r\n  numberItems : number;\r\n\r\n  constructor(){\r\n    this.numberItems = 3;\r\n    this.itemPluralMapping = {\r\n      '=0' : 'no items',\r\n      '=1' : 'one item ',\r\n      '=2' : 'two items ',\r\n      'other' : 'many items '\r\n    };\r\n    this.languageMapping = {\r\n      'hi' : 'Hi',\r\n      'bye' : 'Bye'\r\n    };\r\n  }\r\n};\r\n`\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.4\r\n \r\n* **Browser:** [all | Chrome 51.0.2704.103 ] \r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart] \r\n"}}
{"actor":{"display_login":"m3chanic"}}