From 157533bb9d637e3c4010997d3c718eb6e1a23c80 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sat, 8 Nov 2025 18:49:31 +0100 Subject: [PATCH] Added Dayjs Plugin --- plugins/dayjs.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/dayjs.ts diff --git a/plugins/dayjs.ts b/plugins/dayjs.ts new file mode 100644 index 0000000..723c115 --- /dev/null +++ b/plugins/dayjs.ts @@ -0,0 +1,14 @@ +import dayjs from 'dayjs' +import duration from 'dayjs/plugin/duration' +import relativeTime from 'dayjs/plugin/relativeTime' +import localizedFormat from 'dayjs/plugin/localizedFormat' +import 'dayjs/locale/de' + +dayjs.extend(duration) +dayjs.extend(relativeTime) +dayjs.extend(localizedFormat) +dayjs.locale('de') + +export default defineNuxtPlugin(() => { + return { provide: { dayjs } } +}) \ No newline at end of file