{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2","id":219305038,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MzA1MDM4","html_url":"https://github.com/netguru/i18n-translate-json/pull/2","diff_url":"https://github.com/netguru/i18n-translate-json/pull/2.diff","patch_url":"https://github.com/netguru/i18n-translate-json/pull/2.patch","issue_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/2","number":2,"state":"closed","locked":false,"title":"prevents overriding manually changed translations","user":{"login":"mlisik","id":2777813,"node_id":"MDQ6VXNlcjI3Nzc4MTM=","avatar_url":"https://avatars1.githubusercontent.com/u/2777813?v=4","gravatar_id":"","url":"https://api.github.com/users/mlisik","html_url":"https://github.com/mlisik","followers_url":"https://api.github.com/users/mlisik/followers","following_url":"https://api.github.com/users/mlisik/following{/other_user}","gists_url":"https://api.github.com/users/mlisik/gists{/gist_id}","starred_url":"https://api.github.com/users/mlisik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlisik/subscriptions","organizations_url":"https://api.github.com/users/mlisik/orgs","repos_url":"https://api.github.com/users/mlisik/repos","events_url":"https://api.github.com/users/mlisik/events{/privacy}","received_events_url":"https://api.github.com/users/mlisik/received_events","type":"User","site_admin":false},"body":"This change prevents the script from rewriting all translation files every time it runs. This allows manual adjustments of individual translations as needed, as well as minimises requests to Google Translation API only to those lines that have been added. \r\n\r\nThe solution taken has one **important drawback**: If some text changes in source language, but the key it's located at doesn't, the script will not run for that text (condition is simply `source text !== translation text`). One could mitigate that by having the script create a backup source file every time, and reference it on next translation run, but this has been left out of this PR.","created_at":"2018-10-01T09:08:01Z","updated_at":"2018-10-01T14:11:43Z","closed_at":"2018-10-01T14:11:43Z","merged_at":"2018-10-01T14:11:43Z","merge_commit_sha":"86d0b188b7d648564a776f9e63294ede42da6a78","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2/commits","review_comments_url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2/comments","review_comment_url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/2/comments","statuses_url":"https://api.github.com/repos/netguru/i18n-translate-json/statuses/1285eb6039fa7039ef875d53e298ce1c40354fd9","head":{"label":"netguru:feature/prevent-unnecessary-translation-overrides","ref":"feature/prevent-unnecessary-translation-overrides","sha":"1285eb6039fa7039ef875d53e298ce1c40354fd9","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":144554974,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1NTQ5NzQ=","name":"i18n-translate-json","full_name":"netguru/i18n-translate-json","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/i18n-translate-json","description":"npm module that automatically translates node-i18n JSON files","fork":true,"url":"https://api.github.com/repos/netguru/i18n-translate-json","forks_url":"https://api.github.com/repos/netguru/i18n-translate-json/forks","keys_url":"https://api.github.com/repos/netguru/i18n-translate-json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/i18n-translate-json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/i18n-translate-json/teams","hooks_url":"https://api.github.com/repos/netguru/i18n-translate-json/hooks","issue_events_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/i18n-translate-json/events","assignees_url":"https://api.github.com/repos/netguru/i18n-translate-json/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/i18n-translate-json/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/i18n-translate-json/tags","blobs_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/i18n-translate-json/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/i18n-translate-json/languages","stargazers_url":"https://api.github.com/repos/netguru/i18n-translate-json/stargazers","contributors_url":"https://api.github.com/repos/netguru/i18n-translate-json/contributors","subscribers_url":"https://api.github.com/repos/netguru/i18n-translate-json/subscribers","subscription_url":"https://api.github.com/repos/netguru/i18n-translate-json/subscription","commits_url":"https://api.github.com/repos/netguru/i18n-translate-json/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/i18n-translate-json/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/i18n-translate-json/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/i18n-translate-json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/i18n-translate-json/merges","archive_url":"https://api.github.com/repos/netguru/i18n-translate-json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/i18n-translate-json/downloads","issues_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/i18n-translate-json/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/i18n-translate-json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/i18n-translate-json/labels{/name}","releases_url":"https://api.github.com/repos/netguru/i18n-translate-json/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/i18n-translate-json/deployments","created_at":"2018-08-13T09:03:57Z","updated_at":"2018-08-13T09:58:55Z","pushed_at":"2018-10-01T14:11:43Z","git_url":"git://github.com/netguru/i18n-translate-json.git","ssh_url":"git@github.com:netguru/i18n-translate-json.git","clone_url":"https://github.com/netguru/i18n-translate-json.git","svn_url":"https://github.com/netguru/i18n-translate-json","homepage":"","size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"netguru:master","ref":"master","sha":"9ddd8152db1b6e9b255a54d181998b4db63d67c9","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":144554974,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1NTQ5NzQ=","name":"i18n-translate-json","full_name":"netguru/i18n-translate-json","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/i18n-translate-json","description":"npm module that automatically translates node-i18n JSON files","fork":true,"url":"https://api.github.com/repos/netguru/i18n-translate-json","forks_url":"https://api.github.com/repos/netguru/i18n-translate-json/forks","keys_url":"https://api.github.com/repos/netguru/i18n-translate-json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/i18n-translate-json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/i18n-translate-json/teams","hooks_url":"https://api.github.com/repos/netguru/i18n-translate-json/hooks","issue_events_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/i18n-translate-json/events","assignees_url":"https://api.github.com/repos/netguru/i18n-translate-json/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/i18n-translate-json/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/i18n-translate-json/tags","blobs_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/i18n-translate-json/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/i18n-translate-json/languages","stargazers_url":"https://api.github.com/repos/netguru/i18n-translate-json/stargazers","contributors_url":"https://api.github.com/repos/netguru/i18n-translate-json/contributors","subscribers_url":"https://api.github.com/repos/netguru/i18n-translate-json/subscribers","subscription_url":"https://api.github.com/repos/netguru/i18n-translate-json/subscription","commits_url":"https://api.github.com/repos/netguru/i18n-translate-json/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/i18n-translate-json/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/i18n-translate-json/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/i18n-translate-json/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/i18n-translate-json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/i18n-translate-json/merges","archive_url":"https://api.github.com/repos/netguru/i18n-translate-json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/i18n-translate-json/downloads","issues_url":"https://api.github.com/repos/netguru/i18n-translate-json/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/i18n-translate-json/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/i18n-translate-json/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/i18n-translate-json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/i18n-translate-json/labels{/name}","releases_url":"https://api.github.com/repos/netguru/i18n-translate-json/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/i18n-translate-json/deployments","created_at":"2018-08-13T09:03:57Z","updated_at":"2018-08-13T09:58:55Z","pushed_at":"2018-10-01T14:11:43Z","git_url":"git://github.com/netguru/i18n-translate-json.git","ssh_url":"git@github.com:netguru/i18n-translate-json.git","clone_url":"https://github.com/netguru/i18n-translate-json.git","svn_url":"https://github.com/netguru/i18n-translate-json","homepage":"","size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2"},"html":{"href":"https://github.com/netguru/i18n-translate-json/pull/2"},"issue":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/issues/2"},"comments":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/i18n-translate-json/statuses/1285eb6039fa7039ef875d53e298ce1c40354fd9"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mlisik","id":2777813,"node_id":"MDQ6VXNlcjI3Nzc4MTM=","avatar_url":"https://avatars1.githubusercontent.com/u/2777813?v=4","gravatar_id":"","url":"https://api.github.com/users/mlisik","html_url":"https://github.com/mlisik","followers_url":"https://api.github.com/users/mlisik/followers","following_url":"https://api.github.com/users/mlisik/following{/other_user}","gists_url":"https://api.github.com/users/mlisik/gists{/gist_id}","starred_url":"https://api.github.com/users/mlisik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlisik/subscriptions","organizations_url":"https://api.github.com/users/mlisik/orgs","repos_url":"https://api.github.com/users/mlisik/repos","events_url":"https://api.github.com/users/mlisik/events{/privacy}","received_events_url":"https://api.github.com/users/mlisik/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":33,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mlisik"}}