Localization

Locale 2.0.0+

                
<date-picker locale="fa" />
                
        
                
<date-picker locale="en" />
                
        
                
<date-picker locale="fa,en" />
                
        
                
<date-picker locale="en,fa" />
                
        

Locale config 2.0.0+

                
<date-picker locale="en" :locale-config="localeConfigs" />
                
            
                
data() {
    return {
        localeConfigs: {
            en: {
                dir: {
                    input: "ltr",
                },
            }
        }
    }
}
                
            
                
<date-picker locale="fa,en" :locale-config="localeConfigs" />
                
            
                
data() {
    return {
        localeConfigs: {
            fa: {
                inputFormat:'jYYYY/jMM/jDD'
            },
            en: {
                inputFormat:'YYYY-MM-DD'
            }
        }
    }
}
                
            

See all localeConfig properties in here!

Custom language 2.0.0+

                
<date-picker locale="fa,fr" :locale-config="localeConfigs" />
                
            
                
data() {
    return {
        localeConfigs: {
            fr: {
                calendar: "gregorian",
                weekdays: ["di", "lu", "ma", "me", "je", "ve", "sa"],
                months: [
                    "janvier",
                    "février",
                    "mars",
                    "avril",
                    "mai",
                    "juin",
                    "juillet",
                    "août",
                    "septembre",
                    "octobre",
                    "novembre",
                    "décembre"
                ],
                dir: {
                    input: "rtl",
                    picker: "ltr",
                },
                translations: {
                    label: "فرانسوی",
                    text: "Calendrier français",
                    prevMonth: "le mois dernier",
                    nextMonth: "le mois prochain",
                    now: "maintenant",
                    submit: "Confirmation",
                },
                inputFormat: "date",
                displayFormat: "D MMMM",
            }
        }
    }
}