fix: use $locale for relative date
This commit is contained in:
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user