{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/44281131","id":44281131,"diff_hunk":"@@ -6,26 +6,28 @@ module.exports = function (language, opts) {\n \t\tfallbackLanguage = language.split('-')[0],\n \t\tdefaultLanguage = 'en',\n \t\tfoundLanguage = '',\n-\t\tnamespace = opts.hash.ns || 'main',\n+\t\tnamespace = opts.hash.ns,\n \t\twrapper = {};\n \n-\t[language, fallbackLanguage, defaultLanguage].some(function (lang) {\n-\t\tfoundLanguage = lang;\n-\t\ttranslationPath = '../../../front/locales/' + lang + '/' + namespace + '.json';\n+\t\tnamespace.forEach(function(ns){","path":"server/views/_helpers/translations.js","position":11,"original_position":11,"commit_id":"cd9cc896a047ebdc129cda15a602734f63874536","original_commit_id":"cd9cc896a047ebdc129cda15a602734f63874536","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":"Please fix indentation","created_at":"2015-11-09T14:40:05Z","updated_at":"2015-11-09T14:40:05Z","html_url":"https://github.com/Wikia/mercury/pull/1616#discussion_r44281131","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/1616","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/44281131"},"html":{"href":"https://github.com/Wikia/mercury/pull/1616#discussion_r44281131"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1616"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/1616","id":50128793,"html_url":"https://github.com/Wikia/mercury/pull/1616","diff_url":"https://github.com/Wikia/mercury/pull/1616.diff","patch_url":"https://github.com/Wikia/mercury/pull/1616.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/1616","number":1616,"state":"open","locked":false,"title":"SOC-1476 | Move discussion translations to discussion.json file","user":{"login":"Bloodmoon24","id":9107458,"avatar_url":"https://avatars.githubusercontent.com/u/9107458?v=3","gravatar_id":"","url":"https://api.github.com/users/Bloodmoon24","html_url":"https://github.com/Bloodmoon24","followers_url":"https://api.github.com/users/Bloodmoon24/followers","following_url":"https://api.github.com/users/Bloodmoon24/following{/other_user}","gists_url":"https://api.github.com/users/Bloodmoon24/gists{/gist_id}","starred_url":"https://api.github.com/users/Bloodmoon24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bloodmoon24/subscriptions","organizations_url":"https://api.github.com/users/Bloodmoon24/orgs","repos_url":"https://api.github.com/users/Bloodmoon24/repos","events_url":"https://api.github.com/users/Bloodmoon24/events{/privacy}","received_events_url":"https://api.github.com/users/Bloodmoon24/received_events","type":"User","site_admin":false},"body":"https://wikia-inc.atlassian.net/browse/SOC-1476 \r\n@kvas-damian  @bkoval  please CR","created_at":"2015-11-09T14:33:08Z","updated_at":"2015-11-09T14:40:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"020062618d434c30038dcb52ec4b924f276089a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/1616/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/1616/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/1616/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/cd9cc896a047ebdc129cda15a602734f63874536","head":{"label":"Wikia:SOC-1476b","ref":"SOC-1476b","sha":"cd9cc896a047ebdc129cda15a602734f63874536","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}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-11-04T16:44:03Z","pushed_at":"2015-11-09T14:36:59Z","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":69241,"stargazers_count":12,"watchers_count":12,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":12,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"0b39f291ee219a34778fcf2c5fdf24ef7241c091","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}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-11-04T16:44:03Z","pushed_at":"2015-11-09T14:36:59Z","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":69241,"stargazers_count":12,"watchers_count":12,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":12,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1616"},"html":{"href":"https://github.com/Wikia/mercury/pull/1616"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1616"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1616/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1616/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1616/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/cd9cc896a047ebdc129cda15a602734f63874536"}}}}