This commit is contained in:
Luiz Silva 2026-02-15 15:09:53 -03:00
parent 850a683ae0
commit 0bb66d830f
6 changed files with 17 additions and 22 deletions

View file

@ -1,4 +1,4 @@
import dayjs, { type Dayjs } from "dayjs"
import dayjsbr, { type Dayjs } from "dayjs"
export type { ManipulateType } from "dayjs"
@ -11,20 +11,19 @@ import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear"
import "dayjs/locale/pt-br"
dayjs.locale("pt-br")
dayjsbr.locale("pt-br")
dayjs.extend(utc)
dayjs.extend(timezone)
dayjs.extend(weekOfYear)
dayjs.extend(isSameOrBefore)
dayjs.extend(isSameOrAfter)
dayjs.extend(minMax)
dayjs.extend(relativeTime)
dayjs.extend(duration)
export const dayjsbr = dayjs
dayjsbr.extend(utc)
dayjsbr.extend(timezone)
dayjsbr.extend(weekOfYear)
dayjsbr.extend(isSameOrBefore)
dayjsbr.extend(isSameOrAfter)
dayjsbr.extend(minMax)
dayjsbr.extend(relativeTime)
dayjsbr.extend(duration)
export {
dayjsbr,
duration,
isSameOrAfter,
isSameOrBefore,