From 743c8729d8af2c004a0b504db93d3a820ff743f3 Mon Sep 17 00:00:00 2001 From: les Date: Sun, 25 Oct 2020 00:33:03 +0200 Subject: [PATCH] add dayjs locales --- plugins/filters.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/filters.js b/plugins/filters.js index 26c668c5..eb4e01a6 100644 --- a/plugins/filters.js +++ b/plugins/filters.js @@ -4,12 +4,19 @@ import relativeTime from 'dayjs/plugin/relativeTime' import utc from 'dayjs/plugin/utc' import timezone from 'dayjs/plugin/timezone' +import 'dayjs/locale/it' +import 'dayjs/locale/es' +import 'dayjs/locale/ca' +import 'dayjs/locale/pl' +import 'dayjs/locale/eu' +import 'dayjs/locale/nb' +import 'dayjs/locale/fr' + dayjs.extend(relativeTime) dayjs.extend(utc) dayjs.extend(timezone) export default ({ app, store }) => { - // set timezone to instance_timezone!! // to show local time relative to event's place // not where in the world I'm looking at the page from