payload: {"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/7240","repository_url":"https://api.github.com/repos/jekyll/jekyll","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/7240/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/7240/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/7240/events","html_url":"https://github.com/jekyll/jekyll/pull/7240","id":359084072,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NjYwNjQz","number":7240,"title":"WIP Add support for basic localization","user":{"login":"ashmaroli","id":12479464,"node_id":"MDQ6VXNlcjEyNDc5NDY0","avatar_url":"https://avatars0.githubusercontent.com/u/12479464?v=4","gravatar_id":"","url":"https://api.github.com/users/ashmaroli","html_url":"https://github.com/ashmaroli","followers_url":"https://api.github.com/users/ashmaroli/followers","following_url":"https://api.github.com/users/ashmaroli/following{/other_user}","gists_url":"https://api.github.com/users/ashmaroli/gists{/gist_id}","starred_url":"https://api.github.com/users/ashmaroli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashmaroli/subscriptions","organizations_url":"https://api.github.com/users/ashmaroli/orgs","repos_url":"https://api.github.com/users/ashmaroli/repos","events_url":"https://api.github.com/users/ashmaroli/events{/privacy}","received_events_url":"https://api.github.com/users/ashmaroli/received_events","type":"User","site_admin":false},"labels":[{"id":750328457,"node_id":"MDU6TGFiZWw3NTAzMjg0NTc=","url":"https://api.github.com/repos/jekyll/jekyll/labels/Work-In-Progress","name":"Work-In-Progress","color":"c90e8b","default":false},{"id":3052,"node_id":"MDU6TGFiZWwzMDUy","url":"https://api.github.com/repos/jekyll/jekyll/labels/feature","name":"feature","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jekyll/jekyll/milestones/49","html_url":"https://github.com/jekyll/jekyll/milestone/49","labels_url":"https://api.github.com/repos/jekyll/jekyll/milestones/49/labels","id":1973597,"node_id":"MDk6TWlsZXN0b25lMTk3MzU5Nw==","number":49,"title":"4.0","description":null,"creator":{"login":"parkr","id":237985,"node_id":"MDQ6VXNlcjIzNzk4NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/237985?v=4","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":true},"open_issues":22,"closed_issues":46,"state":"open","created_at":"2016-08-30T20:46:41Z","updated_at":"2019-03-19T07:03:58Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2018-09-11T14:52:08Z","updated_at":"2019-03-21T19:20:51Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/jekyll/jekyll/pulls/7240","html_url":"https://github.com/jekyll/jekyll/pull/7240","diff_url":"https://github.com/jekyll/jekyll/pull/7240.diff","patch_url":"https://github.com/jekyll/jekyll/pull/7240.patch"},"body":"*Disclaimer: Not a ground-breaking feature :wink:*\r\n\r\n---\r\n\r\n**This feature would simplify creating and maintaining templates and themes with locale support via Jekyll's data directory.**\r\n\r\n### Example Case\r\n\r\nFor example, in the popular theme [Minimal Mistakes](https://github.com/mmistakes/minimal-mistakes) by @mmistakes, one would find numerous instances of providing locale support by using [the following syntax](https://github.com/mmistakes/minimal-mistakes/blob/fc3e7a61769253f10d325525b0a7a334166f49ac/_includes/comments.html#L2);\r\n```\r\n{{ site.data.ui-text[site.locale].comments_label | default: \"Comments\" }}\r\n```\r\n\r\nWith the proposed native support in Jekyll, @mmistakes (or a user customizing the template) can achieve the same result from the following syntax:\r\n```\r\n{{ locale.comments_label | default: \"Comments\" }}\r\n```\r\nalong with the following configuration for compatibility:\r\n```yaml\r\n# _config.yml\r\n\r\nlocales_dir: ui-text\r\nlocale: en-US\r\n```"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/475368474","html_url":"https://github.com/jekyll/jekyll/pull/7240#issuecomment-475368474","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/7240","id":475368474,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NTM2ODQ3NA==","user":{"login":"mattr-","id":77174,"node_id":"MDQ6VXNlcjc3MTc0","avatar_url":"https://avatars2.githubusercontent.com/u/77174?v=4","gravatar_id":"","url":"https://api.github.com/users/mattr-","html_url":"https://github.com/mattr-","followers_url":"https://api.github.com/users/mattr-/followers","following_url":"https://api.github.com/users/mattr-/following{/other_user}","gists_url":"https://api.github.com/users/mattr-/gists{/gist_id}","starred_url":"https://api.github.com/users/mattr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattr-/subscriptions","organizations_url":"https://api.github.com/users/mattr-/orgs","repos_url":"https://api.github.com/users/mattr-/repos","events_url":"https://api.github.com/users/mattr-/events{/privacy}","received_events_url":"https://api.github.com/users/mattr-/received_events","type":"User","site_admin":true},"created_at":"2019-03-21T19:20:51Z","updated_at":"2019-03-21T19:20:51Z","author_association":"MEMBER","body":"@untra There won't be anything that lands in Jekyll 4.0 for i18n. I'd recommend updating `polyglot` when you can find the spare cycles to do so. 🙂 "}}
other: {"actor":{"display_login":"mattr-"}}