Skip to content

locale-config not working with v-model #116

Closed
@DevIsShortForDevil

Description

@DevIsShortForDevil

Hello
locale-config as it shows in the document doesn't work properly alongside v-model and format attributes and display-formats often get mixed up and show the wrong format. I tested it alot and I feel when I use "fa,en" in locale it's more likely to show the jalaali format and when it's on "en,fa" it's the other way around.

<date-picker
       date-picker
        v-model="date"
        format="YYYY/MM/DD"
        locale="fa,en"
        :locale-config="{
            fa: {
             displayFormat: 'jYYYY/jMM/jDD',
             lang: { label: 'شمسی' }
            },
            en: {
                displayFormat: 'YYYY/MM/DD',
                lang: { label: 'Gregorian' }
           }
       }"
/>

is there a solution to this problem ? am I making a mistake somewhere or is this a bug ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions