{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/remote-newtab/issues/146","labels_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/146/comments","events_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/146/events","html_url":"https://github.com/mozilla/remote-newtab/pull/146","id":117550705,"number":146,"title":"Tool for moving site files into place (l10n - Part 4)","user":{"login":"marcoscaceres","id":870154,"avatar_url":"https://avatars.githubusercontent.com/u/870154?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoscaceres","html_url":"https://github.com/marcoscaceres","followers_url":"https://api.github.com/users/marcoscaceres/followers","following_url":"https://api.github.com/users/marcoscaceres/following{/other_user}","gists_url":"https://api.github.com/users/marcoscaceres/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoscaceres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoscaceres/subscriptions","organizations_url":"https://api.github.com/users/marcoscaceres/orgs","repos_url":"https://api.github.com/users/marcoscaceres/repos","events_url":"https://api.github.com/users/marcoscaceres/events{/privacy}","received_events_url":"https://api.github.com/users/marcoscaceres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-18T09:52:13Z","updated_at":"2015-11-18T16:06:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/remote-newtab/pulls/146","html_url":"https://github.com/mozilla/remote-newtab/pull/146","diff_url":"https://github.com/mozilla/remote-newtab/pull/146.diff","patch_url":"https://github.com/mozilla/remote-newtab/pull/146.patch"},"body":" Moves the site files, and performs localization on a per release branch basis. How it works, for each of the release train branches:\r\n\r\n 1. it checks out the appropriate branch (e.g., nightly).\r\n 1. it sets up the appropriate directory structure:\r\n   ./build/version/branch/locale/\r\n 1. it copies over the files:\r\n   - the service worker.\r\n   - the js and css folders\r\n 1. Performs localization on HTML template (src/lang-tag/index.html)\r\n    using Handlebars.\r\n 1. Copies the localized HTML to the appropriate version/branch/locale\r\n    directory.\r\n\r\nBest of all, files that don't need to be localized are just placed at the \"branch\" level, so to avoid duplication. For example, there sw.js:\r\n * :file_folder: ./build/v2/nightly/sw.js\r\n\r\nLocalized HTML and the string.json files, then gets place in:\r\n * :file_folder: ./build/v2/nightly/ach/index.html\r\n * :file_folder: ./build/v2/aurora/ach/locale/strings.json\r\n\r\nHere is the folder structure: \r\n<img width=\"1217\" alt=\"screenshot 2015-11-18 21 23 31\" src=\"https://cloud.githubusercontent.com/assets/870154/11238665/53a4c9ce-8e3b-11e5-8026-7aa308876cbd.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/remote-newtab/issues/comments/157761320","html_url":"https://github.com/mozilla/remote-newtab/pull/146#issuecomment-157761320","issue_url":"https://api.github.com/repos/mozilla/remote-newtab/issues/146","id":157761320,"user":{"login":"oyiptong","id":9365,"avatar_url":"https://avatars.githubusercontent.com/u/9365?v=3","gravatar_id":"","url":"https://api.github.com/users/oyiptong","html_url":"https://github.com/oyiptong","followers_url":"https://api.github.com/users/oyiptong/followers","following_url":"https://api.github.com/users/oyiptong/following{/other_user}","gists_url":"https://api.github.com/users/oyiptong/gists{/gist_id}","starred_url":"https://api.github.com/users/oyiptong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyiptong/subscriptions","organizations_url":"https://api.github.com/users/oyiptong/orgs","repos_url":"https://api.github.com/users/oyiptong/repos","events_url":"https://api.github.com/users/oyiptong/events{/privacy}","received_events_url":"https://api.github.com/users/oyiptong/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T16:06:17Z","updated_at":"2015-11-18T16:06:17Z","body":"Ok. I looked at the other PR.\r\n\r\nSince with #145 we build out the templates, we don't need to copy strings.json anymore. Am I correct?"}}