momentjs-rails 2.15.1 → 2.17.1
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 +3653 -3586
- data/vendor/assets/javascripts/moment/af.js +59 -59
- data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
- data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
- data/vendor/assets/javascripts/moment/ar.js +125 -120
- data/vendor/assets/javascripts/moment/az.js +90 -90
- data/vendor/assets/javascripts/moment/be.js +112 -112
- data/vendor/assets/javascripts/moment/bg.js +74 -74
- data/vendor/assets/javascripts/moment/bn.js +104 -104
- data/vendor/assets/javascripts/moment/bo.js +104 -104
- data/vendor/assets/javascripts/moment/br.js +89 -89
- data/vendor/assets/javascripts/moment/bs.js +125 -125
- data/vendor/assets/javascripts/moment/ca.js +63 -63
- data/vendor/assets/javascripts/moment/cs.js +154 -154
- data/vendor/assets/javascripts/moment/cv.js +49 -49
- data/vendor/assets/javascripts/moment/cy.js +65 -65
- data/vendor/assets/javascripts/moment/da.js +47 -47
- data/vendor/assets/javascripts/moment/de-at.js +62 -62
- data/vendor/assets/javascripts/moment/de.js +62 -62
- data/vendor/assets/javascripts/moment/dv.js +84 -83
- data/vendor/assets/javascripts/moment/el.js +81 -81
- data/vendor/assets/javascripts/moment/en-au.js +54 -54
- data/vendor/assets/javascripts/moment/en-ca.js +50 -50
- data/vendor/assets/javascripts/moment/en-gb.js +54 -54
- data/vendor/assets/javascripts/moment/en-ie.js +54 -54
- data/vendor/assets/javascripts/moment/en-nz.js +54 -54
- data/vendor/assets/javascripts/moment/eo.js +57 -57
- data/vendor/assets/javascripts/moment/es-do.js +63 -63
- data/vendor/assets/javascripts/moment/es.js +63 -63
- data/vendor/assets/javascripts/moment/et.js +64 -64
- data/vendor/assets/javascripts/moment/eu.js +53 -53
- data/vendor/assets/javascripts/moment/fa.js +92 -91
- data/vendor/assets/javascripts/moment/fi.js +92 -92
- data/vendor/assets/javascripts/moment/fo.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
- data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
- data/vendor/assets/javascripts/moment/fr.js +51 -51
- data/vendor/assets/javascripts/moment/fy.js +58 -58
- data/vendor/assets/javascripts/moment/gd.js +58 -58
- data/vendor/assets/javascripts/moment/gl.js +61 -61
- data/vendor/assets/javascripts/moment/he.js +78 -78
- data/vendor/assets/javascripts/moment/hi.js +109 -109
- data/vendor/assets/javascripts/moment/hr.js +128 -128
- data/vendor/assets/javascripts/moment/hu.js +92 -92
- data/vendor/assets/javascripts/moment/hy-am.js +79 -79
- data/vendor/assets/javascripts/moment/id.js +68 -68
- data/vendor/assets/javascripts/moment/is.js +106 -106
- data/vendor/assets/javascripts/moment/it.js +54 -54
- data/vendor/assets/javascripts/moment/ja.js +62 -62
- data/vendor/assets/javascripts/moment/jv.js +69 -69
- data/vendor/assets/javascripts/moment/ka.js +71 -71
- data/vendor/assets/javascripts/moment/kk.js +73 -73
- data/vendor/assets/javascripts/moment/km.js +45 -45
- data/vendor/assets/javascripts/moment/ko.js +51 -51
- data/vendor/assets/javascripts/moment/ky.js +73 -73
- data/vendor/assets/javascripts/moment/lb.js +114 -114
- data/vendor/assets/javascripts/moment/lo.js +56 -56
- data/vendor/assets/javascripts/moment/lt.js +100 -100
- data/vendor/assets/javascripts/moment/lv.js +81 -81
- data/vendor/assets/javascripts/moment/me.js +93 -93
- data/vendor/assets/javascripts/moment/mi.js +51 -51
- data/vendor/assets/javascripts/moment/mk.js +74 -74
- data/vendor/assets/javascripts/moment/ml.js +67 -67
- data/vendor/assets/javascripts/moment/mr.js +139 -139
- data/vendor/assets/javascripts/moment/ms-my.js +68 -68
- data/vendor/assets/javascripts/moment/ms.js +68 -68
- data/vendor/assets/javascripts/moment/my.js +79 -78
- data/vendor/assets/javascripts/moment/nb.js +49 -49
- data/vendor/assets/javascripts/moment/ne.js +108 -108
- data/vendor/assets/javascripts/moment/nl-be.js +86 -0
- data/vendor/assets/javascripts/moment/nl.js +67 -67
- data/vendor/assets/javascripts/moment/nn.js +47 -47
- data/vendor/assets/javascripts/moment/pa-in.js +109 -109
- data/vendor/assets/javascripts/moment/pl.js +88 -88
- data/vendor/assets/javascripts/moment/pt-br.js +47 -47
- data/vendor/assets/javascripts/moment/pt.js +51 -51
- data/vendor/assets/javascripts/moment/ro.js +59 -59
- data/vendor/assets/javascripts/moment/ru.js +153 -153
- data/vendor/assets/javascripts/moment/se.js +47 -47
- data/vendor/assets/javascripts/moment/si.js +57 -57
- data/vendor/assets/javascripts/moment/sk.js +132 -132
- data/vendor/assets/javascripts/moment/sl.js +144 -144
- data/vendor/assets/javascripts/moment/sq.js +55 -55
- data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
- data/vendor/assets/javascripts/moment/sr.js +93 -93
- data/vendor/assets/javascripts/moment/ss.js +73 -73
- data/vendor/assets/javascripts/moment/sv.js +56 -56
- data/vendor/assets/javascripts/moment/sw.js +46 -46
- data/vendor/assets/javascripts/moment/ta.js +115 -114
- data/vendor/assets/javascripts/moment/te.js +75 -75
- data/vendor/assets/javascripts/moment/tet.js +68 -0
- data/vendor/assets/javascripts/moment/th.js +53 -53
- data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
- data/vendor/assets/javascripts/moment/tlh.js +100 -100
- data/vendor/assets/javascripts/moment/tr.js +74 -74
- data/vendor/assets/javascripts/moment/tzl.js +75 -75
- data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
- data/vendor/assets/javascripts/moment/tzm.js +45 -45
- data/vendor/assets/javascripts/moment/uk.js +125 -125
- data/vendor/assets/javascripts/moment/uz.js +45 -45
- data/vendor/assets/javascripts/moment/vi.js +65 -65
- data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
- data/vendor/assets/javascripts/moment/yo.js +60 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
- data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
- data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
- metadata +6 -2
@@ -7,70 +7,70 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
var months = [
|
14
|
+
'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
|
15
|
+
];
|
16
16
|
|
17
|
-
|
17
|
+
var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
|
18
18
|
|
19
|
-
|
19
|
+
var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
|
20
20
|
|
21
|
-
|
21
|
+
var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
|
22
22
|
|
23
|
-
|
23
|
+
var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
25
|
+
var gd = moment.defineLocale('gd', {
|
26
|
+
months : months,
|
27
|
+
monthsShort : monthsShort,
|
28
|
+
monthsParseExact : true,
|
29
|
+
weekdays : weekdays,
|
30
|
+
weekdaysShort : weekdaysShort,
|
31
|
+
weekdaysMin : weekdaysMin,
|
32
|
+
longDateFormat : {
|
33
|
+
LT : 'HH:mm',
|
34
|
+
LTS : 'HH:mm:ss',
|
35
|
+
L : 'DD/MM/YYYY',
|
36
|
+
LL : 'D MMMM YYYY',
|
37
|
+
LLL : 'D MMMM YYYY HH:mm',
|
38
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
39
|
+
},
|
40
|
+
calendar : {
|
41
|
+
sameDay : '[An-diugh aig] LT',
|
42
|
+
nextDay : '[A-màireach aig] LT',
|
43
|
+
nextWeek : 'dddd [aig] LT',
|
44
|
+
lastDay : '[An-dè aig] LT',
|
45
|
+
lastWeek : 'dddd [seo chaidh] [aig] LT',
|
46
|
+
sameElse : 'L'
|
47
|
+
},
|
48
|
+
relativeTime : {
|
49
|
+
future : 'ann an %s',
|
50
|
+
past : 'bho chionn %s',
|
51
|
+
s : 'beagan diogan',
|
52
|
+
m : 'mionaid',
|
53
|
+
mm : '%d mionaidean',
|
54
|
+
h : 'uair',
|
55
|
+
hh : '%d uairean',
|
56
|
+
d : 'latha',
|
57
|
+
dd : '%d latha',
|
58
|
+
M : 'mìos',
|
59
|
+
MM : '%d mìosan',
|
60
|
+
y : 'bliadhna',
|
61
|
+
yy : '%d bliadhna'
|
62
|
+
},
|
63
|
+
ordinalParse : /\d{1,2}(d|na|mh)/,
|
64
|
+
ordinal : function (number) {
|
65
|
+
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
|
66
|
+
return number + output;
|
67
|
+
},
|
68
|
+
week : {
|
69
|
+
dow : 1, // Monday is the first day of the week.
|
70
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
71
|
+
}
|
72
|
+
});
|
73
73
|
|
74
|
-
|
74
|
+
return gd;
|
75
75
|
|
76
|
-
}));
|
76
|
+
})));
|
@@ -7,71 +7,71 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
13
|
+
var gl = moment.defineLocale('gl', {
|
14
|
+
months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
|
15
|
+
monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
|
16
|
+
monthsParseExact: true,
|
17
|
+
weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
18
|
+
weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
19
|
+
weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
20
|
+
weekdaysParseExact : true,
|
21
|
+
longDateFormat : {
|
22
|
+
LT : 'H:mm',
|
23
|
+
LTS : 'H:mm:ss',
|
24
|
+
L : 'DD/MM/YYYY',
|
25
|
+
LL : 'D [de] MMMM [de] YYYY',
|
26
|
+
LLL : 'D [de] MMMM [de] YYYY H:mm',
|
27
|
+
LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
|
28
|
+
},
|
29
|
+
calendar : {
|
30
|
+
sameDay : function () {
|
31
|
+
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
28
32
|
},
|
29
|
-
|
30
|
-
|
31
|
-
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
32
|
-
},
|
33
|
-
nextDay : function () {
|
34
|
-
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
35
|
-
},
|
36
|
-
nextWeek : function () {
|
37
|
-
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
38
|
-
},
|
39
|
-
lastDay : function () {
|
40
|
-
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
|
41
|
-
},
|
42
|
-
lastWeek : function () {
|
43
|
-
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
44
|
-
},
|
45
|
-
sameElse : 'L'
|
33
|
+
nextDay : function () {
|
34
|
+
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
46
35
|
},
|
47
|
-
|
48
|
-
|
49
|
-
if (str.indexOf('un') === 0) {
|
50
|
-
return 'n' + str;
|
51
|
-
}
|
52
|
-
return 'en ' + str;
|
53
|
-
},
|
54
|
-
past : 'hai %s',
|
55
|
-
s : 'uns segundos',
|
56
|
-
m : 'un minuto',
|
57
|
-
mm : '%d minutos',
|
58
|
-
h : 'unha hora',
|
59
|
-
hh : '%d horas',
|
60
|
-
d : 'un día',
|
61
|
-
dd : '%d días',
|
62
|
-
M : 'un mes',
|
63
|
-
MM : '%d meses',
|
64
|
-
y : 'un ano',
|
65
|
-
yy : '%d anos'
|
36
|
+
nextWeek : function () {
|
37
|
+
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
66
38
|
},
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
}
|
73
|
-
|
39
|
+
lastDay : function () {
|
40
|
+
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
|
41
|
+
},
|
42
|
+
lastWeek : function () {
|
43
|
+
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
44
|
+
},
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : function (str) {
|
49
|
+
if (str.indexOf('un') === 0) {
|
50
|
+
return 'n' + str;
|
51
|
+
}
|
52
|
+
return 'en ' + str;
|
53
|
+
},
|
54
|
+
past : 'hai %s',
|
55
|
+
s : 'uns segundos',
|
56
|
+
m : 'un minuto',
|
57
|
+
mm : '%d minutos',
|
58
|
+
h : 'unha hora',
|
59
|
+
hh : '%d horas',
|
60
|
+
d : 'un día',
|
61
|
+
dd : '%d días',
|
62
|
+
M : 'un mes',
|
63
|
+
MM : '%d meses',
|
64
|
+
y : 'un ano',
|
65
|
+
yy : '%d anos'
|
66
|
+
},
|
67
|
+
ordinalParse : /\d{1,2}º/,
|
68
|
+
ordinal : '%dº',
|
69
|
+
week : {
|
70
|
+
dow : 1, // Monday is the first day of the week.
|
71
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
72
|
+
}
|
73
|
+
});
|
74
74
|
|
75
|
-
|
75
|
+
return gl;
|
76
76
|
|
77
|
-
}));
|
77
|
+
})));
|
@@ -9,91 +9,91 @@
|
|
9
9
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
10
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
11
|
factory(global.moment)
|
12
|
-
}(this, function (moment) { 'use strict';
|
12
|
+
}(this, (function (moment) { 'use strict';
|
13
13
|
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
15
|
+
var he = moment.defineLocale('he', {
|
16
|
+
months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
|
17
|
+
monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
|
18
|
+
weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
|
19
|
+
weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
|
20
|
+
weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
|
21
|
+
longDateFormat : {
|
22
|
+
LT : 'HH:mm',
|
23
|
+
LTS : 'HH:mm:ss',
|
24
|
+
L : 'DD/MM/YYYY',
|
25
|
+
LL : 'D [ב]MMMM YYYY',
|
26
|
+
LLL : 'D [ב]MMMM YYYY HH:mm',
|
27
|
+
LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
|
28
|
+
l : 'D/M/YYYY',
|
29
|
+
ll : 'D MMM YYYY',
|
30
|
+
lll : 'D MMM YYYY HH:mm',
|
31
|
+
llll : 'ddd, D MMM YYYY HH:mm'
|
32
|
+
},
|
33
|
+
calendar : {
|
34
|
+
sameDay : '[היום ב־]LT',
|
35
|
+
nextDay : '[מחר ב־]LT',
|
36
|
+
nextWeek : 'dddd [בשעה] LT',
|
37
|
+
lastDay : '[אתמול ב־]LT',
|
38
|
+
lastWeek : '[ביום] dddd [האחרון בשעה] LT',
|
39
|
+
sameElse : 'L'
|
40
|
+
},
|
41
|
+
relativeTime : {
|
42
|
+
future : 'בעוד %s',
|
43
|
+
past : 'לפני %s',
|
44
|
+
s : 'מספר שניות',
|
45
|
+
m : 'דקה',
|
46
|
+
mm : '%d דקות',
|
47
|
+
h : 'שעה',
|
48
|
+
hh : function (number) {
|
49
|
+
if (number === 2) {
|
50
|
+
return 'שעתיים';
|
51
|
+
}
|
52
|
+
return number + ' שעות';
|
40
53
|
},
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
m : 'דקה',
|
46
|
-
mm : '%d דקות',
|
47
|
-
h : 'שעה',
|
48
|
-
hh : function (number) {
|
49
|
-
if (number === 2) {
|
50
|
-
return 'שעתיים';
|
51
|
-
}
|
52
|
-
return number + ' שעות';
|
53
|
-
},
|
54
|
-
d : 'יום',
|
55
|
-
dd : function (number) {
|
56
|
-
if (number === 2) {
|
57
|
-
return 'יומיים';
|
58
|
-
}
|
59
|
-
return number + ' ימים';
|
60
|
-
},
|
61
|
-
M : 'חודש',
|
62
|
-
MM : function (number) {
|
63
|
-
if (number === 2) {
|
64
|
-
return 'חודשיים';
|
65
|
-
}
|
66
|
-
return number + ' חודשים';
|
67
|
-
},
|
68
|
-
y : 'שנה',
|
69
|
-
yy : function (number) {
|
70
|
-
if (number === 2) {
|
71
|
-
return 'שנתיים';
|
72
|
-
} else if (number % 10 === 0 && number !== 10) {
|
73
|
-
return number + ' שנה';
|
74
|
-
}
|
75
|
-
return number + ' שנים';
|
54
|
+
d : 'יום',
|
55
|
+
dd : function (number) {
|
56
|
+
if (number === 2) {
|
57
|
+
return 'יומיים';
|
76
58
|
}
|
59
|
+
return number + ' ימים';
|
77
60
|
},
|
78
|
-
|
79
|
-
|
80
|
-
|
61
|
+
M : 'חודש',
|
62
|
+
MM : function (number) {
|
63
|
+
if (number === 2) {
|
64
|
+
return 'חודשיים';
|
65
|
+
}
|
66
|
+
return number + ' חודשים';
|
81
67
|
},
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
return isLower ? 'לפנה"צ' : 'לפני הצהריים';
|
89
|
-
} else if (hour < 18) {
|
90
|
-
return isLower ? 'אחה"צ' : 'אחרי הצהריים';
|
91
|
-
} else {
|
92
|
-
return 'בערב';
|
68
|
+
y : 'שנה',
|
69
|
+
yy : function (number) {
|
70
|
+
if (number === 2) {
|
71
|
+
return 'שנתיים';
|
72
|
+
} else if (number % 10 === 0 && number !== 10) {
|
73
|
+
return number + ' שנה';
|
93
74
|
}
|
75
|
+
return number + ' שנים';
|
76
|
+
}
|
77
|
+
},
|
78
|
+
meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
|
79
|
+
isPM : function (input) {
|
80
|
+
return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
|
81
|
+
},
|
82
|
+
meridiem : function (hour, minute, isLower) {
|
83
|
+
if (hour < 5) {
|
84
|
+
return 'לפנות בוקר';
|
85
|
+
} else if (hour < 10) {
|
86
|
+
return 'בבוקר';
|
87
|
+
} else if (hour < 12) {
|
88
|
+
return isLower ? 'לפנה"צ' : 'לפני הצהריים';
|
89
|
+
} else if (hour < 18) {
|
90
|
+
return isLower ? 'אחה"צ' : 'אחרי הצהריים';
|
91
|
+
} else {
|
92
|
+
return 'בערב';
|
94
93
|
}
|
95
|
-
}
|
94
|
+
}
|
95
|
+
});
|
96
96
|
|
97
|
-
|
97
|
+
return he;
|
98
98
|
|
99
|
-
}));
|
99
|
+
})));
|
@@ -7,118 +7,118 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
13
|
+
var symbolMap = {
|
14
|
+
'1': '१',
|
15
|
+
'2': '२',
|
16
|
+
'3': '३',
|
17
|
+
'4': '४',
|
18
|
+
'5': '५',
|
19
|
+
'6': '६',
|
20
|
+
'7': '७',
|
21
|
+
'8': '८',
|
22
|
+
'9': '९',
|
23
|
+
'0': '०'
|
24
|
+
};
|
25
|
+
var numberMap = {
|
26
|
+
'१': '1',
|
27
|
+
'२': '2',
|
28
|
+
'३': '3',
|
29
|
+
'४': '4',
|
30
|
+
'५': '5',
|
31
|
+
'६': '6',
|
32
|
+
'७': '7',
|
33
|
+
'८': '8',
|
34
|
+
'९': '9',
|
35
|
+
'०': '0'
|
36
|
+
};
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
}
|
102
|
-
},
|
103
|
-
meridiem : function (hour, minute, isLower) {
|
104
|
-
if (hour < 4) {
|
105
|
-
return 'रात';
|
106
|
-
} else if (hour < 10) {
|
107
|
-
return 'सुबह';
|
108
|
-
} else if (hour < 17) {
|
109
|
-
return 'दोपहर';
|
110
|
-
} else if (hour < 20) {
|
111
|
-
return 'शाम';
|
112
|
-
} else {
|
113
|
-
return 'रात';
|
114
|
-
}
|
115
|
-
},
|
116
|
-
week : {
|
117
|
-
dow : 0, // Sunday is the first day of the week.
|
118
|
-
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
38
|
+
var hi = moment.defineLocale('hi', {
|
39
|
+
months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
|
40
|
+
monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
|
41
|
+
monthsParseExact: true,
|
42
|
+
weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
|
43
|
+
weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
|
44
|
+
weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : 'A h:mm बजे',
|
47
|
+
LTS : 'A h:mm:ss बजे',
|
48
|
+
L : 'DD/MM/YYYY',
|
49
|
+
LL : 'D MMMM YYYY',
|
50
|
+
LLL : 'D MMMM YYYY, A h:mm बजे',
|
51
|
+
LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
|
52
|
+
},
|
53
|
+
calendar : {
|
54
|
+
sameDay : '[आज] LT',
|
55
|
+
nextDay : '[कल] LT',
|
56
|
+
nextWeek : 'dddd, LT',
|
57
|
+
lastDay : '[कल] LT',
|
58
|
+
lastWeek : '[पिछले] dddd, LT',
|
59
|
+
sameElse : 'L'
|
60
|
+
},
|
61
|
+
relativeTime : {
|
62
|
+
future : '%s में',
|
63
|
+
past : '%s पहले',
|
64
|
+
s : 'कुछ ही क्षण',
|
65
|
+
m : 'एक मिनट',
|
66
|
+
mm : '%d मिनट',
|
67
|
+
h : 'एक घंटा',
|
68
|
+
hh : '%d घंटे',
|
69
|
+
d : 'एक दिन',
|
70
|
+
dd : '%d दिन',
|
71
|
+
M : 'एक महीने',
|
72
|
+
MM : '%d महीने',
|
73
|
+
y : 'एक वर्ष',
|
74
|
+
yy : '%d वर्ष'
|
75
|
+
},
|
76
|
+
preparse: function (string) {
|
77
|
+
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
78
|
+
return numberMap[match];
|
79
|
+
});
|
80
|
+
},
|
81
|
+
postformat: function (string) {
|
82
|
+
return string.replace(/\d/g, function (match) {
|
83
|
+
return symbolMap[match];
|
84
|
+
});
|
85
|
+
},
|
86
|
+
// Hindi notation for meridiems are quite fuzzy in practice. While there exists
|
87
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
|
88
|
+
meridiemParse: /रात|सुबह|दोपहर|शाम/,
|
89
|
+
meridiemHour : function (hour, meridiem) {
|
90
|
+
if (hour === 12) {
|
91
|
+
hour = 0;
|
92
|
+
}
|
93
|
+
if (meridiem === 'रात') {
|
94
|
+
return hour < 4 ? hour : hour + 12;
|
95
|
+
} else if (meridiem === 'सुबह') {
|
96
|
+
return hour;
|
97
|
+
} else if (meridiem === 'दोपहर') {
|
98
|
+
return hour >= 10 ? hour : hour + 12;
|
99
|
+
} else if (meridiem === 'शाम') {
|
100
|
+
return hour + 12;
|
119
101
|
}
|
120
|
-
}
|
102
|
+
},
|
103
|
+
meridiem : function (hour, minute, isLower) {
|
104
|
+
if (hour < 4) {
|
105
|
+
return 'रात';
|
106
|
+
} else if (hour < 10) {
|
107
|
+
return 'सुबह';
|
108
|
+
} else if (hour < 17) {
|
109
|
+
return 'दोपहर';
|
110
|
+
} else if (hour < 20) {
|
111
|
+
return 'शाम';
|
112
|
+
} else {
|
113
|
+
return 'रात';
|
114
|
+
}
|
115
|
+
},
|
116
|
+
week : {
|
117
|
+
dow : 0, // Sunday is the first day of the week.
|
118
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
119
|
+
}
|
120
|
+
});
|
121
121
|
|
122
|
-
|
122
|
+
return hi;
|
123
123
|
|
124
|
-
}));
|
124
|
+
})));
|