Skip to content

Misleading example in docs (locale) #1174

@alexchexes

Description

@alexchexes

This page: https://vue3datepicker.com/props/localization/#locale
gives an example that suggests you import locale objects from @vuepic/vue-datepicker/locale. But the package doesn't actually export @vuepic/vue-datepicker/locale.

Image

You could add a clear instruction for users (possibly to the migration guide https://vue3datepicker.com/migration/from-v11#locale as well) that from now on they must:

  1. Add date-fns package: pnpm add date-fns and
  2. Import the desired locale like this: import { es } from 'date-fns/locale'

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions