vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Documentation][3.4.0-beta.0] Import VuetifyDateAdapter as stated within docs doesn't work

Open 1Luc1 opened this issue 2 years ago • 4 comments

Environment

Browsers: Firefox 119.0 OS: Linux x86_64

Steps to reproduce

try to import VuetifyDateAdapter from 'vuetify/date/adapters/vuetify' as stated here

Expected Behavior

import works

Actual Behavior

import doesn't work

[plugin:vite:import-analysis] Failed to resolve import "vuetify/date/adapters/vuetify"

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

What works: import {VuetifyDateAdapter} from 'vuetify/lib/composables/date/adapters/vuetify'

1Luc1 avatar Nov 04 '23 11:11 1Luc1

There's no reason to actually import this currently, it's included by default.

KaelWD avatar Nov 04 '23 11:11 KaelWD

ok. but how and where do I change the current selected local for the date adapater?

export default createVuetify({
  date:{
    adapter: new VuetifyDateAdapter({locale:"de"})
  },
...
});

1Luc1 avatar Nov 04 '23 12:11 1Luc1

It uses the locale from https://vuetifyjs.com/en/features/internationalization/

KaelWD avatar Nov 04 '23 12:11 KaelWD

It should work when 3.9.0 will be released. Playground runs fine here, ~~but the TS types are picked from master, so editor shows errors for now~~.

Image

J-Sek avatar Jun 14 '25 10:06 J-Sek