Skip to content

Commit 06231cf

Browse files
Mohammed Alshehriscottgonzalez
Mohammed Alshehri
authored andcommitted
Datepicker: Fixed month names and firstDay value in Arabic locale
Fixes #10035 Closes jquerygh-1246
1 parent 1fb0879 commit 06231cf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ui/i18n/datepicker-ar.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Arabic Translation for jQuery UI date picker plugin. */
2-
/* Khaled Alhourani -- me@khaledalhourani.com */
3-
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
2+
/* Used in most of Arab countries, primarily in Bahrain, Kuwait, Oman, Qatar, Saudi Arabia and the United Arab Emirates, Egypt, Sudan and Yemen. */
3+
/* Written by Mohammed Alshehri -- m@dralshehri.com */
4+
45
(function( factory ) {
56
if ( typeof define === "function" && define.amd ) {
67

@@ -18,15 +19,15 @@ datepicker.regional['ar'] = {
1819
prevText: '<السابق',
1920
nextText: 'التالي>',
2021
currentText: 'اليوم',
21-
monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران',
22-
'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
22+
monthNames: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو',
23+
'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
2324
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
2425
dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
25-
dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
26+
dayNamesShort: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
2627
dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
2728
weekHeader: 'أسبوع',
2829
dateFormat: 'dd/mm/yy',
29-
firstDay: 6,
30+
firstDay: 0,
3031
isRTL: true,
3132
showMonthAfterYear: false,
3233
yearSuffix: ''};

0 commit comments

Comments
 (0)