dayjsbr
This commit is contained in:
parent
850a683ae0
commit
0bb66d830f
6 changed files with 17 additions and 22 deletions
23
src/dayjs.ts
23
src/dayjs.ts
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue