{"action":"created","issue":{"url":"https://api.github.com/repos/i18next/i18next/issues/362","labels_url":"https://api.github.com/repos/i18next/i18next/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/i18next/i18next/issues/362/comments","events_url":"https://api.github.com/repos/i18next/i18next/issues/362/events","html_url":"https://github.com/i18next/i18next/issues/362","id":59504738,"number":362,"title":"Complex / formatted plurals","user":{"login":"Robinson7D","id":1261701,"avatar_url":"https://avatars.githubusercontent.com/u/1261701?v=3","gravatar_id":"","url":"https://api.github.com/users/Robinson7D","html_url":"https://github.com/Robinson7D","followers_url":"https://api.github.com/users/Robinson7D/followers","following_url":"https://api.github.com/users/Robinson7D/following{/other_user}","gists_url":"https://api.github.com/users/Robinson7D/gists{/gist_id}","starred_url":"https://api.github.com/users/Robinson7D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robinson7D/subscriptions","organizations_url":"https://api.github.com/users/Robinson7D/orgs","repos_url":"https://api.github.com/users/Robinson7D/repos","events_url":"https://api.github.com/users/Robinson7D/events{/privacy}","received_events_url":"https://api.github.com/users/Robinson7D/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T16:28:19Z","updated_at":"2015-03-02T19:20:47Z","closed_at":null,"body":"Currently it doesn't seem possible to have a plural-friendly translation for a formatted number (e.g. `1,000,000 people` vs `1 person`)\r\n\r\nIt doesn't look like there's a way to format these numbers before calling `applyReplacement`. My instinct instead was to just format the number before passing it into the count field, but from what I can tell the `needsPlural` function depends on `count` not being a String. \r\n\r\nI'm not sure how common this scenario is, but it might make sense to parse `count` for a number instead."},"comment":{"url":"https://api.github.com/repos/i18next/i18next/issues/comments/76789062","html_url":"https://github.com/i18next/i18next/issues/362#issuecomment-76789062","issue_url":"https://api.github.com/repos/i18next/i18next/issues/362","id":76789062,"user":{"login":"jamuhl","id":977772,"avatar_url":"https://avatars.githubusercontent.com/u/977772?v=3","gravatar_id":"","url":"https://api.github.com/users/jamuhl","html_url":"https://github.com/jamuhl","followers_url":"https://api.github.com/users/jamuhl/followers","following_url":"https://api.github.com/users/jamuhl/following{/other_user}","gists_url":"https://api.github.com/users/jamuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/jamuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamuhl/subscriptions","organizations_url":"https://api.github.com/users/jamuhl/orgs","repos_url":"https://api.github.com/users/jamuhl/repos","events_url":"https://api.github.com/users/jamuhl/events{/privacy}","received_events_url":"https://api.github.com/users/jamuhl/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T19:20:47Z","updated_at":"2015-03-02T19:20:47Z","body":"there is no numeral parser included in i18next. i personally use numeral.js and pass parsed value and count value, like:\r\n\r\n````\r\nkey: '__parsedCount__ item'\r\nkey_plural: '__parsedCount__ items'\r\n\r\ni18n.t('key', {parsedCount: '1,000', count: 1000});\r\n````\r\n\r\nAlternatively you could add some postProcessor parsing any number in text to some formatted number."}}