{"action":"created","comment":{"url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments/90502155","pull_request_review_id":11021195,"id":90502155,"diff_hunk":"@@ -357,17 +361,33 @@ export class ChatWidget extends Component {\n \n       let scrollButton;\n       if (props.widget.showScrollToBottomButton) {\n-        const label = widget.hasNewMessage ? `New Messages` : null;\n+        const newMessages = {\n+          id: `newMessages`,\n+          defaultMessage: `New Messages`\n+        };\n+        const label = widget.hasNewMessage ? formatMessage(newMessages) : null;\n         scrollButton = <ScrollToBottomButton label={label} onClick={this.handleScrollToBottom} />;\n       }\n \n       let deleteAlert;\n       if (props.widget.showAlertModal) {\n+        const confirmDeletingMessage = {\n+          id: `confirmDeletingMessage`,\n+          defaultMessage: `Are you sure you want to delete this message?`\n+        };\n+        const deleteMessage = {\n+          id: `delete`,\n+          defaultMessage: `Delete`\n+        };\n+        const cancelMessage = {\n+          id: `cancel`,\n+          defaultMessage: `Cancel`\n+        };","path":"packages/widget-chat/src/containers/chat-widget/index.js","position":55,"original_position":55,"commit_id":"4c4030161032094ac2cf38e4e74fa243c23ad42c","original_commit_id":"4c4030161032094ac2cf38e4e74fa243c23ad42c","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"body":"Do you mean you would rather see it on line 387:\r\n```\r\ntitle: formatMessage({id: `delete`, defaultMessage: `Delete`})\r\n```","created_at":"2016-12-01T18:02:03Z","updated_at":"2016-12-01T18:02:03Z","html_url":"https://github.com/ciscospark/spark-js-sdk/pull/349#discussion_r90502155","pull_request_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349","_links":{"self":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments/90502155"},"html":{"href":"https://github.com/ciscospark/spark-js-sdk/pull/349#discussion_r90502155"},"pull_request":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349"}}},"pull_request":{"url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349","id":95916711,"html_url":"https://github.com/ciscospark/spark-js-sdk/pull/349","diff_url":"https://github.com/ciscospark/spark-js-sdk/pull/349.diff","patch_url":"https://github.com/ciscospark/spark-js-sdk/pull/349.patch","issue_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/349","number":349,"state":"open","locked":false,"title":"feature(widget-chat): add i18n framework","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"body":"This shouldn't be merged to the widget-dev branch. Once widget-dev gets into master, I will update the branch and point it to the right fork.","created_at":"2016-11-30T15:48:13Z","updated_at":"2016-12-01T18:02:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fad29c08690778f1439193ca082e0228a028f48b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349/commits","review_comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349/comments","review_comment_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/349/comments","statuses_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/4c4030161032094ac2cf38e4e74fa243c23ad42c","head":{"label":"adamweeks:i18n","ref":"i18n","sha":"4c4030161032094ac2cf38e4e74fa243c23ad42c","user":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"repo":{"id":68234934,"name":"spark-js-sdk","full_name":"adamweeks/spark-js-sdk","owner":{"login":"adamweeks","id":190647,"avatar_url":"https://avatars.githubusercontent.com/u/190647?v=3","gravatar_id":"","url":"https://api.github.com/users/adamweeks","html_url":"https://github.com/adamweeks","followers_url":"https://api.github.com/users/adamweeks/followers","following_url":"https://api.github.com/users/adamweeks/following{/other_user}","gists_url":"https://api.github.com/users/adamweeks/gists{/gist_id}","starred_url":"https://api.github.com/users/adamweeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamweeks/subscriptions","organizations_url":"https://api.github.com/users/adamweeks/orgs","repos_url":"https://api.github.com/users/adamweeks/repos","events_url":"https://api.github.com/users/adamweeks/events{/privacy}","received_events_url":"https://api.github.com/users/adamweeks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamweeks/spark-js-sdk","description":null,"fork":true,"url":"https://api.github.com/repos/adamweeks/spark-js-sdk","forks_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/forks","keys_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/teams","hooks_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/events","assignees_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/tags","blobs_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/languages","stargazers_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/subscription","commits_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/merges","archive_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/downloads","issues_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/adamweeks/spark-js-sdk/deployments","created_at":"2016-09-14T19:08:30Z","updated_at":"2016-09-14T19:08:33Z","pushed_at":"2016-12-01T16:32:44Z","git_url":"git://github.com/adamweeks/spark-js-sdk.git","ssh_url":"git@github.com:adamweeks/spark-js-sdk.git","clone_url":"https://github.com/adamweeks/spark-js-sdk.git","svn_url":"https://github.com/adamweeks/spark-js-sdk","homepage":"https://ciscospark.github.io/spark-js-sdk/","size":15217,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ciscospark:master","ref":"master","sha":"82baa350a37026c2154be58933a49176917981e1","user":{"login":"ciscospark","id":15900782,"avatar_url":"https://avatars.githubusercontent.com/u/15900782?v=3","gravatar_id":"","url":"https://api.github.com/users/ciscospark","html_url":"https://github.com/ciscospark","followers_url":"https://api.github.com/users/ciscospark/followers","following_url":"https://api.github.com/users/ciscospark/following{/other_user}","gists_url":"https://api.github.com/users/ciscospark/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscospark/subscriptions","organizations_url":"https://api.github.com/users/ciscospark/orgs","repos_url":"https://api.github.com/users/ciscospark/repos","events_url":"https://api.github.com/users/ciscospark/events{/privacy}","received_events_url":"https://api.github.com/users/ciscospark/received_events","type":"Organization","site_admin":false},"repo":{"id":62836827,"name":"spark-js-sdk","full_name":"ciscospark/spark-js-sdk","owner":{"login":"ciscospark","id":15900782,"avatar_url":"https://avatars.githubusercontent.com/u/15900782?v=3","gravatar_id":"","url":"https://api.github.com/users/ciscospark","html_url":"https://github.com/ciscospark","followers_url":"https://api.github.com/users/ciscospark/followers","following_url":"https://api.github.com/users/ciscospark/following{/other_user}","gists_url":"https://api.github.com/users/ciscospark/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscospark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscospark/subscriptions","organizations_url":"https://api.github.com/users/ciscospark/orgs","repos_url":"https://api.github.com/users/ciscospark/repos","events_url":"https://api.github.com/users/ciscospark/events{/privacy}","received_events_url":"https://api.github.com/users/ciscospark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ciscospark/spark-js-sdk","description":null,"fork":false,"url":"https://api.github.com/repos/ciscospark/spark-js-sdk","forks_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/forks","keys_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/teams","hooks_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/hooks","issue_events_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/events","assignees_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/tags","blobs_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/languages","stargazers_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/stargazers","contributors_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/contributors","subscribers_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/subscribers","subscription_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/subscription","commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/merges","archive_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/downloads","issues_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/labels{/name}","releases_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/ciscospark/spark-js-sdk/deployments","created_at":"2016-07-07T20:41:12Z","updated_at":"2016-11-15T20:40:07Z","pushed_at":"2016-12-01T00:42:13Z","git_url":"git://github.com/ciscospark/spark-js-sdk.git","ssh_url":"git@github.com:ciscospark/spark-js-sdk.git","clone_url":"https://github.com/ciscospark/spark-js-sdk.git","svn_url":"https://github.com/ciscospark/spark-js-sdk","homepage":"https://ciscospark.github.io/spark-js-sdk/","size":18522,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":98,"forks":30,"open_issues":98,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349"},"html":{"href":"https://github.com/ciscospark/spark-js-sdk/pull/349"},"issue":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/349"},"comments":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/issues/349/comments"},"review_comments":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349/comments"},"review_comment":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/pulls/349/commits"},"statuses":{"href":"https://api.github.com/repos/ciscospark/spark-js-sdk/statuses/4c4030161032094ac2cf38e4e74fa243c23ad42c"}}}}
{"actor":{"display_login":"adamweeks"}}