mais ajustes
This commit is contained in:
parent
14396d5ec5
commit
10a3312418
7 changed files with 59 additions and 39 deletions
24
src/dayjs.ts
24
src/dayjs.ts
|
|
@ -1,4 +1,4 @@
|
|||
import dayjsbr from "dayjs"
|
||||
import dayjs from "dayjs"
|
||||
|
||||
export type { ManipulateType } from "dayjs"
|
||||
|
||||
|
|
@ -10,14 +10,18 @@ import relativeTime from "dayjs/plugin/relativeTime.js"
|
|||
import timezone from "dayjs/plugin/timezone.js"
|
||||
import utc from "dayjs/plugin/utc.js"
|
||||
import weekOfYear from "dayjs/plugin/weekOfYear.js"
|
||||
import "dayjs/locale/pt-br.js"
|
||||
dayjs.locale("pt-br")
|
||||
|
||||
dayjsbr.extend(utc)
|
||||
dayjsbr.extend(timezone)
|
||||
dayjsbr.extend(weekOfYear)
|
||||
dayjsbr.extend(isSameOrBefore)
|
||||
dayjsbr.extend(isSameOrAfter)
|
||||
dayjsbr.extend(minMax)
|
||||
dayjsbr.extend(relativeTime)
|
||||
dayjsbr.extend(duration)
|
||||
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 { dayjsbr }
|
||||
export const dayjsbr = dayjs
|
||||
|
||||
export { dayjs }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue