|
|
@ -1,10 +1,11 @@ |
|
|
|
import { extend } from 'dayjs' |
|
|
|
import dayjs, { extend } from 'dayjs' |
|
|
|
import relativeTime from 'dayjs/plugin/relativeTime.js' |
|
|
|
import relativeTime from 'dayjs/plugin/relativeTime.js' |
|
|
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js' |
|
|
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js' |
|
|
|
import duration from 'dayjs/plugin/duration.js' |
|
|
|
import duration from 'dayjs/plugin/duration.js' |
|
|
|
import utc from 'dayjs/plugin/utc.js' |
|
|
|
import utc from 'dayjs/plugin/utc.js' |
|
|
|
import weekday from 'dayjs/plugin/weekday.js' |
|
|
|
import weekday from 'dayjs/plugin/weekday.js' |
|
|
|
import timezone from 'dayjs/plugin/timezone.js' |
|
|
|
import timezone from 'dayjs/plugin/timezone.js' |
|
|
|
|
|
|
|
import updateLocale from 'dayjs/plugin/updateLocale' |
|
|
|
import { defineNuxtPlugin } from '#imports' |
|
|
|
import { defineNuxtPlugin } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
export default defineNuxtPlugin(() => { |
|
|
|
export default defineNuxtPlugin(() => { |
|
|
@ -14,4 +15,8 @@ export default defineNuxtPlugin(() => { |
|
|
|
extend(duration) |
|
|
|
extend(duration) |
|
|
|
extend(weekday) |
|
|
|
extend(weekday) |
|
|
|
extend(timezone) |
|
|
|
extend(timezone) |
|
|
|
|
|
|
|
extend(updateLocale) |
|
|
|
|
|
|
|
dayjs.updateLocale('en', { |
|
|
|
|
|
|
|
weekStart: 1, |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|