forked from kbwood/calendars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.calendars-fa.js
23 lines (23 loc) · 1.08 KB
/
jquery.calendars-fa.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* http://keith-wood.name/calendars.html
Farsi/Persian localisation for Gregorian/Julian calendars for jQuery.
Javad Mowlanezhad -- [email protected] */
(function($) {
$.calendars.calendars.gregorian.prototype.regionalOptions['fa'] = {
name: 'Gregorian',
epochs: ['BCE', 'CE'],
monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور',
'مهر','آبان','آذر','دي','بهمن','اسفند'],
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
dayNames: ['يکشنبه','دوشنبه','سهشنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],
dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'],
dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'],
digits: $.calendars.substituteDigits(['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹']),
dateFormat: 'yyyy/mm/dd',
firstDay: 6,
isRTL: true
};
if ($.calendars.calendars.julian) {
$.calendars.calendars.julian.prototype.regionalOptions['fa'] =
$.calendars.calendars.gregorian.prototype.regionalOptions['fa'];
}
})(jQuery);