momentjs-rails 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +29 -22
- data/vendor/assets/javascripts/moment/af.js +23 -23
- data/vendor/assets/javascripts/moment/ar-ma.js +24 -24
- data/vendor/assets/javascripts/moment/ar-sa.js +26 -26
- data/vendor/assets/javascripts/moment/ar.js +26 -26
- data/vendor/assets/javascripts/moment/az.js +46 -46
- data/vendor/assets/javascripts/moment/be.js +17 -17
- data/vendor/assets/javascripts/moment/bg.js +23 -23
- data/vendor/assets/javascripts/moment/bn.js +28 -28
- data/vendor/assets/javascripts/moment/bo.js +28 -28
- data/vendor/assets/javascripts/moment/br.js +22 -22
- data/vendor/assets/javascripts/moment/bs.js +17 -17
- data/vendor/assets/javascripts/moment/ca.js +23 -23
- data/vendor/assets/javascripts/moment/cs.js +15 -15
- data/vendor/assets/javascripts/moment/cv.js +23 -23
- data/vendor/assets/javascripts/moment/cy.js +24 -24
- data/vendor/assets/javascripts/moment/da.js +23 -23
- data/vendor/assets/javascripts/moment/de-at.js +17 -17
- data/vendor/assets/javascripts/moment/de.js +17 -17
- data/vendor/assets/javascripts/moment/el.js +30 -26
- data/vendor/assets/javascripts/moment/en-au.js +23 -23
- data/vendor/assets/javascripts/moment/en-ca.js +23 -23
- data/vendor/assets/javascripts/moment/en-gb.js +23 -23
- data/vendor/assets/javascripts/moment/eo.js +24 -24
- data/vendor/assets/javascripts/moment/es.js +24 -24
- data/vendor/assets/javascripts/moment/et.js +12 -12
- data/vendor/assets/javascripts/moment/eu.js +27 -27
- data/vendor/assets/javascripts/moment/fa.js +3 -3
- data/vendor/assets/javascripts/moment/fi.js +19 -19
- data/vendor/assets/javascripts/moment/fo.js +23 -23
- data/vendor/assets/javascripts/moment/fr-ca.js +24 -24
- data/vendor/assets/javascripts/moment/fr.js +24 -24
- data/vendor/assets/javascripts/moment/gl.js +25 -25
- data/vendor/assets/javascripts/moment/he.js +31 -31
- data/vendor/assets/javascripts/moment/hi.js +28 -28
- data/vendor/assets/javascripts/moment/hr.js +17 -17
- data/vendor/assets/javascripts/moment/hu.js +12 -12
- data/vendor/assets/javascripts/moment/hy-am.js +24 -24
- data/vendor/assets/javascripts/moment/id.js +23 -23
- data/vendor/assets/javascripts/moment/is.js +14 -14
- data/vendor/assets/javascripts/moment/it.js +23 -23
- data/vendor/assets/javascripts/moment/ja.js +25 -25
- data/vendor/assets/javascripts/moment/ka.js +26 -26
- data/vendor/assets/javascripts/moment/km.js +23 -23
- data/vendor/assets/javascripts/moment/ko.js +25 -25
- data/vendor/assets/javascripts/moment/lb.js +28 -28
- data/vendor/assets/javascripts/moment/lt.js +38 -38
- data/vendor/assets/javascripts/moment/lv.js +18 -18
- data/vendor/assets/javascripts/moment/mk.js +23 -23
- data/vendor/assets/javascripts/moment/ml.js +28 -28
- data/vendor/assets/javascripts/moment/mr.js +28 -28
- data/vendor/assets/javascripts/moment/ms-my.js +23 -23
- data/vendor/assets/javascripts/moment/my.js +23 -23
- data/vendor/assets/javascripts/moment/nb.js +23 -23
- data/vendor/assets/javascripts/moment/ne.js +29 -29
- data/vendor/assets/javascripts/moment/nl.js +24 -24
- data/vendor/assets/javascripts/moment/nn.js +23 -23
- data/vendor/assets/javascripts/moment/pl.js +18 -18
- data/vendor/assets/javascripts/moment/pt-br.js +23 -23
- data/vendor/assets/javascripts/moment/pt.js +23 -23
- data/vendor/assets/javascripts/moment/ro.js +19 -19
- data/vendor/assets/javascripts/moment/ru.js +18 -18
- data/vendor/assets/javascripts/moment/sk.js +15 -15
- data/vendor/assets/javascripts/moment/sl.js +17 -17
- data/vendor/assets/javascripts/moment/sq.js +23 -23
- data/vendor/assets/javascripts/moment/sr-cyrl.js +11 -11
- data/vendor/assets/javascripts/moment/sr.js +11 -11
- data/vendor/assets/javascripts/moment/sv.js +23 -23
- data/vendor/assets/javascripts/moment/ta.js +29 -29
- data/vendor/assets/javascripts/moment/th.js +25 -25
- data/vendor/assets/javascripts/moment/tl-ph.js +24 -24
- data/vendor/assets/javascripts/moment/tr.js +42 -42
- data/vendor/assets/javascripts/moment/tzm-latn.js +24 -24
- data/vendor/assets/javascripts/moment/tzm.js +24 -24
- data/vendor/assets/javascripts/moment/uk.js +19 -19
- data/vendor/assets/javascripts/moment/uz.js +24 -24
- data/vendor/assets/javascripts/moment/vi.js +28 -28
- data/vendor/assets/javascripts/moment/zh-cn.js +48 -48
- data/vendor/assets/javascripts/moment/zh-tw.js +41 -41
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c52d9a9458f87392ace0ff468405e8cb2d2c18d6
|
4
|
+
data.tar.gz: 16a59a72e7d28ed4d00f46da515e3748f816ba34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b110533fe90eb25d56a1ae2c5866c473a12ac0ebc6621ab665da8dd0adeaf0b65d6910e8a558837e6e077ab7604ef5c18824cb9e4cf2abff1d84422af6ae3c9b
|
7
|
+
data.tar.gz: 48e085b765f04390daaa1d06415758547ad92eedf15b0ac801dbeebc99e1a67b683097ea1c9fc1df0586c532aedeb7a46f03b7b56c8cedcf5b764e60c7a33909
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ If you want to include a localization file, also add the following directive:
|
|
24
24
|
|
25
25
|
## Versioning
|
26
26
|
|
27
|
-
momentjs-rails 2.8.
|
27
|
+
momentjs-rails 2.8.2 == Moment.js 2.8.2
|
28
28
|
|
29
29
|
Every attempt is made to mirror the currently shipping Momentum.js version number wherever possible.
|
30
30
|
The major, minor, and patch version numbers will always represent the Momentum.js version. Should a gem
|
data/news.md
CHANGED
@@ -8,7 +8,7 @@ class NavigationTest < ActionDispatch::IntegrationTest
|
|
8
8
|
|
9
9
|
test 'momentjs response is for the expected version' do
|
10
10
|
get 'assets/moment.js'
|
11
|
-
assert_match(/VERSION = "2\.8\.
|
11
|
+
assert_match(/VERSION = "2\.8\.2"/, @response.body)
|
12
12
|
end
|
13
13
|
|
14
14
|
test 'can access momentjs translation' do
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//! moment.js
|
2
|
-
//! version : 2.8.
|
2
|
+
//! version : 2.8.2
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
4
4
|
//! license : MIT
|
5
5
|
//! momentjs.com
|
@@ -10,11 +10,12 @@
|
|
10
10
|
************************************/
|
11
11
|
|
12
12
|
var moment,
|
13
|
-
VERSION = '2.8.
|
13
|
+
VERSION = '2.8.2',
|
14
14
|
// the global-scope this is NOT the global object in Node.js
|
15
15
|
globalScope = typeof global !== 'undefined' ? global : this,
|
16
16
|
oldGlobalMoment,
|
17
17
|
round = Math.round,
|
18
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
18
19
|
i,
|
19
20
|
|
20
21
|
YEAR = 0,
|
@@ -88,7 +89,7 @@
|
|
88
89
|
['HH', /(T| )\d\d/]
|
89
90
|
],
|
90
91
|
|
91
|
-
// timezone chunker
|
92
|
+
// timezone chunker '+10:00' > ['10', '00'] or '-1530' > ['-15', '30']
|
92
93
|
parseTimezoneChunker = /([\+\-]|\d\d)/gi,
|
93
94
|
|
94
95
|
// getter and setter names
|
@@ -293,6 +294,10 @@
|
|
293
294
|
}
|
294
295
|
}
|
295
296
|
|
297
|
+
function hasOwnProp(a, b) {
|
298
|
+
return hasOwnProperty.call(a, b);
|
299
|
+
}
|
300
|
+
|
296
301
|
function defaultParsingFlags() {
|
297
302
|
// We need to deep clone this object, and es5 standard is not very
|
298
303
|
// helpful.
|
@@ -313,7 +318,7 @@
|
|
313
318
|
function printMsg(msg) {
|
314
319
|
if (moment.suppressDeprecationWarnings === false &&
|
315
320
|
typeof console !== 'undefined' && console.warn) {
|
316
|
-
console.warn(
|
321
|
+
console.warn('Deprecation warning: ' + msg);
|
317
322
|
}
|
318
323
|
}
|
319
324
|
|
@@ -416,16 +421,16 @@
|
|
416
421
|
|
417
422
|
function extend(a, b) {
|
418
423
|
for (var i in b) {
|
419
|
-
if (b
|
424
|
+
if (hasOwnProp(b, i)) {
|
420
425
|
a[i] = b[i];
|
421
426
|
}
|
422
427
|
}
|
423
428
|
|
424
|
-
if (b
|
429
|
+
if (hasOwnProp(b, 'toString')) {
|
425
430
|
a.toString = b.toString;
|
426
431
|
}
|
427
432
|
|
428
|
-
if (b
|
433
|
+
if (hasOwnProp(b, 'valueOf')) {
|
429
434
|
a.valueOf = b.valueOf;
|
430
435
|
}
|
431
436
|
|
@@ -533,7 +538,7 @@
|
|
533
538
|
var dur, tmp;
|
534
539
|
//invert the arguments, but complain about it
|
535
540
|
if (period !== null && !isNaN(+period)) {
|
536
|
-
deprecateSimple(name,
|
541
|
+
deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
|
537
542
|
tmp = val; val = period; period = tmp;
|
538
543
|
}
|
539
544
|
|
@@ -603,7 +608,7 @@
|
|
603
608
|
prop;
|
604
609
|
|
605
610
|
for (prop in inputObject) {
|
606
|
-
if (inputObject
|
611
|
+
if (hasOwnProp(inputObject, prop)) {
|
607
612
|
normalizedProp = normalizeUnits(prop);
|
608
613
|
if (normalizedProp) {
|
609
614
|
normalizedInput[normalizedProp] = inputObject[prop];
|
@@ -1523,7 +1528,7 @@
|
|
1523
1528
|
config._pf.iso = true;
|
1524
1529
|
for (i = 0, l = isoDates.length; i < l; i++) {
|
1525
1530
|
if (isoDates[i][1].exec(string)) {
|
1526
|
-
// match[5] should be
|
1531
|
+
// match[5] should be 'T' or undefined
|
1527
1532
|
config._f = isoDates[i][0] + (match[6] || ' ');
|
1528
1533
|
break;
|
1529
1534
|
}
|
@@ -1731,7 +1736,7 @@
|
|
1731
1736
|
moment = function (input, format, locale, strict) {
|
1732
1737
|
var c;
|
1733
1738
|
|
1734
|
-
if (typeof(locale) ===
|
1739
|
+
if (typeof(locale) === 'boolean') {
|
1735
1740
|
strict = locale;
|
1736
1741
|
locale = undefined;
|
1737
1742
|
}
|
@@ -1799,7 +1804,7 @@
|
|
1799
1804
|
moment.utc = function (input, format, locale, strict) {
|
1800
1805
|
var c;
|
1801
1806
|
|
1802
|
-
if (typeof(locale) ===
|
1807
|
+
if (typeof(locale) === 'boolean') {
|
1803
1808
|
strict = locale;
|
1804
1809
|
locale = undefined;
|
1805
1810
|
}
|
@@ -1886,7 +1891,7 @@
|
|
1886
1891
|
|
1887
1892
|
ret = new Duration(duration);
|
1888
1893
|
|
1889
|
-
if (moment.isDuration(input) && input
|
1894
|
+
if (moment.isDuration(input) && hasOwnProp(input, '_locale')) {
|
1890
1895
|
ret._locale = input._locale;
|
1891
1896
|
}
|
1892
1897
|
|
@@ -1923,7 +1928,7 @@
|
|
1923
1928
|
};
|
1924
1929
|
|
1925
1930
|
moment.lang = deprecate(
|
1926
|
-
|
1931
|
+
'moment.lang is deprecated. Use moment.locale instead.',
|
1927
1932
|
function (key, value) {
|
1928
1933
|
return moment.locale(key, value);
|
1929
1934
|
}
|
@@ -1935,7 +1940,7 @@
|
|
1935
1940
|
moment.locale = function (key, values) {
|
1936
1941
|
var data;
|
1937
1942
|
if (key) {
|
1938
|
-
if (typeof(values) !==
|
1943
|
+
if (typeof(values) !== 'undefined') {
|
1939
1944
|
data = moment.defineLocale(key, values);
|
1940
1945
|
}
|
1941
1946
|
else {
|
@@ -1970,7 +1975,7 @@
|
|
1970
1975
|
};
|
1971
1976
|
|
1972
1977
|
moment.langData = deprecate(
|
1973
|
-
|
1978
|
+
'moment.langData is deprecated. Use moment.localeData instead.',
|
1974
1979
|
function (key) {
|
1975
1980
|
return moment.localeData(key);
|
1976
1981
|
}
|
@@ -2003,7 +2008,7 @@
|
|
2003
2008
|
// compare moment object
|
2004
2009
|
moment.isMoment = function (obj) {
|
2005
2010
|
return obj instanceof Moment ||
|
2006
|
-
(obj != null &&
|
2011
|
+
(obj != null && hasOwnProp(obj, '_isAMomentObject'));
|
2007
2012
|
};
|
2008
2013
|
|
2009
2014
|
// for typechecking Duration objects
|
@@ -2059,7 +2064,7 @@
|
|
2059
2064
|
},
|
2060
2065
|
|
2061
2066
|
toString : function () {
|
2062
|
-
return this.clone().locale('en').format(
|
2067
|
+
return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
|
2063
2068
|
},
|
2064
2069
|
|
2065
2070
|
toDate : function () {
|
@@ -2442,7 +2447,7 @@
|
|
2442
2447
|
},
|
2443
2448
|
|
2444
2449
|
lang : deprecate(
|
2445
|
-
|
2450
|
+
'moment().lang() is deprecated. Use moment().localeData() instead.',
|
2446
2451
|
function (key) {
|
2447
2452
|
if (key === undefined) {
|
2448
2453
|
return this.localeData();
|
@@ -2674,8 +2679,8 @@
|
|
2674
2679
|
locale : moment.fn.locale,
|
2675
2680
|
|
2676
2681
|
toIsoString : deprecate(
|
2677
|
-
|
2678
|
-
|
2682
|
+
'toIsoString() is deprecated. Please use toISOString() instead ' +
|
2683
|
+
'(notice the capitals)',
|
2679
2684
|
function () {
|
2680
2685
|
return this.toISOString();
|
2681
2686
|
}
|
@@ -2712,6 +2717,8 @@
|
|
2712
2717
|
}
|
2713
2718
|
});
|
2714
2719
|
|
2720
|
+
moment.duration.fn.toString = moment.duration.fn.toISOString;
|
2721
|
+
|
2715
2722
|
function makeDurationGetter(name) {
|
2716
2723
|
moment.duration.fn[name] = function () {
|
2717
2724
|
return this._data[name];
|
@@ -2719,7 +2726,7 @@
|
|
2719
2726
|
}
|
2720
2727
|
|
2721
2728
|
for (i in unitMillisecondFactors) {
|
2722
|
-
if (unitMillisecondFactors
|
2729
|
+
if (hasOwnProp(unitMillisecondFactors, i)) {
|
2723
2730
|
makeDurationGetter(i.toLowerCase());
|
2724
2731
|
}
|
2725
2732
|
}
|
@@ -12,11 +12,11 @@
|
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
14
|
return moment.defineLocale('af', {
|
15
|
-
months :
|
16
|
-
monthsShort :
|
17
|
-
weekdays :
|
18
|
-
weekdaysShort :
|
19
|
-
weekdaysMin :
|
15
|
+
months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
|
16
|
+
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
|
17
|
+
weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
|
18
|
+
weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
|
19
|
+
weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
|
20
20
|
meridiem : function (hours, minutes, isLower) {
|
21
21
|
if (hours < 12) {
|
22
22
|
return isLower ? 'vm' : 'VM';
|
@@ -25,11 +25,11 @@
|
|
25
25
|
}
|
26
26
|
},
|
27
27
|
longDateFormat : {
|
28
|
-
LT :
|
29
|
-
L :
|
30
|
-
LL :
|
31
|
-
LLL :
|
32
|
-
LLLL :
|
28
|
+
LT : 'HH:mm',
|
29
|
+
L : 'DD/MM/YYYY',
|
30
|
+
LL : 'D MMMM YYYY',
|
31
|
+
LLL : 'D MMMM YYYY LT',
|
32
|
+
LLLL : 'dddd, D MMMM YYYY LT'
|
33
33
|
},
|
34
34
|
calendar : {
|
35
35
|
sameDay : '[Vandag om] LT',
|
@@ -40,19 +40,19 @@
|
|
40
40
|
sameElse : 'L'
|
41
41
|
},
|
42
42
|
relativeTime : {
|
43
|
-
future :
|
44
|
-
past :
|
45
|
-
s :
|
46
|
-
m :
|
47
|
-
mm :
|
48
|
-
h :
|
49
|
-
hh :
|
50
|
-
d :
|
51
|
-
dd :
|
52
|
-
M :
|
53
|
-
MM :
|
54
|
-
y :
|
55
|
-
yy :
|
43
|
+
future : 'oor %s',
|
44
|
+
past : '%s gelede',
|
45
|
+
s : '\'n paar sekondes',
|
46
|
+
m : '\'n minuut',
|
47
|
+
mm : '%d minute',
|
48
|
+
h : '\'n uur',
|
49
|
+
hh : '%d ure',
|
50
|
+
d : '\'n dag',
|
51
|
+
dd : '%d dae',
|
52
|
+
M : '\'n maand',
|
53
|
+
MM : '%d maande',
|
54
|
+
y : '\'n jaar',
|
55
|
+
yy : '%d jaar'
|
56
56
|
},
|
57
57
|
ordinal : function (number) {
|
58
58
|
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
|
@@ -13,20 +13,20 @@
|
|
13
13
|
}
|
14
14
|
}(function (moment) {
|
15
15
|
return moment.defineLocale('ar-ma', {
|
16
|
-
months :
|
17
|
-
monthsShort :
|
18
|
-
weekdays :
|
19
|
-
weekdaysShort :
|
20
|
-
weekdaysMin :
|
16
|
+
months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
17
|
+
monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
18
|
+
weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
19
|
+
weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
20
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
21
21
|
longDateFormat : {
|
22
|
-
LT :
|
23
|
-
L :
|
24
|
-
LL :
|
25
|
-
LLL :
|
26
|
-
LLLL :
|
22
|
+
LT : 'HH:mm',
|
23
|
+
L : 'DD/MM/YYYY',
|
24
|
+
LL : 'D MMMM YYYY',
|
25
|
+
LLL : 'D MMMM YYYY LT',
|
26
|
+
LLLL : 'dddd D MMMM YYYY LT'
|
27
27
|
},
|
28
28
|
calendar : {
|
29
|
-
sameDay:
|
29
|
+
sameDay: '[اليوم على الساعة] LT',
|
30
30
|
nextDay: '[غدا على الساعة] LT',
|
31
31
|
nextWeek: 'dddd [على الساعة] LT',
|
32
32
|
lastDay: '[أمس على الساعة] LT',
|
@@ -34,19 +34,19 @@
|
|
34
34
|
sameElse: 'L'
|
35
35
|
},
|
36
36
|
relativeTime : {
|
37
|
-
future :
|
38
|
-
past :
|
39
|
-
s :
|
40
|
-
m :
|
41
|
-
mm :
|
42
|
-
h :
|
43
|
-
hh :
|
44
|
-
d :
|
45
|
-
dd :
|
46
|
-
M :
|
47
|
-
MM :
|
48
|
-
y :
|
49
|
-
yy :
|
37
|
+
future : 'في %s',
|
38
|
+
past : 'منذ %s',
|
39
|
+
s : 'ثوان',
|
40
|
+
m : 'دقيقة',
|
41
|
+
mm : '%d دقائق',
|
42
|
+
h : 'ساعة',
|
43
|
+
hh : '%d ساعات',
|
44
|
+
d : 'يوم',
|
45
|
+
dd : '%d أيام',
|
46
|
+
M : 'شهر',
|
47
|
+
MM : '%d أشهر',
|
48
|
+
y : 'سنة',
|
49
|
+
yy : '%d سنوات'
|
50
50
|
},
|
51
51
|
week : {
|
52
52
|
dow : 6, // Saturday is the first day of the week.
|
@@ -36,27 +36,27 @@
|
|
36
36
|
};
|
37
37
|
|
38
38
|
return moment.defineLocale('ar-sa', {
|
39
|
-
months :
|
40
|
-
monthsShort :
|
41
|
-
weekdays :
|
42
|
-
weekdaysShort :
|
43
|
-
weekdaysMin :
|
39
|
+
months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
40
|
+
monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
41
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
42
|
+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
43
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
44
44
|
longDateFormat : {
|
45
|
-
LT :
|
46
|
-
L :
|
47
|
-
LL :
|
48
|
-
LLL :
|
49
|
-
LLLL :
|
45
|
+
LT : 'HH:mm',
|
46
|
+
L : 'DD/MM/YYYY',
|
47
|
+
LL : 'D MMMM YYYY',
|
48
|
+
LLL : 'D MMMM YYYY LT',
|
49
|
+
LLLL : 'dddd D MMMM YYYY LT'
|
50
50
|
},
|
51
51
|
meridiem : function (hour, minute, isLower) {
|
52
52
|
if (hour < 12) {
|
53
|
-
return
|
53
|
+
return 'ص';
|
54
54
|
} else {
|
55
|
-
return
|
55
|
+
return 'م';
|
56
56
|
}
|
57
57
|
},
|
58
58
|
calendar : {
|
59
|
-
sameDay:
|
59
|
+
sameDay: '[اليوم على الساعة] LT',
|
60
60
|
nextDay: '[غدا على الساعة] LT',
|
61
61
|
nextWeek: 'dddd [على الساعة] LT',
|
62
62
|
lastDay: '[أمس على الساعة] LT',
|
@@ -64,19 +64,19 @@
|
|
64
64
|
sameElse: 'L'
|
65
65
|
},
|
66
66
|
relativeTime : {
|
67
|
-
future :
|
68
|
-
past :
|
69
|
-
s :
|
70
|
-
m :
|
71
|
-
mm :
|
72
|
-
h :
|
73
|
-
hh :
|
74
|
-
d :
|
75
|
-
dd :
|
76
|
-
M :
|
77
|
-
MM :
|
78
|
-
y :
|
79
|
-
yy :
|
67
|
+
future : 'في %s',
|
68
|
+
past : 'منذ %s',
|
69
|
+
s : 'ثوان',
|
70
|
+
m : 'دقيقة',
|
71
|
+
mm : '%d دقائق',
|
72
|
+
h : 'ساعة',
|
73
|
+
hh : '%d ساعات',
|
74
|
+
d : 'يوم',
|
75
|
+
dd : '%d أيام',
|
76
|
+
M : 'شهر',
|
77
|
+
MM : '%d أشهر',
|
78
|
+
y : 'سنة',
|
79
|
+
yy : '%d سنوات'
|
80
80
|
},
|
81
81
|
preparse: function (string) {
|
82
82
|
return string.replace(/[۰-۹]/g, function (match) {
|
@@ -37,27 +37,27 @@
|
|
37
37
|
};
|
38
38
|
|
39
39
|
return moment.defineLocale('ar', {
|
40
|
-
months :
|
41
|
-
monthsShort :
|
42
|
-
weekdays :
|
43
|
-
weekdaysShort :
|
44
|
-
weekdaysMin :
|
40
|
+
months : 'يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول'.split('_'),
|
41
|
+
monthsShort : 'يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول'.split('_'),
|
42
|
+
weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
43
|
+
weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
44
|
+
weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
45
45
|
longDateFormat : {
|
46
|
-
LT :
|
47
|
-
L :
|
48
|
-
LL :
|
49
|
-
LLL :
|
50
|
-
LLLL :
|
46
|
+
LT : 'HH:mm',
|
47
|
+
L : 'DD/MM/YYYY',
|
48
|
+
LL : 'D MMMM YYYY',
|
49
|
+
LLL : 'D MMMM YYYY LT',
|
50
|
+
LLLL : 'dddd D MMMM YYYY LT'
|
51
51
|
},
|
52
52
|
meridiem : function (hour, minute, isLower) {
|
53
53
|
if (hour < 12) {
|
54
|
-
return
|
54
|
+
return 'ص';
|
55
55
|
} else {
|
56
|
-
return
|
56
|
+
return 'م';
|
57
57
|
}
|
58
58
|
},
|
59
59
|
calendar : {
|
60
|
-
sameDay:
|
60
|
+
sameDay: '[اليوم على الساعة] LT',
|
61
61
|
nextDay: '[غدا على الساعة] LT',
|
62
62
|
nextWeek: 'dddd [على الساعة] LT',
|
63
63
|
lastDay: '[أمس على الساعة] LT',
|
@@ -65,19 +65,19 @@
|
|
65
65
|
sameElse: 'L'
|
66
66
|
},
|
67
67
|
relativeTime : {
|
68
|
-
future :
|
69
|
-
past :
|
70
|
-
s :
|
71
|
-
m :
|
72
|
-
mm :
|
73
|
-
h :
|
74
|
-
hh :
|
75
|
-
d :
|
76
|
-
dd :
|
77
|
-
M :
|
78
|
-
MM :
|
79
|
-
y :
|
80
|
-
yy :
|
68
|
+
future : 'في %s',
|
69
|
+
past : 'منذ %s',
|
70
|
+
s : 'ثوان',
|
71
|
+
m : 'دقيقة',
|
72
|
+
mm : '%d دقائق',
|
73
|
+
h : 'ساعة',
|
74
|
+
hh : '%d ساعات',
|
75
|
+
d : 'يوم',
|
76
|
+
dd : '%d أيام',
|
77
|
+
M : 'شهر',
|
78
|
+
MM : '%d أشهر',
|
79
|
+
y : 'سنة',
|
80
|
+
yy : '%d سنوات'
|
81
81
|
},
|
82
82
|
preparse: function (string) {
|
83
83
|
return string.replace(/[۰-۹]/g, function (match) {
|