{"action":"created","comment":{"url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/comments/41948265","id":41948265,"diff_hunk":"@@ -0,0 +1,33 @@\n+import {LIBERAL, CONSERVATIVE, NDP, NO_POLICY_LISTED, TOPICS, MADE_BY, SUGGEST_EDIT} from './constants';\n+\n+let translations = new Map();\n+translations.set(NDP, {en: 'NDP', fr: 'NPD'});\n+translations.set(CONSERVATIVE, {en: 'Conservatives', fr: 'Conservateur'});\n+translations.set(LIBERAL, {en: 'Liberals', fr: 'Libéral'});\n+translations.set(NO_POLICY_LISTED, {en: 'No policy', fr: 'Absence de politique'});\n+translations.set(TOPICS, {en: 'Topics', fr: 'Sujets'});\n+translations.set(MADE_BY, {en: 'Made by', fr: 'Fait par'});\n+translations.set(SUGGEST_EDIT, {en: 'Suggest edit', fr: 'Suggérer modifier'});","path":"app/js/util/i18n.js","position":10,"original_position":10,"commit_id":"f519755af504de2bb74133a3db016f7ef5bd1bad","original_commit_id":"f519755af504de2bb74133a3db016f7ef5bd1bad","user":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"body":"@mlhamel how do these translations sound to you? I used google translate to help me :flushed: ","created_at":"2015-10-14T02:00:43Z","updated_at":"2015-10-14T02:00:43Z","html_url":"https://github.com/jahfer/ourpolitics/pull/12#discussion_r41948265","pull_request_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/comments/41948265"},"html":{"href":"https://github.com/jahfer/ourpolitics/pull/12#discussion_r41948265"},"pull_request":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12","id":47610316,"html_url":"https://github.com/jahfer/ourpolitics/pull/12","diff_url":"https://github.com/jahfer/ourpolitics/pull/12.diff","patch_url":"https://github.com/jahfer/ourpolitics/pull/12.patch","issue_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/12","number":12,"state":"open","locked":false,"title":"Add french translation to page","user":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"body":"Trying to make the site easier to flip between English and French, I added a little i18n object that lets you flip the locale, which will adjust the contents as required.","created_at":"2015-10-14T01:59:53Z","updated_at":"2015-10-14T02:00:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"594cebd9ff006299c99509b44242d7de61c42a26","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12/commits","review_comments_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12/comments","review_comment_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/12/comments","statuses_url":"https://api.github.com/repos/jahfer/ourpolitics/statuses/f519755af504de2bb74133a3db016f7ef5bd1bad","head":{"label":"jahfer:i18n-support","ref":"i18n-support","sha":"f519755af504de2bb74133a3db016f7ef5bd1bad","user":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"repo":{"id":41650997,"name":"ourpolitics","full_name":"jahfer/ourpolitics","owner":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jahfer/ourpolitics","description":"Code for Our Politics","fork":false,"url":"https://api.github.com/repos/jahfer/ourpolitics","forks_url":"https://api.github.com/repos/jahfer/ourpolitics/forks","keys_url":"https://api.github.com/repos/jahfer/ourpolitics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jahfer/ourpolitics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jahfer/ourpolitics/teams","hooks_url":"https://api.github.com/repos/jahfer/ourpolitics/hooks","issue_events_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/events{/number}","events_url":"https://api.github.com/repos/jahfer/ourpolitics/events","assignees_url":"https://api.github.com/repos/jahfer/ourpolitics/assignees{/user}","branches_url":"https://api.github.com/repos/jahfer/ourpolitics/branches{/branch}","tags_url":"https://api.github.com/repos/jahfer/ourpolitics/tags","blobs_url":"https://api.github.com/repos/jahfer/ourpolitics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jahfer/ourpolitics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jahfer/ourpolitics/git/refs{/sha}","trees_url":"https://api.github.com/repos/jahfer/ourpolitics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jahfer/ourpolitics/statuses/{sha}","languages_url":"https://api.github.com/repos/jahfer/ourpolitics/languages","stargazers_url":"https://api.github.com/repos/jahfer/ourpolitics/stargazers","contributors_url":"https://api.github.com/repos/jahfer/ourpolitics/contributors","subscribers_url":"https://api.github.com/repos/jahfer/ourpolitics/subscribers","subscription_url":"https://api.github.com/repos/jahfer/ourpolitics/subscription","commits_url":"https://api.github.com/repos/jahfer/ourpolitics/commits{/sha}","git_commits_url":"https://api.github.com/repos/jahfer/ourpolitics/git/commits{/sha}","comments_url":"https://api.github.com/repos/jahfer/ourpolitics/comments{/number}","issue_comment_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/comments{/number}","contents_url":"https://api.github.com/repos/jahfer/ourpolitics/contents/{+path}","compare_url":"https://api.github.com/repos/jahfer/ourpolitics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jahfer/ourpolitics/merges","archive_url":"https://api.github.com/repos/jahfer/ourpolitics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jahfer/ourpolitics/downloads","issues_url":"https://api.github.com/repos/jahfer/ourpolitics/issues{/number}","pulls_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls{/number}","milestones_url":"https://api.github.com/repos/jahfer/ourpolitics/milestones{/number}","notifications_url":"https://api.github.com/repos/jahfer/ourpolitics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jahfer/ourpolitics/labels{/name}","releases_url":"https://api.github.com/repos/jahfer/ourpolitics/releases{/id}","created_at":"2015-08-31T02:14:41Z","updated_at":"2015-10-03T19:56:52Z","pushed_at":"2015-10-14T01:59:54Z","git_url":"git://github.com/jahfer/ourpolitics.git","ssh_url":"git@github.com:jahfer/ourpolitics.git","clone_url":"https://github.com/jahfer/ourpolitics.git","svn_url":"https://github.com/jahfer/ourpolitics","homepage":"http://ourpolitics.ca","size":7306,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"jahfer:master","ref":"master","sha":"f12c6a51109b9008eaa6a4a954789e0dc1a17da5","user":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"repo":{"id":41650997,"name":"ourpolitics","full_name":"jahfer/ourpolitics","owner":{"login":"jahfer","id":370323,"avatar_url":"https://avatars.githubusercontent.com/u/370323?v=3","gravatar_id":"","url":"https://api.github.com/users/jahfer","html_url":"https://github.com/jahfer","followers_url":"https://api.github.com/users/jahfer/followers","following_url":"https://api.github.com/users/jahfer/following{/other_user}","gists_url":"https://api.github.com/users/jahfer/gists{/gist_id}","starred_url":"https://api.github.com/users/jahfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahfer/subscriptions","organizations_url":"https://api.github.com/users/jahfer/orgs","repos_url":"https://api.github.com/users/jahfer/repos","events_url":"https://api.github.com/users/jahfer/events{/privacy}","received_events_url":"https://api.github.com/users/jahfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jahfer/ourpolitics","description":"Code for Our Politics","fork":false,"url":"https://api.github.com/repos/jahfer/ourpolitics","forks_url":"https://api.github.com/repos/jahfer/ourpolitics/forks","keys_url":"https://api.github.com/repos/jahfer/ourpolitics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jahfer/ourpolitics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jahfer/ourpolitics/teams","hooks_url":"https://api.github.com/repos/jahfer/ourpolitics/hooks","issue_events_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/events{/number}","events_url":"https://api.github.com/repos/jahfer/ourpolitics/events","assignees_url":"https://api.github.com/repos/jahfer/ourpolitics/assignees{/user}","branches_url":"https://api.github.com/repos/jahfer/ourpolitics/branches{/branch}","tags_url":"https://api.github.com/repos/jahfer/ourpolitics/tags","blobs_url":"https://api.github.com/repos/jahfer/ourpolitics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jahfer/ourpolitics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jahfer/ourpolitics/git/refs{/sha}","trees_url":"https://api.github.com/repos/jahfer/ourpolitics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jahfer/ourpolitics/statuses/{sha}","languages_url":"https://api.github.com/repos/jahfer/ourpolitics/languages","stargazers_url":"https://api.github.com/repos/jahfer/ourpolitics/stargazers","contributors_url":"https://api.github.com/repos/jahfer/ourpolitics/contributors","subscribers_url":"https://api.github.com/repos/jahfer/ourpolitics/subscribers","subscription_url":"https://api.github.com/repos/jahfer/ourpolitics/subscription","commits_url":"https://api.github.com/repos/jahfer/ourpolitics/commits{/sha}","git_commits_url":"https://api.github.com/repos/jahfer/ourpolitics/git/commits{/sha}","comments_url":"https://api.github.com/repos/jahfer/ourpolitics/comments{/number}","issue_comment_url":"https://api.github.com/repos/jahfer/ourpolitics/issues/comments{/number}","contents_url":"https://api.github.com/repos/jahfer/ourpolitics/contents/{+path}","compare_url":"https://api.github.com/repos/jahfer/ourpolitics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jahfer/ourpolitics/merges","archive_url":"https://api.github.com/repos/jahfer/ourpolitics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jahfer/ourpolitics/downloads","issues_url":"https://api.github.com/repos/jahfer/ourpolitics/issues{/number}","pulls_url":"https://api.github.com/repos/jahfer/ourpolitics/pulls{/number}","milestones_url":"https://api.github.com/repos/jahfer/ourpolitics/milestones{/number}","notifications_url":"https://api.github.com/repos/jahfer/ourpolitics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jahfer/ourpolitics/labels{/name}","releases_url":"https://api.github.com/repos/jahfer/ourpolitics/releases{/id}","created_at":"2015-08-31T02:14:41Z","updated_at":"2015-10-03T19:56:52Z","pushed_at":"2015-10-14T01:59:54Z","git_url":"git://github.com/jahfer/ourpolitics.git","ssh_url":"git@github.com:jahfer/ourpolitics.git","clone_url":"https://github.com/jahfer/ourpolitics.git","svn_url":"https://github.com/jahfer/ourpolitics","homepage":"http://ourpolitics.ca","size":7306,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12"},"html":{"href":"https://github.com/jahfer/ourpolitics/pull/12"},"issue":{"href":"https://api.github.com/repos/jahfer/ourpolitics/issues/12"},"comments":{"href":"https://api.github.com/repos/jahfer/ourpolitics/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jahfer/ourpolitics/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/jahfer/ourpolitics/statuses/f519755af504de2bb74133a3db016f7ef5bd1bad"}}}}