Replies: 1 comment 1 reply
-
Looks like it uses the locale from https://vuetifyjs.com/en/features/internationalization/ and you can't actually pass an instance like https://vuetifyjs.com/en/features/dates/#adapter shows, only a constructor import { createVuetify } from 'vuetify/labs'
+ import { sv } from 'vuetify/locale'
import LuxonAdapter from "@date-io/luxon"
- const luxon = new LuxonAdapter({ locale: "sv" });
export default createVuetify({
date: {
- adapter: luxon,
+ adapter: LuxonAdapter,
},
+ locale: {
+ locale: 'sv',
+ messages: { sv },
+ },
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ask shown within the docs, it is possible to set the locale for an extern DateAdapter, but I couldn't figure it out, how to set it for the VuetifyDateAdapter. https://vuetifyjs.com/en/features/dates/#usage .
Beta Was this translation helpful? Give feedback.
All reactions