{"action":"created","comment":{"url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/comments/57361499","id":57361499,"diff_hunk":"@@ -44,28 +44,18 @@ const markedOptions = {\n // in DEFAULT_LANG as a fallback to prevent any strings that aren't filled out\n // from appearing as blank.\n function i18nJSON (lang) {\n-  var defaultJSON = require(`./locale/${DEFAULT_LANG}/site.json`)\n-  var templateJSON = require(`./locale/${lang}/site.json`)\n-  var finalJSON = JSON.parse(JSON.stringify(defaultJSON))\n-  var merge = function (targetJSON, customJSON) {\n-    Object.keys(customJSON).forEach(function (key) {\n-      let value = customJSON[key]\n-      if (typeof value === 'object') {\n-        merge(targetJSON[key], value)\n-      } else {\n-        targetJSON[key] = value\n-      }\n-    })\n-  }\n-  merge(finalJSON, templateJSON)\n-  return finalJSON\n+  const defaultJSON = require(`./locale/${DEFAULT_LANG}/site.json`)\n+  const templateJSON = require(`./locale/${lang}/site.json`)\n+  const finalJSON = JSON.parse(JSON.stringify(defaultJSON))\n+\n+  return Object.assign(finalJSON, templateJSON)","path":"build.js","position":null,"original_position":23,"commit_id":"95d64da06da6dd64b9baa32116d299d6972bc3c8","original_commit_id":"6a08868b3fcba41717492340437d10acdff69283","user":{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false},"body":"@abouthiroppy ^^ notice that @lpinca removed `finalJSON` completely","created_at":"2016-03-24T18:07:22Z","updated_at":"2016-03-24T18:07:22Z","html_url":"https://github.com/nodejs/nodejs.org/pull/596#discussion_r57361499","pull_request_url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596","_links":{"self":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/comments/57361499"},"html":{"href":"https://github.com/nodejs/nodejs.org/pull/596#discussion_r57361499"},"pull_request":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596"}}},"pull_request":{"url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596","id":63964798,"html_url":"https://github.com/nodejs/nodejs.org/pull/596","diff_url":"https://github.com/nodejs/nodejs.org/pull/596.diff","patch_url":"https://github.com/nodejs/nodejs.org/pull/596.patch","issue_url":"https://api.github.com/repos/nodejs/nodejs.org/issues/596","number":596,"state":"open","locked":false,"title":"let codes follow ES2015","user":{"login":"abouthiroppy","id":3367801,"avatar_url":"https://avatars.githubusercontent.com/u/3367801?v=3","gravatar_id":"","url":"https://api.github.com/users/abouthiroppy","html_url":"https://github.com/abouthiroppy","followers_url":"https://api.github.com/users/abouthiroppy/followers","following_url":"https://api.github.com/users/abouthiroppy/following{/other_user}","gists_url":"https://api.github.com/users/abouthiroppy/gists{/gist_id}","starred_url":"https://api.github.com/users/abouthiroppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abouthiroppy/subscriptions","organizations_url":"https://api.github.com/users/abouthiroppy/orgs","repos_url":"https://api.github.com/users/abouthiroppy/repos","events_url":"https://api.github.com/users/abouthiroppy/events{/privacy}","received_events_url":"https://api.github.com/users/abouthiroppy/received_events","type":"User","site_admin":false},"body":"Hello :)\r\n\r\n## change of the syntax\r\n- `Arrow functions`\r\n- `Template strings`\r\n- `variable declaration`\r\n\r\n## Edit range\r\n- `build.js`\r\n- `scripts/`\r\n- `events/`\r\n\r\n## Check nodejs versions\r\n- [x] 4.2.2\r\n- [x] 5.9.1\r\n\r\nCheers","created_at":"2016-03-23T22:42:08Z","updated_at":"2016-03-24T18:07:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4cd0a976cbeec69753661482fd80468ddc4a2fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596/commits","review_comments_url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596/comments","review_comment_url":"https://api.github.com/repos/nodejs/nodejs.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodejs/nodejs.org/issues/596/comments","statuses_url":"https://api.github.com/repos/nodejs/nodejs.org/statuses/95d64da06da6dd64b9baa32116d299d6972bc3c8","head":{"label":"abouthiroppy:feature/refactor-codes","ref":"feature/refactor-codes","sha":"95d64da06da6dd64b9baa32116d299d6972bc3c8","user":{"login":"abouthiroppy","id":3367801,"avatar_url":"https://avatars.githubusercontent.com/u/3367801?v=3","gravatar_id":"","url":"https://api.github.com/users/abouthiroppy","html_url":"https://github.com/abouthiroppy","followers_url":"https://api.github.com/users/abouthiroppy/followers","following_url":"https://api.github.com/users/abouthiroppy/following{/other_user}","gists_url":"https://api.github.com/users/abouthiroppy/gists{/gist_id}","starred_url":"https://api.github.com/users/abouthiroppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abouthiroppy/subscriptions","organizations_url":"https://api.github.com/users/abouthiroppy/orgs","repos_url":"https://api.github.com/users/abouthiroppy/repos","events_url":"https://api.github.com/users/abouthiroppy/events{/privacy}","received_events_url":"https://api.github.com/users/abouthiroppy/received_events","type":"User","site_admin":false},"repo":{"id":54545158,"name":"nodejs.org","full_name":"abouthiroppy/nodejs.org","owner":{"login":"abouthiroppy","id":3367801,"avatar_url":"https://avatars.githubusercontent.com/u/3367801?v=3","gravatar_id":"","url":"https://api.github.com/users/abouthiroppy","html_url":"https://github.com/abouthiroppy","followers_url":"https://api.github.com/users/abouthiroppy/followers","following_url":"https://api.github.com/users/abouthiroppy/following{/other_user}","gists_url":"https://api.github.com/users/abouthiroppy/gists{/gist_id}","starred_url":"https://api.github.com/users/abouthiroppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abouthiroppy/subscriptions","organizations_url":"https://api.github.com/users/abouthiroppy/orgs","repos_url":"https://api.github.com/users/abouthiroppy/repos","events_url":"https://api.github.com/users/abouthiroppy/events{/privacy}","received_events_url":"https://api.github.com/users/abouthiroppy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abouthiroppy/nodejs.org","description":"The Node.js website.","fork":true,"url":"https://api.github.com/repos/abouthiroppy/nodejs.org","forks_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/forks","keys_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/teams","hooks_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/hooks","issue_events_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/events","assignees_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/tags","blobs_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/languages","stargazers_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/stargazers","contributors_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/contributors","subscribers_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/subscribers","subscription_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/subscription","commits_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/merges","archive_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/downloads","issues_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/labels{/name}","releases_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/abouthiroppy/nodejs.org/deployments","created_at":"2016-03-23T09:02:34Z","updated_at":"2016-03-23T09:02:35Z","pushed_at":"2016-03-24T17:16:10Z","git_url":"git://github.com/abouthiroppy/nodejs.org.git","ssh_url":"git@github.com:abouthiroppy/nodejs.org.git","clone_url":"https://github.com/abouthiroppy/nodejs.org.git","svn_url":"https://github.com/abouthiroppy/nodejs.org","homepage":"https://nodejs.org","size":19285,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodejs:master","ref":"master","sha":"4013b8e6e4e3ce264d34daa3d72ad19d3dc886a8","user":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":37717474,"name":"nodejs.org","full_name":"nodejs/nodejs.org","owner":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodejs/nodejs.org","description":"The Node.js website.","fork":false,"url":"https://api.github.com/repos/nodejs/nodejs.org","forks_url":"https://api.github.com/repos/nodejs/nodejs.org/forks","keys_url":"https://api.github.com/repos/nodejs/nodejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodejs/nodejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodejs/nodejs.org/teams","hooks_url":"https://api.github.com/repos/nodejs/nodejs.org/hooks","issue_events_url":"https://api.github.com/repos/nodejs/nodejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/nodejs/nodejs.org/events","assignees_url":"https://api.github.com/repos/nodejs/nodejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/nodejs/nodejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/nodejs/nodejs.org/tags","blobs_url":"https://api.github.com/repos/nodejs/nodejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodejs/nodejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodejs/nodejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodejs/nodejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodejs/nodejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/nodejs/nodejs.org/languages","stargazers_url":"https://api.github.com/repos/nodejs/nodejs.org/stargazers","contributors_url":"https://api.github.com/repos/nodejs/nodejs.org/contributors","subscribers_url":"https://api.github.com/repos/nodejs/nodejs.org/subscribers","subscription_url":"https://api.github.com/repos/nodejs/nodejs.org/subscription","commits_url":"https://api.github.com/repos/nodejs/nodejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodejs/nodejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodejs/nodejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodejs/nodejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodejs/nodejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/nodejs/nodejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodejs/nodejs.org/merges","archive_url":"https://api.github.com/repos/nodejs/nodejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodejs/nodejs.org/downloads","issues_url":"https://api.github.com/repos/nodejs/nodejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/nodejs/nodejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/nodejs/nodejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/nodejs/nodejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodejs/nodejs.org/labels{/name}","releases_url":"https://api.github.com/repos/nodejs/nodejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/nodejs/nodejs.org/deployments","created_at":"2015-06-19T11:05:10Z","updated_at":"2016-03-23T15:51:09Z","pushed_at":"2016-03-24T17:16:10Z","git_url":"git://github.com/nodejs/nodejs.org.git","ssh_url":"git@github.com:nodejs/nodejs.org.git","clone_url":"https://github.com/nodejs/nodejs.org.git","svn_url":"https://github.com/nodejs/nodejs.org","homepage":"https://nodejs.org","size":20595,"stargazers_count":320,"watchers_count":320,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":547,"mirror_url":null,"open_issues_count":58,"forks":547,"open_issues":58,"watchers":320,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596"},"html":{"href":"https://github.com/nodejs/nodejs.org/pull/596"},"issue":{"href":"https://api.github.com/repos/nodejs/nodejs.org/issues/596"},"comments":{"href":"https://api.github.com/repos/nodejs/nodejs.org/issues/596/comments"},"review_comments":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596/comments"},"review_comment":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodejs/nodejs.org/pulls/596/commits"},"statuses":{"href":"https://api.github.com/repos/nodejs/nodejs.org/statuses/95d64da06da6dd64b9baa32116d299d6972bc3c8"}}}}