Intl.RelativeTimeFormat
Widely availableThe Intl.RelativeTimeFormat
API creates a locale-aware formatter that turns an object representing a relative time (such as ‘1 day ago’) into a localized string.
The Intl.RelativeTimeFormat
API creates a locale-aware formatter that turns an object representing a relative time (such as ‘1 day ago’) into a localized string.