{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/72034055","id":72034055,"diff_hunk":"@@ -315,3 +335,13 @@ export function redirectToOasis(request, reply) {\n \n \treply.redirect(`${request.url.pathname}?${queryParams}`);\n }\n+\n+/**\n+ * @param {Hapi.Request} request\n+ * @param {object} wikiVariables\n+ */\n+export function setI18nLang(request, wikiVariables) {\n+\tif (wikiVariables.language && wikiVariables.language.content) {\n+\t\trequest.server.methods.i18n.getInstance().setLng(wikiVariables.language.content);","path":"server/app/lib/utils.js","position":73,"original_position":73,"commit_id":"365ddfe3f0befeb90ca1da3162319b7a6a93d1f8","original_commit_id":"365ddfe3f0befeb90ca1da3162319b7a6a93d1f8","user":{"login":"kvas-damian","id":2725894,"avatar_url":"https://avatars.githubusercontent.com/u/2725894?v=3","gravatar_id":"","url":"https://api.github.com/users/kvas-damian","html_url":"https://github.com/kvas-damian","followers_url":"https://api.github.com/users/kvas-damian/followers","following_url":"https://api.github.com/users/kvas-damian/following{/other_user}","gists_url":"https://api.github.com/users/kvas-damian/gists{/gist_id}","starred_url":"https://api.github.com/users/kvas-damian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvas-damian/subscriptions","organizations_url":"https://api.github.com/users/kvas-damian/orgs","repos_url":"https://api.github.com/users/kvas-damian/repos","events_url":"https://api.github.com/users/kvas-damian/events{/privacy}","received_events_url":"https://api.github.com/users/kvas-damian/received_events","type":"User","site_admin":false},"body":"@tomasznapieralski currently we do support `uselang` query param on server, see: http://fallout.wikia.com/wiki/hgfhdfhfhfd vs http://fallout.wikia.com/wiki/hgfhdfhfhfd?uselang=pl (different translations are presented during loading state). The same feature is used for translating Auth Pages.","created_at":"2016-07-25T09:31:36Z","updated_at":"2016-07-25T09:31:36Z","html_url":"https://github.com/Wikia/mercury/pull/2614#discussion_r72034055","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/2614","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/72034055"},"html":{"href":"https://github.com/Wikia/mercury/pull/2614#discussion_r72034055"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2614"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/2614","id":77624275,"html_url":"https://github.com/Wikia/mercury/pull/2614","diff_url":"https://github.com/Wikia/mercury/pull/2614.diff","patch_url":"https://github.com/Wikia/mercury/pull/2614.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/2614","number":2614,"state":"open","locked":false,"title":"XW-1581 Global Footer in Mercury","user":{"login":"kamilkoterba","id":2316139,"avatar_url":"https://avatars.githubusercontent.com/u/2316139?v=3","gravatar_id":"","url":"https://api.github.com/users/kamilkoterba","html_url":"https://github.com/kamilkoterba","followers_url":"https://api.github.com/users/kamilkoterba/followers","following_url":"https://api.github.com/users/kamilkoterba/following{/other_user}","gists_url":"https://api.github.com/users/kamilkoterba/gists{/gist_id}","starred_url":"https://api.github.com/users/kamilkoterba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamilkoterba/subscriptions","organizations_url":"https://api.github.com/users/kamilkoterba/orgs","repos_url":"https://api.github.com/users/kamilkoterba/repos","events_url":"https://api.github.com/users/kamilkoterba/events{/privacy}","received_events_url":"https://api.github.com/users/kamilkoterba/received_events","type":"User","site_admin":false},"body":"## Links\r\n\r\n* With the development this PR became feature branch for: https://wikia-inc.atlassian.net/browse/XW-1581\r\n\r\n## Description\r\n\r\nIntegrating Global Footer with Mercury:\r\n- [x] wrapper partial added to page\r\n- [x] supplied with mocked data\r\n- [x] links helper generator based on link type provided by API\r\n- [x] design system messages loaded for server side\r\n- [x] html from reference page specification implemented\r\n- [x] [@Warkot] all messages supplied with data from API (global-footer-licensing-and-vertical-description)\r\n- [x] [@Warkot] support global-footer-licensing-description message on Mercury side when there's no vertical\r\n- [x]  [@tomasznapieralski]unit tests for markup\r\n- [x] SVGs integration\r\n- [x] [@kvas-damian] i18n update to v0.0.3 \r\n- [x] [@rogatty] Footer renders only where it should\r\n- [x] [@kamilkoterba] Support types for elements returned by API to decide how to render\r\n- [x] [@rogatty] Remove empty place which SVG element takes at the top of page\r\n- [x] [@kvas-damian] Add loading spinner between global nav and footer\r\n\r\n## Reviewers\r\n@Wikia/x-wing ","created_at":"2016-07-15T14:28:14Z","updated_at":"2016-07-25T09:31:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d1bb40d25e1c6294efa3b895f930a36e1f3a202","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/2614/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/2614/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/2614/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/365ddfe3f0befeb90ca1da3162319b7a6a93d1f8","head":{"label":"Wikia:XW-1719","ref":"XW-1719","sha":"365ddfe3f0befeb90ca1da3162319b7a6a93d1f8","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/mercury/deployments","created_at":"2014-02-10T21:44:25Z","updated_at":"2016-07-15T09:13:39Z","pushed_at":"2016-07-25T08:48:33Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":92902,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":19,"forks":8,"open_issues":19,"watchers":12,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"4cb2f7857169f79dc221a1276f1fdab70346507d","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/mercury/deployments","created_at":"2014-02-10T21:44:25Z","updated_at":"2016-07-15T09:13:39Z","pushed_at":"2016-07-25T08:48:33Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":92902,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":19,"forks":8,"open_issues":19,"watchers":12,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2614"},"html":{"href":"https://github.com/Wikia/mercury/pull/2614"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/2614"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/2614/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2614/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2614/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/365ddfe3f0befeb90ca1da3162319b7a6a93d1f8"}}}}
{"actor":{"display_login":"kvas-damian"}}