Safari Technology Preview 110 was released on 16th July, 2020.
Major web platform updates include :
Support for Intl.RelativeTimeFormat. This can be used to show relative time through native Javascript (1 day ago, 1 min ago, Yesterday etc) without using external libraries such as moment.js
let time = new Intl.RelativeTimeFormat('en');
// "5 minutes ago"
console.log(time.format(-5, 'minute'));
Read complete blog post on webkit.org
These features should probably be included in the upcoming version of Safari.
Comments