mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
fix(i18n): time locale not working
This commit is contained in:
parent
e1cbbd8a0e
commit
e6fa749a28
@ -1,4 +1,5 @@
|
||||
import dayjs, { locale } from 'dayjs'
|
||||
import dayjs from 'dayjs'
|
||||
import { locale } from '~/i18n'
|
||||
|
||||
export const formatTimeFromNow = (time: number | string) =>
|
||||
dayjs(time).locale(locale()).fromNow()
|
||||
|
Loading…
Reference in New Issue
Block a user