fix: date formatting for non-english languages

This commit is contained in:
kolaente 2021-09-26 20:07:15 +02:00
parent 8cd4bbccf6
commit a955488cdf
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View file

@ -1,8 +1,8 @@
import {createDateFromString} from '@/helpers/time/createDateFromString'
import {format, formatDistance} from 'date-fns'
import {enGB, de} from 'date-fns/locale'
import {enGB, de, fr, ru} from 'date-fns/locale'
const locales = {enGB, de}
const locales = {en: enGB, de, ch: de, fr, ru}
const dateIsValid = date => {
if (date === null) {

View file

@ -786,7 +786,7 @@
}
},
"date": {
"locale": "en",
"locale": "ru",
"in": "в {date}",
"ago": "{date} назад",
"altFormatLong": "j M Y H:i",