{"action":"opened","number":94,"pull_request":{"url":"https://api.github.com/repos/APSL/redux-i18n/pulls/94","id":219304142,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MzA0MTQy","html_url":"https://github.com/APSL/redux-i18n/pull/94","diff_url":"https://github.com/APSL/redux-i18n/pull/94.diff","patch_url":"https://github.com/APSL/redux-i18n/pull/94.patch","issue_url":"https://api.github.com/repos/APSL/redux-i18n/issues/94","number":94,"state":"open","locked":false,"title":"feat(translation): Implement new translation interface","user":{"login":"mehranhatami","id":6114456,"node_id":"MDQ6VXNlcjYxMTQ0NTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6114456?v=4","gravatar_id":"","url":"https://api.github.com/users/mehranhatami","html_url":"https://github.com/mehranhatami","followers_url":"https://api.github.com/users/mehranhatami/followers","following_url":"https://api.github.com/users/mehranhatami/following{/other_user}","gists_url":"https://api.github.com/users/mehranhatami/gists{/gist_id}","starred_url":"https://api.github.com/users/mehranhatami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehranhatami/subscriptions","organizations_url":"https://api.github.com/users/mehranhatami/orgs","repos_url":"https://api.github.com/users/mehranhatami/repos","events_url":"https://api.github.com/users/mehranhatami/events{/privacy}","received_events_url":"https://api.github.com/users/mehranhatami/received_events","type":"User","site_admin":false},"body":"Now we can use this API like this:\r\n\r\n```javascript\r\nimport { localize, renderMessage, Message, PluralMessage } from 'redux-i18n';\r\n\r\nclass AddCollection extends React.Component {\r\n  static contextTypes = {\r\n    t: PropTypes.func.isRequired,\r\n  };\r\n\r\n  static propTypes = {\r\n    translateMessage: PropTypes.func.isRequired,\r\n    translatePluralMessage: PropTypes.func.isRequired,\r\n  };\r\n\r\n  render() {\r\n    return (\r\n      <React.Fragment>\r\n        <div className={style.Content}>\r\n          <Message text=\"Collection name\" description=\"The name of a user collection which could have different access levels\" />\r\n          <Message text=\"Collection name : {collectionName}\" values={{ collectionName: 'Mehran Collection' }} description=\"The name of a user collection\" />\r\n          <PluralMessage\r\n            texts={[\r\n              'The user was successfully added to the group {group}',\r\n              '{count} users were successfully added to the group {group}',\r\n            ]}\r\n            pluralCondition=\"count\"\r\n            values={{ group: 'Oneflow Group', count: 1 }}\r\n            description=\"The name of a user collection\"\r\n          />\r\n          <PluralMessage\r\n            texts={[\r\n              'The user was successfully added to the group {group}',\r\n              '{count} users were successfully added to the group {group}',\r\n            ]}\r\n            pluralCondition=\"count\"\r\n            values={{ group: 'Oneflow Group', count: 11 }}\r\n            description=\"The name of a user collection\"\r\n          />\r\n          <Field\r\n            name=\"name\"\r\n            label={<Message text=\"Collection name\" description=\"Input field for the collection name\" />}\r\n            placeholder={this.props.translateMessage({\r\n              text: 'Enter collection name',\r\n              description: 'Input field for the placeholder of collection name field in AddCollection page',\r\n            })}\r\n            component={TextField}\r\n            validate={this.validations}\r\n            maxLength={50}\r\n          />\r\n        </div>\r\n        <div className={style.Content}>\r\n          <Field\r\n            name=\"description\"\r\n            label={this.context.t('Description')}\r\n            placeholder={this.props.translatePluralMessage({\r\n              texts: ['Enter a description for this collection', 'Enter a description for these collections'],\r\n              pluralCondition: 'count',\r\n              values: {\r\n                count: 11,\r\n              },\r\n              description: 'Each collection has a description and this message is to ask the user for one',\r\n            })}\r\n            component={TextArea}\r\n            validateFields={[]}\r\n            maxLength={300}\r\n          />\r\n        </div>\r\n      </React.Fragment>\r\n    );\r\n  }\r\n}\r\n\r\nexport default addEntityForm(localize()(AddCollection));\r\n```","created_at":"2018-10-01T09:04:31Z","updated_at":"2018-10-01T09:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/APSL/redux-i18n/pulls/94/commits","review_comments_url":"https://api.github.com/repos/APSL/redux-i18n/pulls/94/comments","review_comment_url":"https://api.github.com/repos/APSL/redux-i18n/pulls/comments{/number}","comments_url":"https://api.github.com/repos/APSL/redux-i18n/issues/94/comments","statuses_url":"https://api.github.com/repos/APSL/redux-i18n/statuses/cb9fff0a115d88f5e37dfddd2cfbb0eb26ea3f49","head":{"label":"Flowsystem:feat/trasnlation-customizations","ref":"feat/trasnlation-customizations","sha":"cb9fff0a115d88f5e37dfddd2cfbb0eb26ea3f49","user":{"login":"Flowsystem","id":2269381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjkzODE=","avatar_url":"https://avatars2.githubusercontent.com/u/2269381?v=4","gravatar_id":"","url":"https://api.github.com/users/Flowsystem","html_url":"https://github.com/Flowsystem","followers_url":"https://api.github.com/users/Flowsystem/followers","following_url":"https://api.github.com/users/Flowsystem/following{/other_user}","gists_url":"https://api.github.com/users/Flowsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/Flowsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flowsystem/subscriptions","organizations_url":"https://api.github.com/users/Flowsystem/orgs","repos_url":"https://api.github.com/users/Flowsystem/repos","events_url":"https://api.github.com/users/Flowsystem/events{/privacy}","received_events_url":"https://api.github.com/users/Flowsystem/received_events","type":"Organization","site_admin":false},"repo":{"id":150573889,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1NzM4ODk=","name":"redux-i18n","full_name":"Flowsystem/redux-i18n","private":false,"owner":{"login":"Flowsystem","id":2269381,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjkzODE=","avatar_url":"https://avatars2.githubusercontent.com/u/2269381?v=4","gravatar_id":"","url":"https://api.github.com/users/Flowsystem","html_url":"https://github.com/Flowsystem","followers_url":"https://api.github.com/users/Flowsystem/followers","following_url":"https://api.github.com/users/Flowsystem/following{/other_user}","gists_url":"https://api.github.com/users/Flowsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/Flowsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flowsystem/subscriptions","organizations_url":"https://api.github.com/users/Flowsystem/orgs","repos_url":"https://api.github.com/users/Flowsystem/repos","events_url":"https://api.github.com/users/Flowsystem/events{/privacy}","received_events_url":"https://api.github.com/users/Flowsystem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Flowsystem/redux-i18n","description":"A simple and powerful package for translate your react applications using react-redux.","fork":true,"url":"https://api.github.com/repos/Flowsystem/redux-i18n","forks_url":"https://api.github.com/repos/Flowsystem/redux-i18n/forks","keys_url":"https://api.github.com/repos/Flowsystem/redux-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flowsystem/redux-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flowsystem/redux-i18n/teams","hooks_url":"https://api.github.com/repos/Flowsystem/redux-i18n/hooks","issue_events_url":"https://api.github.com/repos/Flowsystem/redux-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/Flowsystem/redux-i18n/events","assignees_url":"https://api.github.com/repos/Flowsystem/redux-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/Flowsystem/redux-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/Flowsystem/redux-i18n/tags","blobs_url":"https://api.github.com/repos/Flowsystem/redux-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flowsystem/redux-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flowsystem/redux-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flowsystem/redux-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flowsystem/redux-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/Flowsystem/redux-i18n/languages","stargazers_url":"https://api.github.com/repos/Flowsystem/redux-i18n/stargazers","contributors_url":"https://api.github.com/repos/Flowsystem/redux-i18n/contributors","subscribers_url":"https://api.github.com/repos/Flowsystem/redux-i18n/subscribers","subscription_url":"https://api.github.com/repos/Flowsystem/redux-i18n/subscription","commits_url":"https://api.github.com/repos/Flowsystem/redux-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flowsystem/redux-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flowsystem/redux-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flowsystem/redux-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flowsystem/redux-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/Flowsystem/redux-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flowsystem/redux-i18n/merges","archive_url":"https://api.github.com/repos/Flowsystem/redux-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flowsystem/redux-i18n/downloads","issues_url":"https://api.github.com/repos/Flowsystem/redux-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/Flowsystem/redux-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/Flowsystem/redux-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/Flowsystem/redux-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flowsystem/redux-i18n/labels{/name}","releases_url":"https://api.github.com/repos/Flowsystem/redux-i18n/releases{/id}","deployments_url":"https://api.github.com/repos/Flowsystem/redux-i18n/deployments","created_at":"2018-09-27T11:06:28Z","updated_at":"2018-09-27T11:17:42Z","pushed_at":"2018-10-01T09:00:04Z","git_url":"git://github.com/Flowsystem/redux-i18n.git","ssh_url":"git@github.com:Flowsystem/redux-i18n.git","clone_url":"https://github.com/Flowsystem/redux-i18n.git","svn_url":"https://github.com/Flowsystem/redux-i18n","homepage":"","size":347,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"APSL:master","ref":"master","sha":"6dcea3b5744790afc5a21f7a20151b7186e4f6ba","user":{"login":"APSL","id":469968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2OTk2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/469968?v=4","gravatar_id":"","url":"https://api.github.com/users/APSL","html_url":"https://github.com/APSL","followers_url":"https://api.github.com/users/APSL/followers","following_url":"https://api.github.com/users/APSL/following{/other_user}","gists_url":"https://api.github.com/users/APSL/gists{/gist_id}","starred_url":"https://api.github.com/users/APSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APSL/subscriptions","organizations_url":"https://api.github.com/users/APSL/orgs","repos_url":"https://api.github.com/users/APSL/repos","events_url":"https://api.github.com/users/APSL/events{/privacy}","received_events_url":"https://api.github.com/users/APSL/received_events","type":"Organization","site_admin":false},"repo":{"id":59029008,"node_id":"MDEwOlJlcG9zaXRvcnk1OTAyOTAwOA==","name":"redux-i18n","full_name":"APSL/redux-i18n","private":false,"owner":{"login":"APSL","id":469968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2OTk2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/469968?v=4","gravatar_id":"","url":"https://api.github.com/users/APSL","html_url":"https://github.com/APSL","followers_url":"https://api.github.com/users/APSL/followers","following_url":"https://api.github.com/users/APSL/following{/other_user}","gists_url":"https://api.github.com/users/APSL/gists{/gist_id}","starred_url":"https://api.github.com/users/APSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APSL/subscriptions","organizations_url":"https://api.github.com/users/APSL/orgs","repos_url":"https://api.github.com/users/APSL/repos","events_url":"https://api.github.com/users/APSL/events{/privacy}","received_events_url":"https://api.github.com/users/APSL/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/APSL/redux-i18n","description":"A simple and powerful package for translate your react applications using react-redux.","fork":false,"url":"https://api.github.com/repos/APSL/redux-i18n","forks_url":"https://api.github.com/repos/APSL/redux-i18n/forks","keys_url":"https://api.github.com/repos/APSL/redux-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/APSL/redux-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/APSL/redux-i18n/teams","hooks_url":"https://api.github.com/repos/APSL/redux-i18n/hooks","issue_events_url":"https://api.github.com/repos/APSL/redux-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/APSL/redux-i18n/events","assignees_url":"https://api.github.com/repos/APSL/redux-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/APSL/redux-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/APSL/redux-i18n/tags","blobs_url":"https://api.github.com/repos/APSL/redux-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/APSL/redux-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/APSL/redux-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/APSL/redux-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/APSL/redux-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/APSL/redux-i18n/languages","stargazers_url":"https://api.github.com/repos/APSL/redux-i18n/stargazers","contributors_url":"https://api.github.com/repos/APSL/redux-i18n/contributors","subscribers_url":"https://api.github.com/repos/APSL/redux-i18n/subscribers","subscription_url":"https://api.github.com/repos/APSL/redux-i18n/subscription","commits_url":"https://api.github.com/repos/APSL/redux-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/APSL/redux-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/APSL/redux-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/APSL/redux-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/APSL/redux-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/APSL/redux-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/APSL/redux-i18n/merges","archive_url":"https://api.github.com/repos/APSL/redux-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/APSL/redux-i18n/downloads","issues_url":"https://api.github.com/repos/APSL/redux-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/APSL/redux-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/APSL/redux-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/APSL/redux-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/APSL/redux-i18n/labels{/name}","releases_url":"https://api.github.com/repos/APSL/redux-i18n/releases{/id}","deployments_url":"https://api.github.com/repos/APSL/redux-i18n/deployments","created_at":"2016-05-17T14:17:10Z","updated_at":"2018-09-28T14:40:10Z","pushed_at":"2018-09-26T13:10:23Z","git_url":"git://github.com/APSL/redux-i18n.git","ssh_url":"git@github.com:APSL/redux-i18n.git","clone_url":"https://github.com/APSL/redux-i18n.git","svn_url":"https://github.com/APSL/redux-i18n","homepage":"","size":347,"stargazers_count":177,"watchers_count":177,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":38,"open_issues":24,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/APSL/redux-i18n/pulls/94"},"html":{"href":"https://github.com/APSL/redux-i18n/pull/94"},"issue":{"href":"https://api.github.com/repos/APSL/redux-i18n/issues/94"},"comments":{"href":"https://api.github.com/repos/APSL/redux-i18n/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/APSL/redux-i18n/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/APSL/redux-i18n/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/APSL/redux-i18n/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/APSL/redux-i18n/statuses/cb9fff0a115d88f5e37dfddd2cfbb0eb26ea3f49"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":112,"deletions":18,"changed_files":6}}
{"actor":{"display_login":"mehranhatami"}}