Topic: Can I change language to zh-tw in datepicker ?
wuohyeah priority asked 4 months ago
https://mdbootstrap.com/docs/vue/forms/datepicker/#docsTabsOverview
In datepicker, I want to change the word in the red boxes below, how can I do this, thank you.
I try to use property: "weekdaysNarrow ", howerver it shows error while compiling.<MDBDatepicker label="簽約日期*" title="選擇日期"<br> container="body" format="YYYY-MM-DD"<br> placeholder="YYYY-MM-DD" confirmDateOnSelect<br> clearBtnText="清除" cancelBtnText="取消" removeOkBtn<br> weekdaysNarrow=['日', '一', '二ˋ', '三', '四', '五', '六'] toggleIcon="<i class='fa-solid fa-calendar-days text-primary'></i>" />
Bartosz Cylwik staff answered 4 months ago
Hi, you have some br
tags passed there together with props. In front of the weekdaysNarrow
there has to be a :
because we are not providing string.
Checkout this snippet, everything should work fine with some minor changes. https://mdbootstrap.com/snippets/vue/b-cylwik/6125529
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Vue
- MDB Version: MDB5 5.0.0
- Device: PC
- Browser: chrome
- OS: windows 11 pro
- Provided sample code: Yes
- Provided link: Yes