|
|
@@ -1,38 +1,21 @@
|
|
|
-import 'moment/locale/ar-ly';
|
|
|
-import * as FullCalendar from 'fullcalendar';
|
|
|
+import { defineLocale } from 'fullcalendar';
|
|
|
|
|
|
-
|
|
|
-/* Arabic Translation for jQuery UI date picker plugin. */
|
|
|
-/* Used in most of Arab countries, primarily in Bahrain, */
|
|
|
-/* Kuwait, Oman, Qatar, Saudi Arabia and the United Arab Emirates, Egypt, Sudan and Yemen. */
|
|
|
-/* Written by Mohammed Alshehri -- [email protected] */
|
|
|
-
|
|
|
-FullCalendar.datepickerLocale('ar-ly', 'ar', {
|
|
|
- closeText: "إغلاق",
|
|
|
- prevText: "<السابق",
|
|
|
- nextText: "التالي>",
|
|
|
- currentText: "اليوم",
|
|
|
- monthNames: [ "يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو",
|
|
|
- "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" ],
|
|
|
- monthNamesShort: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],
|
|
|
- dayNames: [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ],
|
|
|
- dayNamesShort: [ "أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت" ],
|
|
|
- dayNamesMin: [ "ح", "ن", "ث", "ر", "خ", "ج", "س" ],
|
|
|
- weekHeader: "أسبوع",
|
|
|
- dateFormat: "dd/mm/yy",
|
|
|
- firstDay: 0,
|
|
|
- isRTL: true,
|
|
|
- showMonthAfterYear: false,
|
|
|
- yearSuffix: "" });
|
|
|
-
|
|
|
-
|
|
|
-FullCalendar.locale("ar-ly", {
|
|
|
+defineLocale("ar-ly", {
|
|
|
+ week: {
|
|
|
+ dow: 6, // Saturday is the first day of the week.
|
|
|
+ doy: 12 // The week that contains Jan 1st is the first week of the year.
|
|
|
+ },
|
|
|
+ isRTL: true,
|
|
|
buttonText: {
|
|
|
+ prev: "السابق",
|
|
|
+ next: "التالي",
|
|
|
+ today: "اليوم",
|
|
|
month: "شهر",
|
|
|
week: "أسبوع",
|
|
|
day: "يوم",
|
|
|
list: "أجندة"
|
|
|
},
|
|
|
+ weekHeader: "أسبوع",
|
|
|
allDayText: "اليوم كله",
|
|
|
eventLimitText: "أخرى",
|
|
|
noEventsMessage: "أي أحداث لعرض"
|