{"action":"created","comment":{"url":"https://api.github.com/repos/outoftime/learnpad/pulls/comments/36153310","id":36153310,"diff_hunk":"@@ -1,4 +1,11 @@\n+var i18n = require('i18next-client');\n+i18n.init({","path":"src/validations/index.js","position":2,"original_position":2,"commit_id":"6ebe64fee8fe67b925b37b9e43c8855ac2593769","original_commit_id":"b9c945dbefd69123cdefdfed1882ba8c71daea07","user":{"login":"kinduff","id":1270156,"avatar_url":"https://avatars.githubusercontent.com/u/1270156?v=3","gravatar_id":"","url":"https://api.github.com/users/kinduff","html_url":"https://github.com/kinduff","followers_url":"https://api.github.com/users/kinduff/followers","following_url":"https://api.github.com/users/kinduff/following{/other_user}","gists_url":"https://api.github.com/users/kinduff/gists{/gist_id}","starred_url":"https://api.github.com/users/kinduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinduff/subscriptions","organizations_url":"https://api.github.com/users/kinduff/orgs","repos_url":"https://api.github.com/users/kinduff/repos","events_url":"https://api.github.com/users/kinduff/events{/privacy}","received_events_url":"https://api.github.com/users/kinduff/received_events","type":"User","site_admin":false},"body":"@outoftime Is this the right place to init `i18next-client`?","created_at":"2015-08-04T02:45:05Z","updated_at":"2015-08-04T02:45:05Z","html_url":"https://github.com/outoftime/learnpad/pull/23#discussion_r36153310","pull_request_url":"https://api.github.com/repos/outoftime/learnpad/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/comments/36153310"},"html":{"href":"https://github.com/outoftime/learnpad/pull/23#discussion_r36153310"},"pull_request":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/outoftime/learnpad/pulls/23","id":41524128,"html_url":"https://github.com/outoftime/learnpad/pull/23","diff_url":"https://github.com/outoftime/learnpad/pull/23.diff","patch_url":"https://github.com/outoftime/learnpad/pull/23.patch","issue_url":"https://api.github.com/repos/outoftime/learnpad/issues/23","number":23,"state":"open","locked":false,"title":"[WIP] Support internationalization","user":{"login":"kinduff","id":1270156,"avatar_url":"https://avatars.githubusercontent.com/u/1270156?v=3","gravatar_id":"","url":"https://api.github.com/users/kinduff","html_url":"https://github.com/kinduff","followers_url":"https://api.github.com/users/kinduff/followers","following_url":"https://api.github.com/users/kinduff/following{/other_user}","gists_url":"https://api.github.com/users/kinduff/gists{/gist_id}","starred_url":"https://api.github.com/users/kinduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinduff/subscriptions","organizations_url":"https://api.github.com/users/kinduff/orgs","repos_url":"https://api.github.com/users/kinduff/repos","events_url":"https://api.github.com/users/kinduff/events{/privacy}","received_events_url":"https://api.github.com/users/kinduff/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\n- [x] Integrates [i18next](https://github.com/i18next/i18next) as internationalization support\r\n- [x] Generates english locale with HTML, CSS and JS errors\r\n- [x] Integrate locale errors to validations\r\n\r\n#### Issues\r\n- [x] i18next doesn't load `json` translation file even though it's inside the directory\r\n  - Solved by moving locales directory from `src` to `static`\r\n- [x] `i18n` method undefined when calling it from validation files\r\n- [ ] Fix locale entries with semantic error keys\r\n\r\n#### Related Issues\r\n#22 ","created_at":"2015-08-04T00:32:31Z","updated_at":"2015-08-04T02:45:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b09fd34d3dd97bcd0a1db65139e6e8cfdafcd8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/outoftime/learnpad/pulls/23/commits","review_comments_url":"https://api.github.com/repos/outoftime/learnpad/pulls/23/comments","review_comment_url":"https://api.github.com/repos/outoftime/learnpad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/outoftime/learnpad/issues/23/comments","statuses_url":"https://api.github.com/repos/outoftime/learnpad/statuses/6ebe64fee8fe67b925b37b9e43c8855ac2593769","head":{"label":"kinduff:internationalization","ref":"internationalization","sha":"6ebe64fee8fe67b925b37b9e43c8855ac2593769","user":{"login":"kinduff","id":1270156,"avatar_url":"https://avatars.githubusercontent.com/u/1270156?v=3","gravatar_id":"","url":"https://api.github.com/users/kinduff","html_url":"https://github.com/kinduff","followers_url":"https://api.github.com/users/kinduff/followers","following_url":"https://api.github.com/users/kinduff/following{/other_user}","gists_url":"https://api.github.com/users/kinduff/gists{/gist_id}","starred_url":"https://api.github.com/users/kinduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinduff/subscriptions","organizations_url":"https://api.github.com/users/kinduff/orgs","repos_url":"https://api.github.com/users/kinduff/repos","events_url":"https://api.github.com/users/kinduff/events{/privacy}","received_events_url":"https://api.github.com/users/kinduff/received_events","type":"User","site_admin":false},"repo":{"id":40154604,"name":"learnpad","full_name":"kinduff/learnpad","owner":{"login":"kinduff","id":1270156,"avatar_url":"https://avatars.githubusercontent.com/u/1270156?v=3","gravatar_id":"","url":"https://api.github.com/users/kinduff","html_url":"https://github.com/kinduff","followers_url":"https://api.github.com/users/kinduff/followers","following_url":"https://api.github.com/users/kinduff/following{/other_user}","gists_url":"https://api.github.com/users/kinduff/gists{/gist_id}","starred_url":"https://api.github.com/users/kinduff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinduff/subscriptions","organizations_url":"https://api.github.com/users/kinduff/orgs","repos_url":"https://api.github.com/users/kinduff/repos","events_url":"https://api.github.com/users/kinduff/events{/privacy}","received_events_url":"https://api.github.com/users/kinduff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinduff/learnpad","description":"An HTML/CSS/JavaScript editor for use in the classroom","fork":true,"url":"https://api.github.com/repos/kinduff/learnpad","forks_url":"https://api.github.com/repos/kinduff/learnpad/forks","keys_url":"https://api.github.com/repos/kinduff/learnpad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinduff/learnpad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinduff/learnpad/teams","hooks_url":"https://api.github.com/repos/kinduff/learnpad/hooks","issue_events_url":"https://api.github.com/repos/kinduff/learnpad/issues/events{/number}","events_url":"https://api.github.com/repos/kinduff/learnpad/events","assignees_url":"https://api.github.com/repos/kinduff/learnpad/assignees{/user}","branches_url":"https://api.github.com/repos/kinduff/learnpad/branches{/branch}","tags_url":"https://api.github.com/repos/kinduff/learnpad/tags","blobs_url":"https://api.github.com/repos/kinduff/learnpad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinduff/learnpad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinduff/learnpad/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinduff/learnpad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinduff/learnpad/statuses/{sha}","languages_url":"https://api.github.com/repos/kinduff/learnpad/languages","stargazers_url":"https://api.github.com/repos/kinduff/learnpad/stargazers","contributors_url":"https://api.github.com/repos/kinduff/learnpad/contributors","subscribers_url":"https://api.github.com/repos/kinduff/learnpad/subscribers","subscription_url":"https://api.github.com/repos/kinduff/learnpad/subscription","commits_url":"https://api.github.com/repos/kinduff/learnpad/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinduff/learnpad/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinduff/learnpad/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinduff/learnpad/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinduff/learnpad/contents/{+path}","compare_url":"https://api.github.com/repos/kinduff/learnpad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinduff/learnpad/merges","archive_url":"https://api.github.com/repos/kinduff/learnpad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinduff/learnpad/downloads","issues_url":"https://api.github.com/repos/kinduff/learnpad/issues{/number}","pulls_url":"https://api.github.com/repos/kinduff/learnpad/pulls{/number}","milestones_url":"https://api.github.com/repos/kinduff/learnpad/milestones{/number}","notifications_url":"https://api.github.com/repos/kinduff/learnpad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinduff/learnpad/labels{/name}","releases_url":"https://api.github.com/repos/kinduff/learnpad/releases{/id}","created_at":"2015-08-04T00:29:19Z","updated_at":"2015-08-04T00:29:20Z","pushed_at":"2015-08-04T02:44:32Z","git_url":"git://github.com/kinduff/learnpad.git","ssh_url":"git@github.com:kinduff/learnpad.git","clone_url":"https://github.com/kinduff/learnpad.git","svn_url":"https://github.com/kinduff/learnpad","homepage":null,"size":108,"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":"outoftime:master","ref":"master","sha":"ea1aae0f6b33550d35b6ba453757783e3a4d5964","user":{"login":"outoftime","id":14214,"avatar_url":"https://avatars.githubusercontent.com/u/14214?v=3","gravatar_id":"","url":"https://api.github.com/users/outoftime","html_url":"https://github.com/outoftime","followers_url":"https://api.github.com/users/outoftime/followers","following_url":"https://api.github.com/users/outoftime/following{/other_user}","gists_url":"https://api.github.com/users/outoftime/gists{/gist_id}","starred_url":"https://api.github.com/users/outoftime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outoftime/subscriptions","organizations_url":"https://api.github.com/users/outoftime/orgs","repos_url":"https://api.github.com/users/outoftime/repos","events_url":"https://api.github.com/users/outoftime/events{/privacy}","received_events_url":"https://api.github.com/users/outoftime/received_events","type":"User","site_admin":false},"repo":{"id":39417599,"name":"learnpad","full_name":"outoftime/learnpad","owner":{"login":"outoftime","id":14214,"avatar_url":"https://avatars.githubusercontent.com/u/14214?v=3","gravatar_id":"","url":"https://api.github.com/users/outoftime","html_url":"https://github.com/outoftime","followers_url":"https://api.github.com/users/outoftime/followers","following_url":"https://api.github.com/users/outoftime/following{/other_user}","gists_url":"https://api.github.com/users/outoftime/gists{/gist_id}","starred_url":"https://api.github.com/users/outoftime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outoftime/subscriptions","organizations_url":"https://api.github.com/users/outoftime/orgs","repos_url":"https://api.github.com/users/outoftime/repos","events_url":"https://api.github.com/users/outoftime/events{/privacy}","received_events_url":"https://api.github.com/users/outoftime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/outoftime/learnpad","description":"An HTML/CSS/JavaScript editor for use in the classroom","fork":false,"url":"https://api.github.com/repos/outoftime/learnpad","forks_url":"https://api.github.com/repos/outoftime/learnpad/forks","keys_url":"https://api.github.com/repos/outoftime/learnpad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outoftime/learnpad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outoftime/learnpad/teams","hooks_url":"https://api.github.com/repos/outoftime/learnpad/hooks","issue_events_url":"https://api.github.com/repos/outoftime/learnpad/issues/events{/number}","events_url":"https://api.github.com/repos/outoftime/learnpad/events","assignees_url":"https://api.github.com/repos/outoftime/learnpad/assignees{/user}","branches_url":"https://api.github.com/repos/outoftime/learnpad/branches{/branch}","tags_url":"https://api.github.com/repos/outoftime/learnpad/tags","blobs_url":"https://api.github.com/repos/outoftime/learnpad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outoftime/learnpad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outoftime/learnpad/git/refs{/sha}","trees_url":"https://api.github.com/repos/outoftime/learnpad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outoftime/learnpad/statuses/{sha}","languages_url":"https://api.github.com/repos/outoftime/learnpad/languages","stargazers_url":"https://api.github.com/repos/outoftime/learnpad/stargazers","contributors_url":"https://api.github.com/repos/outoftime/learnpad/contributors","subscribers_url":"https://api.github.com/repos/outoftime/learnpad/subscribers","subscription_url":"https://api.github.com/repos/outoftime/learnpad/subscription","commits_url":"https://api.github.com/repos/outoftime/learnpad/commits{/sha}","git_commits_url":"https://api.github.com/repos/outoftime/learnpad/git/commits{/sha}","comments_url":"https://api.github.com/repos/outoftime/learnpad/comments{/number}","issue_comment_url":"https://api.github.com/repos/outoftime/learnpad/issues/comments{/number}","contents_url":"https://api.github.com/repos/outoftime/learnpad/contents/{+path}","compare_url":"https://api.github.com/repos/outoftime/learnpad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outoftime/learnpad/merges","archive_url":"https://api.github.com/repos/outoftime/learnpad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outoftime/learnpad/downloads","issues_url":"https://api.github.com/repos/outoftime/learnpad/issues{/number}","pulls_url":"https://api.github.com/repos/outoftime/learnpad/pulls{/number}","milestones_url":"https://api.github.com/repos/outoftime/learnpad/milestones{/number}","notifications_url":"https://api.github.com/repos/outoftime/learnpad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outoftime/learnpad/labels{/name}","releases_url":"https://api.github.com/repos/outoftime/learnpad/releases{/id}","created_at":"2015-07-21T01:40:09Z","updated_at":"2015-08-04T01:26:13Z","pushed_at":"2015-08-04T02:44:32Z","git_url":"git://github.com/outoftime/learnpad.git","ssh_url":"git@github.com:outoftime/learnpad.git","clone_url":"https://github.com/outoftime/learnpad.git","svn_url":"https://github.com/outoftime/learnpad","homepage":null,"size":300,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/23"},"html":{"href":"https://github.com/outoftime/learnpad/pull/23"},"issue":{"href":"https://api.github.com/repos/outoftime/learnpad/issues/23"},"comments":{"href":"https://api.github.com/repos/outoftime/learnpad/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/outoftime/learnpad/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/outoftime/learnpad/statuses/6ebe64fee8fe67b925b37b9e43c8855ac2593769"}}}}