fix: use $locale for relative date

This commit is contained in:
Xylight committed 2024-06-05 11:48:13 -07:00
1 parent 05e0d58521
commit 9bb98acdd3
1 file changed
-3
@@ -39,9 +39,6 @@
const value = Math.round(diffInMillis / thresholds[i].threshold)
let language = $locale
if (typeof navigator != 'undefined') {
language = navigator.language
}
const rtf = new Intl.RelativeTimeFormat(language, options)