{"action":"created","issue":{"url":"https://api.github.com/repos/nmn/react-timeago/issues/38","repository_url":"https://api.github.com/repos/nmn/react-timeago","labels_url":"https://api.github.com/repos/nmn/react-timeago/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/nmn/react-timeago/issues/38/comments","events_url":"https://api.github.com/repos/nmn/react-timeago/issues/38/events","html_url":"https://github.com/nmn/react-timeago/pull/38","id":162204898,"number":38,"title":"Add Korean Locale, npm package","user":{"login":"devmario","id":976573,"avatar_url":"https://avatars.githubusercontent.com/u/976573?v=3","gravatar_id":"","url":"https://api.github.com/users/devmario","html_url":"https://github.com/devmario","followers_url":"https://api.github.com/users/devmario/followers","following_url":"https://api.github.com/users/devmario/following{/other_user}","gists_url":"https://api.github.com/users/devmario/gists{/gist_id}","starred_url":"https://api.github.com/users/devmario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devmario/subscriptions","organizations_url":"https://api.github.com/users/devmario/orgs","repos_url":"https://api.github.com/users/devmario/repos","events_url":"https://api.github.com/users/devmario/events{/privacy}","received_events_url":"https://api.github.com/users/devmario/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-24T18:33:19Z","updated_at":"2016-07-10T03:17:31Z","closed_at":"2016-07-07T02:48:28Z","pull_request":{"url":"https://api.github.com/repos/nmn/react-timeago/pulls/38","html_url":"https://github.com/nmn/react-timeago/pull/38","diff_url":"https://github.com/nmn/react-timeago/pull/38.diff","patch_url":"https://github.com/nmn/react-timeago/pull/38.patch"},"body":"Thx your code.\r\n\r\nCause I need Korean Locale,\r\nI Added Korean locale feature.\r\n\r\nSee example\r\n```\r\n/* @flow */\r\nimport React from 'react'\r\nimport ReactDom from 'react-dom'\r\nimport TimeAgo from '../../src/index'\r\nimport localeKR from '../../src/localeKR'\r\n\r\nReactDom.render(\r\n    <div>\r\n        <p>\r\n            You opened this page {' '}\r\n            <TimeAgo date={Date.now()}/>\r\n        </p>\r\n        <p>\r\n            이문서는 {' '}\r\n            <TimeAgo date={Date.now()} unitStrings={localeKR}/>\r\n            에 열었습니다.\r\n        </p>\r\n    </div>,\r\n    document.getElementById('app')\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/nmn/react-timeago/issues/comments/231568359","html_url":"https://github.com/nmn/react-timeago/pull/38#issuecomment-231568359","issue_url":"https://api.github.com/repos/nmn/react-timeago/issues/38","id":231568359,"user":{"login":"nmn","id":3582514,"avatar_url":"https://avatars.githubusercontent.com/u/3582514?v=3","gravatar_id":"","url":"https://api.github.com/users/nmn","html_url":"https://github.com/nmn","followers_url":"https://api.github.com/users/nmn/followers","following_url":"https://api.github.com/users/nmn/following{/other_user}","gists_url":"https://api.github.com/users/nmn/gists{/gist_id}","starred_url":"https://api.github.com/users/nmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmn/subscriptions","organizations_url":"https://api.github.com/users/nmn/orgs","repos_url":"https://api.github.com/users/nmn/repos","events_url":"https://api.github.com/users/nmn/events{/privacy}","received_events_url":"https://api.github.com/users/nmn/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T03:17:31Z","updated_at":"2016-07-10T03:17:31Z","body":"@devmario I just release v3.1.1 with support for all the languages currently supported by jquery-timeago.\r\nI had to copy the strings over as the format didn't match.\r\n\r\nThis is how to use korean language with react-timeago:\r\n\r\n```js\r\nimport TimeAgo from 'react-timeago';\r\nimport buildFormatter from 'react-timeago/formatters/buildFormatter';\r\nimport korean from 'react-timeago/language-strings/ko';\r\n\r\nconst formatter = buildFormatter(korean);\r\n\r\n<TimeAgo date={date} formatter={formatter} />\r\n```\r\n\r\nI hope that's good enough. I'll slowly add more files in the formatters folder so that the formatters are so you can just directly import a formatter instead of manually building it.\r\n\r\nPlease let me know if something doesn't work right. And any fixes to the language strings for Korean are most welcome."}}
{"actor":{"display_login":"nmn"}}