This commit is contained in:
Luiz Silva 2025-07-26 18:35:47 -03:00
parent bb1dbd3b0b
commit 722c065be0
8 changed files with 97 additions and 4 deletions

24
src/dayjs.ts Normal file
View file

@ -0,0 +1,24 @@
import dayjsbr from "dayjs"
export type { ManipulateType } from "dayjs"
import "dayjs/locale/pt-br"
import duration from "dayjs/plugin/duration"
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"
import minMax from "dayjs/plugin/minMax"
import relativeTime from "dayjs/plugin/relativeTime"
import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import weekOfYear from "dayjs/plugin/weekOfYear"
dayjsbr.extend(utc)
dayjsbr.extend(timezone)
dayjsbr.extend(weekOfYear)
dayjsbr.extend(isSameOrBefore)
dayjsbr.extend(isSameOrAfter)
dayjsbr.extend(minMax)
dayjsbr.extend(relativeTime)
dayjsbr.extend(duration)
dayjsbr.locale("pt-br")
export { dayjsbr }