diff --git a/src/helpers/time.ts b/src/helpers/time.ts index 0f87049..b10ea87 100644 --- a/src/helpers/time.ts +++ b/src/helpers/time.ts @@ -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()