{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/5478","repository_url":"https://api.github.com/repos/jekyll/jekyll","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/5478/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/5478/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/5478/events","html_url":"https://github.com/jekyll/jekyll/issues/5478","id":182423167,"number":5478,"title":"[Proposal] Date localisation filter","user":{"login":"ashmaroli","id":12479464,"avatar_url":"https://avatars.githubusercontent.com/u/12479464?v=3","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-12T02:57:58Z","updated_at":"2016-10-12T05:00:30Z","closed_at":null,"body":"Hi, I would like to start another discussion.. this time, for a liquid filter to have the dates transformed based on settings in `_config.yml`.\r\n\r\nThe rough outline is:\r\n```\r\n{% assign locale = site.lang %}\r\n{{ post.date | date_locale: 'locale' | date_format: '%B %d, %Y' }}\r\n```\r\n`date_locale` would given translated days/months/year based on `site[lang]`\r\ne.g.. \r\n```\r\n{% assign locale = site.lang %}\r\n{{ post.date | date_locale: 'locale' %}\r\n\r\n# => \"12 octobre 2016\" for site.lang == 'fr'\r\n# => \"October 12, 2016\" for site.lang == 'en'`\r\n```\r\nThe date_format filter **forces** a particular format but may be unnecessary or not required entirely."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/253119467","html_url":"https://github.com/jekyll/jekyll/issues/5478#issuecomment-253119467","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/5478","id":253119467,"user":{"login":"ashmaroli","id":12479464,"avatar_url":"https://avatars.githubusercontent.com/u/12479464?v=3","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},"created_at":"2016-10-12T05:00:30Z","updated_at":"2016-10-12T05:00:30Z","body":"Ah.. right.. my bad.. sorry for that.. it should've been just `locale` .. I'll update above.."}}
{"actor":{"display_login":"ashmaroli"}}