{"action":"created","comment":{"url":"https://api.github.com/repos/etalab/inspire/pulls/comments/129924687","pull_request_review_id":52747130,"id":129924687,"diff_hunk":"@@ -7,14 +8,14 @@ import { colors } from '../../../tools.js'\n \n import { container } from './DoughnutChart.scss'\n \n-export function formatData(data) {\n+export function formatData(data, t) {\n   const labels = Object.keys(data)\n     .sort((a, b) => {\n       return data[a] < data[b]\n     })\n \n   return {\n-    labels,\n+    labels: labels.map(label => (t(label))),","path":"src/components/Charts/DoughnutChart/DoughnutChart.js","position":19,"original_position":19,"commit_id":"6c30bc40367286363c61229bbcd294ab2bbecf15","original_commit_id":"6c30bc40367286363c61229bbcd294ab2bbecf15","user":{"login":"tusbar","id":166147,"avatar_url":"https://avatars2.githubusercontent.com/u/166147?v=4","gravatar_id":"","url":"https://api.github.com/users/tusbar","html_url":"https://github.com/tusbar","followers_url":"https://api.github.com/users/tusbar/followers","following_url":"https://api.github.com/users/tusbar/following{/other_user}","gists_url":"https://api.github.com/users/tusbar/gists{/gist_id}","starred_url":"https://api.github.com/users/tusbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusbar/subscriptions","organizations_url":"https://api.github.com/users/tusbar/orgs","repos_url":"https://api.github.com/users/tusbar/repos","events_url":"https://api.github.com/users/tusbar/events{/privacy}","received_events_url":"https://api.github.com/users/tusbar/received_events","type":"User","site_admin":false},"body":"Parens not needed: `.map(label -> t(label))`","created_at":"2017-07-27T18:38:31Z","updated_at":"2017-07-27T18:52:27Z","html_url":"https://github.com/etalab/inspire/pull/415#discussion_r129924687","pull_request_url":"https://api.github.com/repos/etalab/inspire/pulls/415","_links":{"self":{"href":"https://api.github.com/repos/etalab/inspire/pulls/comments/129924687"},"html":{"href":"https://github.com/etalab/inspire/pull/415#discussion_r129924687"},"pull_request":{"href":"https://api.github.com/repos/etalab/inspire/pulls/415"}}},"pull_request":{"url":"https://api.github.com/repos/etalab/inspire/pulls/415","id":132291106,"html_url":"https://github.com/etalab/inspire/pull/415","diff_url":"https://github.com/etalab/inspire/pull/415.diff","patch_url":"https://github.com/etalab/inspire/pull/415.patch","issue_url":"https://api.github.com/repos/etalab/inspire/issues/415","number":415,"state":"open","locked":false,"title":"Internationalisation avec i18next (Partie 1)","user":{"login":"tmerlier","id":7040549,"avatar_url":"https://avatars0.githubusercontent.com/u/7040549?v=4","gravatar_id":"","url":"https://api.github.com/users/tmerlier","html_url":"https://github.com/tmerlier","followers_url":"https://api.github.com/users/tmerlier/followers","following_url":"https://api.github.com/users/tmerlier/following{/other_user}","gists_url":"https://api.github.com/users/tmerlier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmerlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmerlier/subscriptions","organizations_url":"https://api.github.com/users/tmerlier/orgs","repos_url":"https://api.github.com/users/tmerlier/repos","events_url":"https://api.github.com/users/tmerlier/events{/privacy}","received_events_url":"https://api.github.com/users/tmerlier/received_events","type":"User","site_admin":false},"body":"**Composants**:\r\n- Header\r\n- HomePage\r\n- Footer\r\n\r\n**Modules**:\r\n- Catalogs\r\n\r\n**Nouvelle fonctionnalité**:\r\n- Possibilité de changer la langue anglais/français","created_at":"2017-07-25T14:09:14Z","updated_at":"2017-07-27T18:52:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d955c7996dd523b4618b6b23593c2347d8d0ff54","assignee":{"login":"tmerlier","id":7040549,"avatar_url":"https://avatars0.githubusercontent.com/u/7040549?v=4","gravatar_id":"","url":"https://api.github.com/users/tmerlier","html_url":"https://github.com/tmerlier","followers_url":"https://api.github.com/users/tmerlier/followers","following_url":"https://api.github.com/users/tmerlier/following{/other_user}","gists_url":"https://api.github.com/users/tmerlier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmerlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmerlier/subscriptions","organizations_url":"https://api.github.com/users/tmerlier/orgs","repos_url":"https://api.github.com/users/tmerlier/repos","events_url":"https://api.github.com/users/tmerlier/events{/privacy}","received_events_url":"https://api.github.com/users/tmerlier/received_events","type":"User","site_admin":false},"assignees":[{"login":"tmerlier","id":7040549,"avatar_url":"https://avatars0.githubusercontent.com/u/7040549?v=4","gravatar_id":"","url":"https://api.github.com/users/tmerlier","html_url":"https://github.com/tmerlier","followers_url":"https://api.github.com/users/tmerlier/followers","following_url":"https://api.github.com/users/tmerlier/following{/other_user}","gists_url":"https://api.github.com/users/tmerlier/gists{/gist_id}","starred_url":"https://api.github.com/users/tmerlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmerlier/subscriptions","organizations_url":"https://api.github.com/users/tmerlier/orgs","repos_url":"https://api.github.com/users/tmerlier/repos","events_url":"https://api.github.com/users/tmerlier/events{/privacy}","received_events_url":"https://api.github.com/users/tmerlier/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"jdesboeufs","id":1231232,"avatar_url":"https://avatars2.githubusercontent.com/u/1231232?v=4","gravatar_id":"","url":"https://api.github.com/users/jdesboeufs","html_url":"https://github.com/jdesboeufs","followers_url":"https://api.github.com/users/jdesboeufs/followers","following_url":"https://api.github.com/users/jdesboeufs/following{/other_user}","gists_url":"https://api.github.com/users/jdesboeufs/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesboeufs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesboeufs/subscriptions","organizations_url":"https://api.github.com/users/jdesboeufs/orgs","repos_url":"https://api.github.com/users/jdesboeufs/repos","events_url":"https://api.github.com/users/jdesboeufs/events{/privacy}","received_events_url":"https://api.github.com/users/jdesboeufs/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/etalab/inspire/pulls/415/commits","review_comments_url":"https://api.github.com/repos/etalab/inspire/pulls/415/comments","review_comment_url":"https://api.github.com/repos/etalab/inspire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/etalab/inspire/issues/415/comments","statuses_url":"https://api.github.com/repos/etalab/inspire/statuses/6c30bc40367286363c61229bbcd294ab2bbecf15","head":{"label":"etalab:i18next","ref":"i18next","sha":"6c30bc40367286363c61229bbcd294ab2bbecf15","user":{"login":"etalab","id":5313610,"avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":67130793,"name":"inspire","full_name":"etalab/inspire","owner":{"login":"etalab","id":5313610,"avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/etalab/inspire","description":"La passerelle INSPIRE","fork":false,"url":"https://api.github.com/repos/etalab/inspire","forks_url":"https://api.github.com/repos/etalab/inspire/forks","keys_url":"https://api.github.com/repos/etalab/inspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/inspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/inspire/teams","hooks_url":"https://api.github.com/repos/etalab/inspire/hooks","issue_events_url":"https://api.github.com/repos/etalab/inspire/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/inspire/events","assignees_url":"https://api.github.com/repos/etalab/inspire/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/inspire/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/inspire/tags","blobs_url":"https://api.github.com/repos/etalab/inspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/inspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/inspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/inspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/inspire/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/inspire/languages","stargazers_url":"https://api.github.com/repos/etalab/inspire/stargazers","contributors_url":"https://api.github.com/repos/etalab/inspire/contributors","subscribers_url":"https://api.github.com/repos/etalab/inspire/subscribers","subscription_url":"https://api.github.com/repos/etalab/inspire/subscription","commits_url":"https://api.github.com/repos/etalab/inspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/inspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/inspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/inspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/inspire/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/inspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/inspire/merges","archive_url":"https://api.github.com/repos/etalab/inspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/inspire/downloads","issues_url":"https://api.github.com/repos/etalab/inspire/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/inspire/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/inspire/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/inspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/inspire/labels{/name}","releases_url":"https://api.github.com/repos/etalab/inspire/releases{/id}","deployments_url":"https://api.github.com/repos/etalab/inspire/deployments","created_at":"2016-09-01T12:51:35Z","updated_at":"2017-07-13T09:58:30Z","pushed_at":"2017-07-27T18:34:00Z","git_url":"git://github.com/etalab/inspire.git","ssh_url":"git@github.com:etalab/inspire.git","clone_url":"https://github.com/etalab/inspire.git","svn_url":"https://github.com/etalab/inspire","homepage":"https://inspire.data.gouv.fr","size":22421,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":37,"forks":6,"open_issues":37,"watchers":3,"default_branch":"master"}},"base":{"label":"etalab:master","ref":"master","sha":"24c370abd29635f2a232577c69d87ac375061e54","user":{"login":"etalab","id":5313610,"avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":67130793,"name":"inspire","full_name":"etalab/inspire","owner":{"login":"etalab","id":5313610,"avatar_url":"https://avatars1.githubusercontent.com/u/5313610?v=4","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/etalab/inspire","description":"La passerelle INSPIRE","fork":false,"url":"https://api.github.com/repos/etalab/inspire","forks_url":"https://api.github.com/repos/etalab/inspire/forks","keys_url":"https://api.github.com/repos/etalab/inspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/inspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/inspire/teams","hooks_url":"https://api.github.com/repos/etalab/inspire/hooks","issue_events_url":"https://api.github.com/repos/etalab/inspire/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/inspire/events","assignees_url":"https://api.github.com/repos/etalab/inspire/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/inspire/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/inspire/tags","blobs_url":"https://api.github.com/repos/etalab/inspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/inspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/inspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/inspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/inspire/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/inspire/languages","stargazers_url":"https://api.github.com/repos/etalab/inspire/stargazers","contributors_url":"https://api.github.com/repos/etalab/inspire/contributors","subscribers_url":"https://api.github.com/repos/etalab/inspire/subscribers","subscription_url":"https://api.github.com/repos/etalab/inspire/subscription","commits_url":"https://api.github.com/repos/etalab/inspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/inspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/inspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/inspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/inspire/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/inspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/inspire/merges","archive_url":"https://api.github.com/repos/etalab/inspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/inspire/downloads","issues_url":"https://api.github.com/repos/etalab/inspire/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/inspire/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/inspire/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/inspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/inspire/labels{/name}","releases_url":"https://api.github.com/repos/etalab/inspire/releases{/id}","deployments_url":"https://api.github.com/repos/etalab/inspire/deployments","created_at":"2016-09-01T12:51:35Z","updated_at":"2017-07-13T09:58:30Z","pushed_at":"2017-07-27T18:34:00Z","git_url":"git://github.com/etalab/inspire.git","ssh_url":"git@github.com:etalab/inspire.git","clone_url":"https://github.com/etalab/inspire.git","svn_url":"https://github.com/etalab/inspire","homepage":"https://inspire.data.gouv.fr","size":22421,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":37,"forks":6,"open_issues":37,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/etalab/inspire/pulls/415"},"html":{"href":"https://github.com/etalab/inspire/pull/415"},"issue":{"href":"https://api.github.com/repos/etalab/inspire/issues/415"},"comments":{"href":"https://api.github.com/repos/etalab/inspire/issues/415/comments"},"review_comments":{"href":"https://api.github.com/repos/etalab/inspire/pulls/415/comments"},"review_comment":{"href":"https://api.github.com/repos/etalab/inspire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/etalab/inspire/pulls/415/commits"},"statuses":{"href":"https://api.github.com/repos/etalab/inspire/statuses/6c30bc40367286363c61229bbcd294ab2bbecf15"}}}}
{"actor":{"display_login":"tusbar"}}