1 //! moment.js locale configuration
2 //! locale : Arabic (Lybia) [ar-ly]
3 //! author : Ali Hmer: https://github.com/kikoanis
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
26 pluralForm = function (n) {
33 : n % 100 >= 3 && n % 100 <= 10
43 ['ثانيتان', 'ثانيتين'],
51 ['دقيقتان', 'دقيقتين'],
89 pluralize = function (u) {
90 return function (number, withoutSuffix, string, isFuture) {
91 var f = pluralForm(number),
92 str = plurals[u][pluralForm(number)];
94 str = str[withoutSuffix ? 0 : 1];
96 return str.replace(/%d/i, number);
114 var arLy = moment.defineLocale('ar-ly', {
117 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
118 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
119 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
120 weekdaysParseExact: true,
124 L: 'D/\u200FM/\u200FYYYY',
126 LLL: 'D MMMM YYYY HH:mm',
127 LLLL: 'dddd D MMMM YYYY HH:mm',
129 meridiemParse: /ص|م/,
130 isPM: function (input) {
131 return 'م' === input;
133 meridiem: function (hour, minute, isLower) {
141 sameDay: '[اليوم عند الساعة] LT',
142 nextDay: '[غدًا عند الساعة] LT',
143 nextWeek: 'dddd [عند الساعة] LT',
144 lastDay: '[أمس عند الساعة] LT',
145 lastWeek: 'dddd [عند الساعة] LT',
164 preparse: function (string) {
165 return string.replace(/،/g, ',');
167 postformat: function (string) {
169 .replace(/\d/g, function (match) {
170 return symbolMap[match];
175 dow: 6, // Saturday is the first day of the week.
176 doy: 12, // The week that contains Jan 12th is the first week of the year.