misc: Update relative dates (again)
This commit is contained in:
1 parent
e259ceb6e4
commit
71ca33d9fc
5 files changed
+12
-11
No files matched your search
@@ -26,7 +26,8 @@
|
||||
|
||||
// Create a RelativeTimeFormat instance with user's locale and options
|
||||
const rtf = new Intl.RelativeTimeFormat(navigator.language, {
|
||||
numeric: 'auto',
|
||||
numeric: 'always',
|
||||
style: 'long',
|
||||
})
|
||||
|
||||
return rtf.format(-value, thresholds[i].unit as any)
|
||||
|
||||
Reference in new issue
Block a user