That's so cool! Any indications of support timelines from Mozilla, Apple et al?
-
-
-
Mozilla has an implementation but it's not enabled by default yet and I think there are some smaller parts still missing.
@zbraniecki probably knows more. As for Apple and Microsoft, no clue.
End of conversation
New conversation -
-
-
This is really cool! I wonder why no API to which you can pass milliseconds where it will automatically pick an appropriate unit (years, weeks, seconds, etc). Seems like that would be incredibly useful. Better to leave this to userland?
-
Such an API can be built on top of Intl.RelativeTimeFormat. The hard/expensive part is getting the locale data.
- 1 more reply
New conversation -
-
-
btw, this API took us little more than 3 years until this point, but that pace is accelerating now for new APIs thanks to all the ecm402 contributors. a big shoutout to my friend
@ericf who was my partner in crime on the initial proposal.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Esperando pacientemente por esta maravillosa API :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can it say "99999" in French ? :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I need this now and everywhere.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It is surprising that native JavaScript will return a localized string. Moreover, it is firmly in Japanese. It is Interesting, and amazing...!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
The Intl.RelativeTimeFormat API enables localized formatting of relative times (e.g. “yesterday”, “42 seconds ago”, or “in 3 months”) without sacrificing performance.