summaryrefslogtreecommitdiffstats
path: root/js/vendor/momentjs/locale/ar.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/momentjs/locale/ar.js')
-rw-r--r--js/vendor/momentjs/locale/ar.js42
1 files changed, 22 insertions, 20 deletions
diff --git a/js/vendor/momentjs/locale/ar.js b/js/vendor/momentjs/locale/ar.js
index 828e61876..3613c594b 100644
--- a/js/vendor/momentjs/locale/ar.js
+++ b/js/vendor/momentjs/locale/ar.js
@@ -1,18 +1,17 @@
-// moment.js locale configuration
-// Locale: Arabic (ar)
-// Author: Abdel Said: https://github.com/abdelsaid
-// Changes in months, weekdays: Ahmed Elkhatib
-// Native plural forms: forabi https://github.com/forabi
+//! moment.js locale configuration
+//! Locale: Arabic (ar)
+//! Author: Abdel Said: https://github.com/abdelsaid
+//! Changes in months, weekdays: Ahmed Elkhatib
+//! Native plural forms: 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';
+
-(function (factory) {
- if (typeof define === 'function' && define.amd) {
- define(['moment'], factory); // AMD
- } else if (typeof exports === 'object') {
- module.exports = factory(require('../moment')); // Node
- } else {
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
- }
-}(function (moment) {
var symbolMap = {
'1': '١',
'2': '٢',
@@ -68,7 +67,7 @@
'كانون الأول ديسمبر'
];
- return moment.defineLocale('ar', {
+ var ar = moment.defineLocale('ar', {
months : months,
monthsShort : months,
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
@@ -77,10 +76,10 @@
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
- L : 'DD/MM/YYYY',
+ L : 'D/\u200FM/\u200FYYYY',
LL : 'D MMMM YYYY',
- LLL : 'D MMMM YYYY LT',
- LLLL : 'dddd D MMMM YYYY LT'
+ LLL : 'D MMMM YYYY HH:mm',
+ LLLL : 'dddd D MMMM YYYY HH:mm'
},
meridiemParse: /ص|م/,
isPM : function (input) {
@@ -117,7 +116,7 @@
yy : pluralize('y')
},
preparse: function (string) {
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
+ return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
return numberMap[match];
}).replace(/،/g, ',');
},
@@ -131,4 +130,7 @@
doy : 12 // The week that contains Jan 1st is the first week of the year.
}
});
-}));
+
+ return ar;
+
+})); \ No newline at end of file