{"action":"created","issue":{"url":"https://api.github.com/repos/crimethinc/website/issues/577","repository_url":"https://api.github.com/repos/crimethinc/website","labels_url":"https://api.github.com/repos/crimethinc/website/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/crimethinc/website/issues/577/comments","events_url":"https://api.github.com/repos/crimethinc/website/issues/577/events","html_url":"https://github.com/crimethinc/website/pull/577","id":282296747,"number":577,"title":"Add translation yaml plumbing for TCE","user":{"login":"astronaut-wannabe","id":13190980,"avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false},"labels":[{"id":688630822,"url":"https://api.github.com/repos/crimethinc/website/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"ff00bf","default":false},{"id":508724412,"url":"https://api.github.com/repos/crimethinc/website/labels/languages","name":"languages","color":"1d76db","default":false},{"id":520299938,"url":"https://api.github.com/repos/crimethinc/website/labels/translations","name":"translations","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"astronaut-wannabe","id":13190980,"avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false},"assignees":[{"login":"astronaut-wannabe","id":13190980,"avatar_url":"https://avatars1.githubusercontent.com/u/13190980?v=4","gravatar_id":"","url":"https://api.github.com/users/astronaut-wannabe","html_url":"https://github.com/astronaut-wannabe","followers_url":"https://api.github.com/users/astronaut-wannabe/followers","following_url":"https://api.github.com/users/astronaut-wannabe/following{/other_user}","gists_url":"https://api.github.com/users/astronaut-wannabe/gists{/gist_id}","starred_url":"https://api.github.com/users/astronaut-wannabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronaut-wannabe/subscriptions","organizations_url":"https://api.github.com/users/astronaut-wannabe/orgs","repos_url":"https://api.github.com/users/astronaut-wannabe/repos","events_url":"https://api.github.com/users/astronaut-wannabe/events{/privacy}","received_events_url":"https://api.github.com/users/astronaut-wannabe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/crimethinc/website/milestones/3","html_url":"https://github.com/crimethinc/website/milestone/3","labels_url":"https://api.github.com/repos/crimethinc/website/milestones/3/labels","id":2341066,"number":3,"title":"Code ","description":"Things that can be accomplished by PRs to the codebase.","creator":{"login":"veganstraightedge","id":4361,"avatar_url":"https://avatars3.githubusercontent.com/u/4361?v=4","gravatar_id":"","url":"https://api.github.com/users/veganstraightedge","html_url":"https://github.com/veganstraightedge","followers_url":"https://api.github.com/users/veganstraightedge/followers","following_url":"https://api.github.com/users/veganstraightedge/following{/other_user}","gists_url":"https://api.github.com/users/veganstraightedge/gists{/gist_id}","starred_url":"https://api.github.com/users/veganstraightedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veganstraightedge/subscriptions","organizations_url":"https://api.github.com/users/veganstraightedge/orgs","repos_url":"https://api.github.com/users/veganstraightedge/repos","events_url":"https://api.github.com/users/veganstraightedge/events{/privacy}","received_events_url":"https://api.github.com/users/veganstraightedge/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":98,"state":"open","created_at":"2017-02-22T17:56:29Z","updated_at":"2017-12-16T08:42:03Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-12-15T01:55:12Z","updated_at":"2017-12-16T19:18:02Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/crimethinc/website/pulls/577","html_url":"https://github.com/crimethinc/website/pull/577","diff_url":"https://github.com/crimethinc/website/pull/577.diff","patch_url":"https://github.com/crimethinc/website/pull/577.patch"},"body":"## Overview\r\nI have been adding in some plumbing to make it easier to create web versions of the rest of the TCE languages. I then localized `tce/espanol` using the new template at `tce/es` so that you could see and example. An overview of the structure (using es as the example) is this:\r\n\r\n- The `<head>` of  [website/public/tce/index.html][0] was pulled out into `app/views/layouts/to_change_anything.html.erb`\r\n- the page content was pulled out into `es.yml`\r\n- language specific css was moved to `assets` and wrapped in a `.es {}` scss block\r\n  - `class=\"es\"` is then applied to the `<body>` so that language-specific css can still be supported\r\n\r\n## TODO\r\n- [x] translate Table of Contents menu for `/es`\r\n- [x] translate Share menu for `/es`\r\n- [x] figure out how to handle dialects (e.g. ES vs ES-latin-america)\r\n  - [w3.org langvalues][1]\r\n  - [iana.org language-subtag-registry][2]\r\n  - [rfc bcp47][3]\r\n- [x] add `ltr` and `rtl` language toggles\r\n- [x] cache pages since they basically never change\r\n- [ ] `rm -r /public/tce/espanol`\r\n  - create redirect first?\r\n\r\n## demo\r\nyou can compare\r\n - https://crimethinc-staging-pr-577.herokuapp.com/tce/es          (new method)\r\n - https://crimethinc-staging-pr-577.herokuapp.com/tce/espanol (original)\r\n\r\n### Image Diff\r\nI have been performing image diffs between `/tce/espanol` and `/tce/es` while I developed.\r\n```sh\r\ndiffimg tce-espanol.png tce-es.png > diff.png\r\n```\r\nThe latest page diff is a satisfying solid black square (e.g. no diff)\r\n\r\n<details><summary>see page diff image</summary>\r\n\r\n![diff](https://user-images.githubusercontent.com/13190980/34056141-a3ec74de-e1b0-11e7-9145-14651c49b619.png)\r\n\r\n</details>\r\n\r\n[0]:https://github.com/crimethinc/website/blob/master/public/tce/index.html\r\n[1]:https://www.w3.org/International/questions/qa-html-language-declarations#langvalues\r\n[2]:http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\r\n[3]:http://www.rfc-editor.org/rfc/bcp/bcp47.txt"},"comment":{"url":"https://api.github.com/repos/crimethinc/website/issues/comments/352205071","html_url":"https://github.com/crimethinc/website/pull/577#issuecomment-352205071","issue_url":"https://api.github.com/repos/crimethinc/website/issues/577","id":352205071,"user":{"login":"veganstraightedge","id":4361,"avatar_url":"https://avatars3.githubusercontent.com/u/4361?v=4","gravatar_id":"","url":"https://api.github.com/users/veganstraightedge","html_url":"https://github.com/veganstraightedge","followers_url":"https://api.github.com/users/veganstraightedge/followers","following_url":"https://api.github.com/users/veganstraightedge/following{/other_user}","gists_url":"https://api.github.com/users/veganstraightedge/gists{/gist_id}","starred_url":"https://api.github.com/users/veganstraightedge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veganstraightedge/subscriptions","organizations_url":"https://api.github.com/users/veganstraightedge/orgs","repos_url":"https://api.github.com/users/veganstraightedge/repos","events_url":"https://api.github.com/users/veganstraightedge/events{/privacy}","received_events_url":"https://api.github.com/users/veganstraightedge/received_events","type":"User","site_admin":false},"created_at":"2017-12-16T19:18:02Z","updated_at":"2017-12-16T19:18:02Z","author_association":"CONTRIBUTOR","body":"I think launching without caching is a good idea.\r\n\r\n"}}
{"actor":{"display_login":"veganstraightedge"}}