Edit
/* js/inventory-datepicker.js */
var bodyDirection = $('body').attr('dir');
var Rtl = false;
var showMonthAfterYear = true;
var closeText, currentText, monthNames, monthNamesShort, dayNames, dayNamesShort, dayNamesMin, weekHeader,
showMonthAfterYear;
closeText = "Done",
currentText = 'Today',
monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
dayNamesMin = ["su", "mo", "tu", "we" ,"the", "fr", "sa"];
if(bodyDirection == 'rtl'){
Rtl = true;
showMonthAfterYear = false;
closeText = "إغلاق",
currentText = 'اليوم',
monthNames = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
dayNames = ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"];
dayNamesMin = ["ح", "ن", "ث", "ر", "خ", "ج", "س"];
}
$( function() {
$( "#datepickerTTT" ).datepicker({
dateFormat: 'yy/mm/dd',
showButtonPanel: true,
isRTL: Rtl,
beforeShowDay: function (date) {
// Sets Weekend Friday and Saturday.
var weekend = date.getDay() == 5 || date.getDay() == 6;
return [!weekend, 'myweekend'];
},
// Sets Weekend position.
closeText: closeText,
currentText: currentText,
monthNames: monthNames,
dayNames: dayNames,
dayNamesMin: dayNamesMin,
isRTL: Rtl,
showMonthAfterYear: showMonthAfterYear,
yearSuffix: ""
});
});