//! moment.js locale configuration
-//! locale : Arabic [ar]
-//! author : Abdel Said: https://github.com/abdelsaid
-//! author : Ahmed Elkhatib
-//! author : forabi https://github.com/forabi
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
-}(this, function (moment) { 'use strict';
+}(this, (function (moment) { 'use strict';
var symbolMap = {
return str.replace(/%d/i, number);
};
}, months = [
- 'Ù\83اÙ\86Ù\88Ù\86 اÙ\84ثاÙ\86Ù\8a Ù\8aÙ\86اÙ\8aر',
- 'شباط فبراير',
- 'آذار مارس',
- 'نيسان أبريل',
- 'أيار مايو',
- 'حزيران يونيو',
- 'تموز يوليو',
- 'آب أغسطس',
- 'Ø£Ù\8aÙ\84Ù\88Ù\84 سبتÙ\85بر',
- 'تشرÙ\8aÙ\86 اÙ\84Ø£Ù\88Ù\84 Ø£Ù\83تÙ\88بر',
- 'تشرين الثاني نوفمبر',
- 'كانون الأول ديسمبر'
+ 'يناير',
+ 'فبراير',
+ 'مارس',
+ 'أبريل',
+ 'مايو',
+ 'يونيو',
+ 'يوليو',
+ 'أغسطس',
+ 'سبتمبر',
+ 'أكتوبر',
+ 'نوفمبر',
+ 'ديسمبر'
];
var ar = moment.defineLocale('ar', {
future : 'بعد %s',
past : 'منذ %s',
s : pluralize('s'),
+ ss : pluralize('s'),
m : pluralize('m'),
mm : pluralize('m'),
h : pluralize('h'),
yy : pluralize('y')
},
preparse: function (string) {
- return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
return numberMap[match];
}).replace(/،/g, ',');
},
},
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.
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
}
});
return ar;
-}));
\ No newline at end of file
+})));