Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery fullcalendar to Persian

I want to change jquery fullcalendar to Persian calendar.

I am using this code:

   isRTL: true,
    monthNames: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور',
                'مهر', 'آبان', 'آذر', 'دي', 'بهمن', 'اسفند'],
    monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
    dayNames: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
    dayNamesShort: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
    dayNamesMin: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
    weekHeader: 'هفته',
    dateFormat: 'yy/mm/dd',
    firstDay: 6,

My UI has changed but may calendar is not Persian

like image 681
user1445018 Avatar asked Jun 08 '12 16:06

user1445018


1 Answers

jalali-fullcalendar may help you. Even if you don't use PHP or Yii you can take a look and extract the methods you need.

like image 124
Mazdak B. Avatar answered Nov 17 '22 22:11

Mazdak B.