Fix translating dates
This commit is contained in:
parent
21d31f2b40
commit
647b02e989
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ export const formatDateSince = (date, $t) => {
|
|||
date = createDateFromString(date)
|
||||
|
||||
const currentDate = new Date()
|
||||
const distance = formatDistance(date, currentDate)
|
||||
const distance = formatDistance(date, currentDate, {locale: locales[$t('date.locale')]})
|
||||
|
||||
if (date > currentDate) {
|
||||
return $t('date.in', {date: distance})
|
||||
|
|
Loading…
Reference in a new issue