{"action":"created","comment":{"url":"https://api.github.com/repos/1636/1636-web/pulls/comments/37138123","id":37138123,"diff_hunk":"@@ -110,7 +119,17 @@ function requireAuth(nextState, transition) {\n   }\n }\n \n+@root(appState)\n export default class App extends React.Component {\n+  static childContextTypes = {","path":"src/App.jsx","position":101,"original_position":101,"commit_id":"35e4d091795e90dd323d374b0fe936a0006fc550","original_commit_id":"35e4d091795e90dd323d374b0fe936a0006fc550","user":{"login":"chcokr","id":3670967,"avatar_url":"https://avatars.githubusercontent.com/u/3670967?v=3","gravatar_id":"","url":"https://api.github.com/users/chcokr","html_url":"https://github.com/chcokr","followers_url":"https://api.github.com/users/chcokr/followers","following_url":"https://api.github.com/users/chcokr/following{/other_user}","gists_url":"https://api.github.com/users/chcokr/gists{/gist_id}","starred_url":"https://api.github.com/users/chcokr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chcokr/subscriptions","organizations_url":"https://api.github.com/users/chcokr/orgs","repos_url":"https://api.github.com/users/chcokr/repos","events_url":"https://api.github.com/users/chcokr/events{/privacy}","received_events_url":"https://api.github.com/users/chcokr/received_events","type":"User","site_admin":false},"body":"because `@root` already takes care of these","created_at":"2015-08-15T18:40:34Z","updated_at":"2015-08-15T18:40:34Z","html_url":"https://github.com/1636/1636-web/pull/73#discussion_r37138123","pull_request_url":"https://api.github.com/repos/1636/1636-web/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/1636/1636-web/pulls/comments/37138123"},"html":{"href":"https://github.com/1636/1636-web/pull/73#discussion_r37138123"},"pull_request":{"href":"https://api.github.com/repos/1636/1636-web/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/1636/1636-web/pulls/73","id":42523479,"html_url":"https://github.com/1636/1636-web/pull/73","diff_url":"https://github.com/1636/1636-web/pull/73.diff","patch_url":"https://github.com/1636/1636-web/pull/73.patch","issue_url":"https://api.github.com/repos/1636/1636-web/issues/73","number":73,"state":"open","locked":false,"title":"BindingTranslation","user":{"login":"eldermyoshida","id":3459052,"avatar_url":"https://avatars.githubusercontent.com/u/3459052?v=3","gravatar_id":"","url":"https://api.github.com/users/eldermyoshida","html_url":"https://github.com/eldermyoshida","followers_url":"https://api.github.com/users/eldermyoshida/followers","following_url":"https://api.github.com/users/eldermyoshida/following{/other_user}","gists_url":"https://api.github.com/users/eldermyoshida/gists{/gist_id}","starred_url":"https://api.github.com/users/eldermyoshida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eldermyoshida/subscriptions","organizations_url":"https://api.github.com/users/eldermyoshida/orgs","repos_url":"https://api.github.com/users/eldermyoshida/repos","events_url":"https://api.github.com/users/eldermyoshida/events{/privacy}","received_events_url":"https://api.github.com/users/eldermyoshida/received_events","type":"User","site_admin":false},"body":"* Baobab was not being able to reach to components replaced in by\r\nreact-router.\r\n* Locale file could not handle the case for text passed as atribute.\r\n* Fixed issue by passing baobab tree to main app children using\r\ncontextType.\r\n* Using now appState as main source of locale information.\r\n* To implement translation:\r\n1. import the baobab annotation for branches:\r\nimport {branch} from 'baobab-react/decorators';\r\n\r\n2. Annotate the class with:\r\n```\r\n@branch({\r\n    cursors: {\r\n      locale: ['locale']\r\n   }\r\n})\r\n```\r\n3. use [locale] to select the right property of any object containing\r\nthe ‘en’ or ‘cn’ as fields.\r\n\r\n4. Look up https://github.com/Yomguithereal/baobab-react for reference.","created_at":"2015-08-15T18:22:53Z","updated_at":"2015-08-15T18:40:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5d7e94247102f89d9b3988f9acc6e147df6d4a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/1636/1636-web/pulls/73/commits","review_comments_url":"https://api.github.com/repos/1636/1636-web/pulls/73/comments","review_comment_url":"https://api.github.com/repos/1636/1636-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/1636/1636-web/issues/73/comments","statuses_url":"https://api.github.com/repos/1636/1636-web/statuses/35e4d091795e90dd323d374b0fe936a0006fc550","head":{"label":"1636:BindingTranslation","ref":"BindingTranslation","sha":"35e4d091795e90dd323d374b0fe936a0006fc550","user":{"login":"1636","id":13516113,"avatar_url":"https://avatars.githubusercontent.com/u/13516113?v=3","gravatar_id":"","url":"https://api.github.com/users/1636","html_url":"https://github.com/1636","followers_url":"https://api.github.com/users/1636/followers","following_url":"https://api.github.com/users/1636/following{/other_user}","gists_url":"https://api.github.com/users/1636/gists{/gist_id}","starred_url":"https://api.github.com/users/1636/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1636/subscriptions","organizations_url":"https://api.github.com/users/1636/orgs","repos_url":"https://api.github.com/users/1636/repos","events_url":"https://api.github.com/users/1636/events{/privacy}","received_events_url":"https://api.github.com/users/1636/received_events","type":"Organization","site_admin":false},"repo":{"id":39996829,"name":"1636-web","full_name":"1636/1636-web","owner":{"login":"1636","id":13516113,"avatar_url":"https://avatars.githubusercontent.com/u/13516113?v=3","gravatar_id":"","url":"https://api.github.com/users/1636","html_url":"https://github.com/1636","followers_url":"https://api.github.com/users/1636/followers","following_url":"https://api.github.com/users/1636/following{/other_user}","gists_url":"https://api.github.com/users/1636/gists{/gist_id}","starred_url":"https://api.github.com/users/1636/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1636/subscriptions","organizations_url":"https://api.github.com/users/1636/orgs","repos_url":"https://api.github.com/users/1636/repos","events_url":"https://api.github.com/users/1636/events{/privacy}","received_events_url":"https://api.github.com/users/1636/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/1636/1636-web","description":"https://go1636.com/","fork":false,"url":"https://api.github.com/repos/1636/1636-web","forks_url":"https://api.github.com/repos/1636/1636-web/forks","keys_url":"https://api.github.com/repos/1636/1636-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1636/1636-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1636/1636-web/teams","hooks_url":"https://api.github.com/repos/1636/1636-web/hooks","issue_events_url":"https://api.github.com/repos/1636/1636-web/issues/events{/number}","events_url":"https://api.github.com/repos/1636/1636-web/events","assignees_url":"https://api.github.com/repos/1636/1636-web/assignees{/user}","branches_url":"https://api.github.com/repos/1636/1636-web/branches{/branch}","tags_url":"https://api.github.com/repos/1636/1636-web/tags","blobs_url":"https://api.github.com/repos/1636/1636-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1636/1636-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1636/1636-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/1636/1636-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1636/1636-web/statuses/{sha}","languages_url":"https://api.github.com/repos/1636/1636-web/languages","stargazers_url":"https://api.github.com/repos/1636/1636-web/stargazers","contributors_url":"https://api.github.com/repos/1636/1636-web/contributors","subscribers_url":"https://api.github.com/repos/1636/1636-web/subscribers","subscription_url":"https://api.github.com/repos/1636/1636-web/subscription","commits_url":"https://api.github.com/repos/1636/1636-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/1636/1636-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/1636/1636-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/1636/1636-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/1636/1636-web/contents/{+path}","compare_url":"https://api.github.com/repos/1636/1636-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1636/1636-web/merges","archive_url":"https://api.github.com/repos/1636/1636-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1636/1636-web/downloads","issues_url":"https://api.github.com/repos/1636/1636-web/issues{/number}","pulls_url":"https://api.github.com/repos/1636/1636-web/pulls{/number}","milestones_url":"https://api.github.com/repos/1636/1636-web/milestones{/number}","notifications_url":"https://api.github.com/repos/1636/1636-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1636/1636-web/labels{/name}","releases_url":"https://api.github.com/repos/1636/1636-web/releases{/id}","created_at":"2015-07-31T09:05:42Z","updated_at":"2015-07-31T09:10:00Z","pushed_at":"2015-08-15T18:36:59Z","git_url":"git://github.com/1636/1636-web.git","ssh_url":"git@github.com:1636/1636-web.git","clone_url":"https://github.com/1636/1636-web.git","svn_url":"https://github.com/1636/1636-web","homepage":null,"size":5062,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":1,"default_branch":"master"}},"base":{"label":"1636:master","ref":"master","sha":"6442441397900db54c650c5bb6efd97357889126","user":{"login":"1636","id":13516113,"avatar_url":"https://avatars.githubusercontent.com/u/13516113?v=3","gravatar_id":"","url":"https://api.github.com/users/1636","html_url":"https://github.com/1636","followers_url":"https://api.github.com/users/1636/followers","following_url":"https://api.github.com/users/1636/following{/other_user}","gists_url":"https://api.github.com/users/1636/gists{/gist_id}","starred_url":"https://api.github.com/users/1636/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1636/subscriptions","organizations_url":"https://api.github.com/users/1636/orgs","repos_url":"https://api.github.com/users/1636/repos","events_url":"https://api.github.com/users/1636/events{/privacy}","received_events_url":"https://api.github.com/users/1636/received_events","type":"Organization","site_admin":false},"repo":{"id":39996829,"name":"1636-web","full_name":"1636/1636-web","owner":{"login":"1636","id":13516113,"avatar_url":"https://avatars.githubusercontent.com/u/13516113?v=3","gravatar_id":"","url":"https://api.github.com/users/1636","html_url":"https://github.com/1636","followers_url":"https://api.github.com/users/1636/followers","following_url":"https://api.github.com/users/1636/following{/other_user}","gists_url":"https://api.github.com/users/1636/gists{/gist_id}","starred_url":"https://api.github.com/users/1636/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1636/subscriptions","organizations_url":"https://api.github.com/users/1636/orgs","repos_url":"https://api.github.com/users/1636/repos","events_url":"https://api.github.com/users/1636/events{/privacy}","received_events_url":"https://api.github.com/users/1636/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/1636/1636-web","description":"https://go1636.com/","fork":false,"url":"https://api.github.com/repos/1636/1636-web","forks_url":"https://api.github.com/repos/1636/1636-web/forks","keys_url":"https://api.github.com/repos/1636/1636-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1636/1636-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1636/1636-web/teams","hooks_url":"https://api.github.com/repos/1636/1636-web/hooks","issue_events_url":"https://api.github.com/repos/1636/1636-web/issues/events{/number}","events_url":"https://api.github.com/repos/1636/1636-web/events","assignees_url":"https://api.github.com/repos/1636/1636-web/assignees{/user}","branches_url":"https://api.github.com/repos/1636/1636-web/branches{/branch}","tags_url":"https://api.github.com/repos/1636/1636-web/tags","blobs_url":"https://api.github.com/repos/1636/1636-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1636/1636-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1636/1636-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/1636/1636-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1636/1636-web/statuses/{sha}","languages_url":"https://api.github.com/repos/1636/1636-web/languages","stargazers_url":"https://api.github.com/repos/1636/1636-web/stargazers","contributors_url":"https://api.github.com/repos/1636/1636-web/contributors","subscribers_url":"https://api.github.com/repos/1636/1636-web/subscribers","subscription_url":"https://api.github.com/repos/1636/1636-web/subscription","commits_url":"https://api.github.com/repos/1636/1636-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/1636/1636-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/1636/1636-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/1636/1636-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/1636/1636-web/contents/{+path}","compare_url":"https://api.github.com/repos/1636/1636-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1636/1636-web/merges","archive_url":"https://api.github.com/repos/1636/1636-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1636/1636-web/downloads","issues_url":"https://api.github.com/repos/1636/1636-web/issues{/number}","pulls_url":"https://api.github.com/repos/1636/1636-web/pulls{/number}","milestones_url":"https://api.github.com/repos/1636/1636-web/milestones{/number}","notifications_url":"https://api.github.com/repos/1636/1636-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1636/1636-web/labels{/name}","releases_url":"https://api.github.com/repos/1636/1636-web/releases{/id}","created_at":"2015-07-31T09:05:42Z","updated_at":"2015-07-31T09:10:00Z","pushed_at":"2015-08-15T18:36:59Z","git_url":"git://github.com/1636/1636-web.git","ssh_url":"git@github.com:1636/1636-web.git","clone_url":"https://github.com/1636/1636-web.git","svn_url":"https://github.com/1636/1636-web","homepage":null,"size":5062,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/1636/1636-web/pulls/73"},"html":{"href":"https://github.com/1636/1636-web/pull/73"},"issue":{"href":"https://api.github.com/repos/1636/1636-web/issues/73"},"comments":{"href":"https://api.github.com/repos/1636/1636-web/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/1636/1636-web/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/1636/1636-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/1636/1636-web/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/1636/1636-web/statuses/35e4d091795e90dd323d374b0fe936a0006fc550"}}}}