{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/64674743","id":64674743,"diff_hunk":"@@ -0,0 +1,62 @@\n+import React, { Component, PropTypes } from 'react';\n+\n+\n+function getDisplayName(component) {\n+  return component.displayName || component.name || 'Component';\n+}\n+\n+\n+export default function translate(options = {}) {\n+  const { withRef = false } = options;\n+\n+  return function Wrapper(WrappedComponent) {\n+    class Translate extends Component {\n+      constructor(props, context) {\n+        super(props, context);\n+        this.i18n = context.i18n;\n+        this.state = {\n+          i18nLoadedAt: null,\n+        };\n+      }\n+\n+      getChildContext() {\n+        return { i18n: this.i18n };","path":"src/core/i18n/translate.js","position":23,"original_position":23,"commit_id":"239bae57d9a2143e5b088c52fef8bf13864b6ca2","original_commit_id":"239bae57d9a2143e5b088c52fef8bf13864b6ca2","user":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"body":"Is this needed? I feel like it should already be passed down since it is being received in `context`.","created_at":"2016-05-26T00:17:00Z","updated_at":"2016-05-26T00:17:00Z","html_url":"https://github.com/mozilla/addons-frontend/pull/442#discussion_r64674743","pull_request_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442","_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/64674743"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/442#discussion_r64674743"},"pull_request":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442","id":71263746,"html_url":"https://github.com/mozilla/addons-frontend/pull/442","diff_url":"https://github.com/mozilla/addons-frontend/pull/442.diff","patch_url":"https://github.com/mozilla/addons-frontend/pull/442.patch","issue_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/442","number":442,"state":"open","locked":false,"title":"Add build-locales script","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"body":"* Add locale building script\r\n* Add locale Provider and translation wrapper\r\n* Add l10n middleware\r\n* Actually extract the locale json.","created_at":"2016-05-24T17:50:23Z","updated_at":"2016-05-26T00:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f462235b4e9e1b2b543a6d1e0f46a20a969d1dc7","assignee":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442/commits","review_comments_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442/comments","review_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/442/comments","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/239bae57d9a2143e5b088c52fef8bf13864b6ca2","head":{"label":"muffinresearch:build-locales","ref":"build-locales","sha":"239bae57d9a2143e5b088c52fef8bf13864b6ca2","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"repo":{"id":52104378,"name":"addons-frontend","full_name":"muffinresearch/addons-frontend","owner":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muffinresearch/addons-frontend","description":"Front-end infrastructure and code to complement mozilla/addons-server","fork":true,"url":"https://api.github.com/repos/muffinresearch/addons-frontend","forks_url":"https://api.github.com/repos/muffinresearch/addons-frontend/forks","keys_url":"https://api.github.com/repos/muffinresearch/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muffinresearch/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muffinresearch/addons-frontend/teams","hooks_url":"https://api.github.com/repos/muffinresearch/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/muffinresearch/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/muffinresearch/addons-frontend/events","assignees_url":"https://api.github.com/repos/muffinresearch/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/muffinresearch/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/muffinresearch/addons-frontend/tags","blobs_url":"https://api.github.com/repos/muffinresearch/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muffinresearch/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muffinresearch/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/muffinresearch/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muffinresearch/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/muffinresearch/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/muffinresearch/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/muffinresearch/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/muffinresearch/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/muffinresearch/addons-frontend/subscription","commits_url":"https://api.github.com/repos/muffinresearch/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/muffinresearch/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/muffinresearch/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/muffinresearch/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/muffinresearch/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/muffinresearch/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muffinresearch/addons-frontend/merges","archive_url":"https://api.github.com/repos/muffinresearch/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muffinresearch/addons-frontend/downloads","issues_url":"https://api.github.com/repos/muffinresearch/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/muffinresearch/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/muffinresearch/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/muffinresearch/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muffinresearch/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/muffinresearch/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/muffinresearch/addons-frontend/deployments","created_at":"2016-02-19T17:26:17Z","updated_at":"2016-03-11T16:08:46Z","pushed_at":"2016-05-25T20:31:50Z","git_url":"git://github.com/muffinresearch/addons-frontend.git","ssh_url":"git@github.com:muffinresearch/addons-frontend.git","clone_url":"https://github.com/muffinresearch/addons-frontend.git","svn_url":"https://github.com/muffinresearch/addons-frontend","homepage":null,"size":410,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mozilla:master","ref":"master","sha":"9ac10631990ca6a64d70ad14efc9b07f23e881c1","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":52104368,"name":"addons-frontend","full_name":"mozilla/addons-frontend","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/addons-frontend","description":"Front-end infrastructure and code to complement mozilla/addons-server","fork":false,"url":"https://api.github.com/repos/mozilla/addons-frontend","forks_url":"https://api.github.com/repos/mozilla/addons-frontend/forks","keys_url":"https://api.github.com/repos/mozilla/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/addons-frontend/teams","hooks_url":"https://api.github.com/repos/mozilla/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/addons-frontend/events","assignees_url":"https://api.github.com/repos/mozilla/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/addons-frontend/tags","blobs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/mozilla/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/mozilla/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/mozilla/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/mozilla/addons-frontend/subscription","commits_url":"https://api.github.com/repos/mozilla/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/addons-frontend/merges","archive_url":"https://api.github.com/repos/mozilla/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/addons-frontend/downloads","issues_url":"https://api.github.com/repos/mozilla/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/addons-frontend/deployments","created_at":"2016-02-19T17:25:57Z","updated_at":"2016-05-13T14:26:10Z","pushed_at":"2016-05-25T23:59:15Z","git_url":"git://github.com/mozilla/addons-frontend.git","ssh_url":"git@github.com:mozilla/addons-frontend.git","clone_url":"https://github.com/mozilla/addons-frontend.git","svn_url":"https://github.com/mozilla/addons-frontend","homepage":null,"size":65853,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":48,"forks":5,"open_issues":48,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/442"},"issue":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/442"},"comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/442/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/442/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/addons-frontend/statuses/239bae57d9a2143e5b088c52fef8bf13864b6ca2"}}}}
{"actor":{"display_login":"mstriemer"}}