{"action":"created","comment":{"url":"https://api.github.com/repos/18F/identity-idp/pulls/comments/123049949","pull_request_review_id":45218271,"id":123049949,"diff_hunk":"@@ -130,7 +130,10 @@ def skip_session_expiration\n   end\n \n   def set_locale\n-    I18n.locale = params[:locale] || I18n.default_locale\n+    I18n.locale =\n+      http_accept_language.compatible_language_from(I18n.available_locales) ||\n+      params[:locale] ||\n+      I18n.default_locale","path":"app/controllers/application_controller.rb","position":8,"original_position":8,"commit_id":"241f46bec404a86c8629a2db500fb258eefab20a","original_commit_id":"241f46bec404a86c8629a2db500fb258eefab20a","user":{"login":"amoose","id":1328699,"avatar_url":"https://avatars3.githubusercontent.com/u/1328699?v=3","gravatar_id":"","url":"https://api.github.com/users/amoose","html_url":"https://github.com/amoose","followers_url":"https://api.github.com/users/amoose/followers","following_url":"https://api.github.com/users/amoose/following{/other_user}","gists_url":"https://api.github.com/users/amoose/gists{/gist_id}","starred_url":"https://api.github.com/users/amoose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoose/subscriptions","organizations_url":"https://api.github.com/users/amoose/orgs","repos_url":"https://api.github.com/users/amoose/repos","events_url":"https://api.github.com/users/amoose/events{/privacy}","received_events_url":"https://api.github.com/users/amoose/received_events","type":"User","site_admin":false},"body":"ah ok! no problem. Then, let's strip the params[:locale] from this PR and push without my commit in there. ","created_at":"2017-06-20T17:57:42Z","updated_at":"2017-06-20T17:57:42Z","html_url":"https://github.com/18F/identity-idp/pull/1488#discussion_r123049949","pull_request_url":"https://api.github.com/repos/18F/identity-idp/pulls/1488","_links":{"self":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/comments/123049949"},"html":{"href":"https://github.com/18F/identity-idp/pull/1488#discussion_r123049949"},"pull_request":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/1488"}}},"pull_request":{"url":"https://api.github.com/repos/18F/identity-idp/pulls/1488","id":125636772,"html_url":"https://github.com/18F/identity-idp/pull/1488","diff_url":"https://github.com/18F/identity-idp/pull/1488.diff","patch_url":"https://github.com/18F/identity-idp/pull/1488.patch","issue_url":"https://api.github.com/repos/18F/identity-idp/issues/1488","number":1488,"state":"open","locked":false,"title":"Use HTTP headers for i18n","user":{"login":"hursey013","id":1178494,"avatar_url":"https://avatars1.githubusercontent.com/u/1178494?v=3","gravatar_id":"","url":"https://api.github.com/users/hursey013","html_url":"https://github.com/hursey013","followers_url":"https://api.github.com/users/hursey013/followers","following_url":"https://api.github.com/users/hursey013/following{/other_user}","gists_url":"https://api.github.com/users/hursey013/gists{/gist_id}","starred_url":"https://api.github.com/users/hursey013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hursey013/subscriptions","organizations_url":"https://api.github.com/users/hursey013/orgs","repos_url":"https://api.github.com/users/hursey013/repos","events_url":"https://api.github.com/users/hursey013/events{/privacy}","received_events_url":"https://api.github.com/users/hursey013/received_events","type":"User","site_admin":false},"body":"This uses the [http_accept_language](https://github.com/iain/http_accept_language) gem to parse the `Accept-Language` header and match it up with our available translations.\r\n\r\n![screen shot 2017-06-14 at 11 36 34 am](https://user-images.githubusercontent.com/1178494/27143442-5c9ec34c-50fc-11e7-9dff-0f64927fa027.png)\r\n","created_at":"2017-06-14T16:16:58Z","updated_at":"2017-06-20T17:57:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"add03cff6b5bde7618f40f084d99be916f38acf7","assignee":{"login":"hursey013","id":1178494,"avatar_url":"https://avatars1.githubusercontent.com/u/1178494?v=3","gravatar_id":"","url":"https://api.github.com/users/hursey013","html_url":"https://github.com/hursey013","followers_url":"https://api.github.com/users/hursey013/followers","following_url":"https://api.github.com/users/hursey013/following{/other_user}","gists_url":"https://api.github.com/users/hursey013/gists{/gist_id}","starred_url":"https://api.github.com/users/hursey013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hursey013/subscriptions","organizations_url":"https://api.github.com/users/hursey013/orgs","repos_url":"https://api.github.com/users/hursey013/repos","events_url":"https://api.github.com/users/hursey013/events{/privacy}","received_events_url":"https://api.github.com/users/hursey013/received_events","type":"User","site_admin":false},"assignees":[{"login":"hursey013","id":1178494,"avatar_url":"https://avatars1.githubusercontent.com/u/1178494?v=3","gravatar_id":"","url":"https://api.github.com/users/hursey013","html_url":"https://github.com/hursey013","followers_url":"https://api.github.com/users/hursey013/followers","following_url":"https://api.github.com/users/hursey013/following{/other_user}","gists_url":"https://api.github.com/users/hursey013/gists{/gist_id}","starred_url":"https://api.github.com/users/hursey013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hursey013/subscriptions","organizations_url":"https://api.github.com/users/hursey013/orgs","repos_url":"https://api.github.com/users/hursey013/repos","events_url":"https://api.github.com/users/hursey013/events{/privacy}","received_events_url":"https://api.github.com/users/hursey013/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/identity-idp/pulls/1488/commits","review_comments_url":"https://api.github.com/repos/18F/identity-idp/pulls/1488/comments","review_comment_url":"https://api.github.com/repos/18F/identity-idp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/identity-idp/issues/1488/comments","statuses_url":"https://api.github.com/repos/18F/identity-idp/statuses/241f46bec404a86c8629a2db500fb258eefab20a","head":{"label":"18F:bh-header-i18n","ref":"bh-header-i18n","sha":"241f46bec404a86c8629a2db500fb258eefab20a","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":50386243,"name":"identity-idp","full_name":"18F/identity-idp","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/identity-idp","description":"18F Identity Provider (IdP)","fork":false,"url":"https://api.github.com/repos/18F/identity-idp","forks_url":"https://api.github.com/repos/18F/identity-idp/forks","keys_url":"https://api.github.com/repos/18F/identity-idp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/identity-idp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/identity-idp/teams","hooks_url":"https://api.github.com/repos/18F/identity-idp/hooks","issue_events_url":"https://api.github.com/repos/18F/identity-idp/issues/events{/number}","events_url":"https://api.github.com/repos/18F/identity-idp/events","assignees_url":"https://api.github.com/repos/18F/identity-idp/assignees{/user}","branches_url":"https://api.github.com/repos/18F/identity-idp/branches{/branch}","tags_url":"https://api.github.com/repos/18F/identity-idp/tags","blobs_url":"https://api.github.com/repos/18F/identity-idp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/identity-idp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/identity-idp/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/identity-idp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/identity-idp/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/identity-idp/languages","stargazers_url":"https://api.github.com/repos/18F/identity-idp/stargazers","contributors_url":"https://api.github.com/repos/18F/identity-idp/contributors","subscribers_url":"https://api.github.com/repos/18F/identity-idp/subscribers","subscription_url":"https://api.github.com/repos/18F/identity-idp/subscription","commits_url":"https://api.github.com/repos/18F/identity-idp/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/identity-idp/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/identity-idp/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/identity-idp/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/identity-idp/contents/{+path}","compare_url":"https://api.github.com/repos/18F/identity-idp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/identity-idp/merges","archive_url":"https://api.github.com/repos/18F/identity-idp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/identity-idp/downloads","issues_url":"https://api.github.com/repos/18F/identity-idp/issues{/number}","pulls_url":"https://api.github.com/repos/18F/identity-idp/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/identity-idp/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/identity-idp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/identity-idp/labels{/name}","releases_url":"https://api.github.com/repos/18F/identity-idp/releases{/id}","deployments_url":"https://api.github.com/repos/18F/identity-idp/deployments","created_at":"2016-01-25T22:40:59Z","updated_at":"2017-06-13T23:34:15Z","pushed_at":"2017-06-20T17:29:47Z","git_url":"git://github.com/18F/identity-idp.git","ssh_url":"git@github.com:18F/identity-idp.git","clone_url":"https://github.com/18F/identity-idp.git","svn_url":"https://github.com/18F/identity-idp","homepage":"https://secure.login.gov/","size":9291,"stargazers_count":51,"watchers_count":51,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":10,"forks":14,"open_issues":10,"watchers":51,"default_branch":"master"}},"base":{"label":"18F:master","ref":"master","sha":"20d7eb3655ad249bfe0b9b17aaf3afb2e0231b31","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":50386243,"name":"identity-idp","full_name":"18F/identity-idp","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars3.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/identity-idp","description":"18F Identity Provider (IdP)","fork":false,"url":"https://api.github.com/repos/18F/identity-idp","forks_url":"https://api.github.com/repos/18F/identity-idp/forks","keys_url":"https://api.github.com/repos/18F/identity-idp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/identity-idp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/identity-idp/teams","hooks_url":"https://api.github.com/repos/18F/identity-idp/hooks","issue_events_url":"https://api.github.com/repos/18F/identity-idp/issues/events{/number}","events_url":"https://api.github.com/repos/18F/identity-idp/events","assignees_url":"https://api.github.com/repos/18F/identity-idp/assignees{/user}","branches_url":"https://api.github.com/repos/18F/identity-idp/branches{/branch}","tags_url":"https://api.github.com/repos/18F/identity-idp/tags","blobs_url":"https://api.github.com/repos/18F/identity-idp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/identity-idp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/identity-idp/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/identity-idp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/identity-idp/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/identity-idp/languages","stargazers_url":"https://api.github.com/repos/18F/identity-idp/stargazers","contributors_url":"https://api.github.com/repos/18F/identity-idp/contributors","subscribers_url":"https://api.github.com/repos/18F/identity-idp/subscribers","subscription_url":"https://api.github.com/repos/18F/identity-idp/subscription","commits_url":"https://api.github.com/repos/18F/identity-idp/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/identity-idp/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/identity-idp/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/identity-idp/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/identity-idp/contents/{+path}","compare_url":"https://api.github.com/repos/18F/identity-idp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/identity-idp/merges","archive_url":"https://api.github.com/repos/18F/identity-idp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/identity-idp/downloads","issues_url":"https://api.github.com/repos/18F/identity-idp/issues{/number}","pulls_url":"https://api.github.com/repos/18F/identity-idp/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/identity-idp/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/identity-idp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/identity-idp/labels{/name}","releases_url":"https://api.github.com/repos/18F/identity-idp/releases{/id}","deployments_url":"https://api.github.com/repos/18F/identity-idp/deployments","created_at":"2016-01-25T22:40:59Z","updated_at":"2017-06-13T23:34:15Z","pushed_at":"2017-06-20T17:29:47Z","git_url":"git://github.com/18F/identity-idp.git","ssh_url":"git@github.com:18F/identity-idp.git","clone_url":"https://github.com/18F/identity-idp.git","svn_url":"https://github.com/18F/identity-idp","homepage":"https://secure.login.gov/","size":9291,"stargazers_count":51,"watchers_count":51,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":10,"forks":14,"open_issues":10,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/1488"},"html":{"href":"https://github.com/18F/identity-idp/pull/1488"},"issue":{"href":"https://api.github.com/repos/18F/identity-idp/issues/1488"},"comments":{"href":"https://api.github.com/repos/18F/identity-idp/issues/1488/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/1488/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/identity-idp/pulls/1488/commits"},"statuses":{"href":"https://api.github.com/repos/18F/identity-idp/statuses/241f46bec404a86c8629a2db500fb258eefab20a"}}}}
{"actor":{"display_login":"amoose"}}