bug in persian range datepicker
See original GitHub issuein range date picker when use persian language , sum of selected day in subtitle is show undefined
https://forum.quasar-framework.org/assets/uploads/files/1603864761972-range.png
<q-input label-color="teal-10" :label="dateModel.fromLabel" input-style="text-align: center;" outlined square v-model="selectedRange.from" mask="date" :rules="[isFromDateValid]" > <template v-slot:append> <q-icon name="event" class="cursor-pointer"> <q-popup-proxy ref="qDateProxy" transition-show="scale" transition-hide="scale" > <q-date :locale="persianLocale" v-model="selectedRange" calendar="persian" color="dp-header" range :options="limitDate" > <div class="row items-center justify-end"> <q-btn v-close-popup label="بستن" color="primary" flat /> </div> </q-date> </q-popup-proxy> </q-icon> </template> </q-input>
and my data prop:
persianLocale: { /* starting with Sunday */ days: [ "یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", ], daysShort: [ "یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", ], months: "فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند".split( "_" ), monthsShort: "فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند".split( "_" ), firstDayOfWeek: 6, }, };
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Closing in light of the above post that shows it working and waiting a reproducible example.
Thanks @Saeid-Za for your help.
@mohammadfiroozi Use the ad-hoc method of supplying a locale for your QDate. Make sure that you tell it’s
rtl: true
and also, enable quasar.conf.js > build > rtl: true