{"action":"created","issue":{"url":"https://api.github.com/repos/date-fns/date-fns/issues/464","repository_url":"https://api.github.com/repos/date-fns/date-fns","labels_url":"https://api.github.com/repos/date-fns/date-fns/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/date-fns/date-fns/issues/464/comments","events_url":"https://api.github.com/repos/date-fns/date-fns/issues/464/events","html_url":"https://github.com/date-fns/date-fns/issues/464","id":214854162,"node_id":"MDU6SXNzdWUyMTQ4NTQxNjI=","number":464,"title":"Proposal: using Intl.DateTimeFormat for date formats instead of date-fns/locale","user":{"login":"mauron85","id":359450,"node_id":"MDQ6VXNlcjM1OTQ1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/359450?v=4","gravatar_id":"","url":"https://api.github.com/users/mauron85","html_url":"https://github.com/mauron85","followers_url":"https://api.github.com/users/mauron85/followers","following_url":"https://api.github.com/users/mauron85/following{/other_user}","gists_url":"https://api.github.com/users/mauron85/gists{/gist_id}","starred_url":"https://api.github.com/users/mauron85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauron85/subscriptions","organizations_url":"https://api.github.com/users/mauron85/orgs","repos_url":"https://api.github.com/users/mauron85/repos","events_url":"https://api.github.com/users/mauron85/events{/privacy}","received_events_url":"https://api.github.com/users/mauron85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-16T22:15:02Z","updated_at":"2018-12-15T16:47:34Z","closed_at":null,"author_association":"NONE","body":"There is already Intl.DateTimeFormat native browser API for objects that enable language sensitive date and time formatting in modern browsers and can be polyfilled for old ones.\r\n\r\nI've checked examples at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\r\nand IMO custom date-fns/locale/lang can be avoided.\r\n\r\nI see two benefits:\r\n1. no translations needed as browser window.Intl.DateTimeFormat is already providing them\r\n2. for applications which are using other i18n packages like react-intl it means not loading two separate locale bundles (in best case scenario no external locale bundle will be needed).\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/date-fns/date-fns/issues/comments/447581608","html_url":"https://github.com/date-fns/date-fns/issues/464#issuecomment-447581608","issue_url":"https://api.github.com/repos/date-fns/date-fns/issues/464","id":447581608,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU4MTYwOA==","user":{"login":"motabass","id":4824274,"node_id":"MDQ6VXNlcjQ4MjQyNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4824274?v=4","gravatar_id":"","url":"https://api.github.com/users/motabass","html_url":"https://github.com/motabass","followers_url":"https://api.github.com/users/motabass/followers","following_url":"https://api.github.com/users/motabass/following{/other_user}","gists_url":"https://api.github.com/users/motabass/gists{/gist_id}","starred_url":"https://api.github.com/users/motabass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motabass/subscriptions","organizations_url":"https://api.github.com/users/motabass/orgs","repos_url":"https://api.github.com/users/motabass/repos","events_url":"https://api.github.com/users/motabass/events{/privacy}","received_events_url":"https://api.github.com/users/motabass/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T16:47:34Z","updated_at":"2018-12-15T16:47:34Z","author_association":"NONE","body":"fyi:\r\n\r\nA new relative-time-formating API landed in Chrome 71:\r\n[](https://developers.google.com/web/updates/2018/10/intl-relativetimeformat)"}}
{"actor":{"display_login":"motabass"}}