momentjs-rails 2.9.0 → 2.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +1 -1
- data/README.md +13 -11
- data/news.md +24 -7
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
- data/test/integration/navigation_test.rb +1 -2
- data/vendor/assets/javascripts/moment/af.js +72 -69
- data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
- data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
- data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
- data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
- data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
- data/vendor/assets/javascripts/moment/ar.js +140 -131
- data/vendor/assets/javascripts/moment/az.js +100 -101
- data/vendor/assets/javascripts/moment/be.js +106 -125
- data/vendor/assets/javascripts/moment/bg.js +78 -75
- data/vendor/assets/javascripts/moment/bm.js +60 -0
- data/vendor/assets/javascripts/moment/bn.js +117 -108
- data/vendor/assets/javascripts/moment/bo.js +117 -105
- data/vendor/assets/javascripts/moment/br.js +92 -92
- data/vendor/assets/javascripts/moment/bs.js +81 -68
- data/vendor/assets/javascripts/moment/ca.js +83 -71
- data/vendor/assets/javascripts/moment/cs.js +102 -79
- data/vendor/assets/javascripts/moment/cv.js +62 -59
- data/vendor/assets/javascripts/moment/cy.js +78 -75
- data/vendor/assets/javascripts/moment/da.js +59 -56
- data/vendor/assets/javascripts/moment/de-at.js +77 -71
- data/vendor/assets/javascripts/moment/de-ch.js +79 -0
- data/vendor/assets/javascripts/moment/de.js +76 -70
- data/vendor/assets/javascripts/moment/dv.js +101 -0
- data/vendor/assets/javascripts/moment/el.js +96 -89
- data/vendor/assets/javascripts/moment/en-au.js +66 -62
- data/vendor/assets/javascripts/moment/en-ca.js +62 -59
- data/vendor/assets/javascripts/moment/en-gb.js +66 -63
- data/vendor/assets/javascripts/moment/en-ie.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +72 -69
- data/vendor/assets/javascripts/moment/es-do.js +92 -0
- data/vendor/assets/javascripts/moment/es-us.js +84 -0
- data/vendor/assets/javascripts/moment/es.js +87 -71
- data/vendor/assets/javascripts/moment/et.js +78 -74
- data/vendor/assets/javascripts/moment/eu.js +65 -60
- data/vendor/assets/javascripts/moment/fa.js +105 -100
- data/vendor/assets/javascripts/moment/fi.js +77 -74
- data/vendor/assets/javascripts/moment/fo.js +59 -56
- data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
- data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
- data/vendor/assets/javascripts/moment/fr.js +82 -58
- data/vendor/assets/javascripts/moment/fy.js +73 -66
- data/vendor/assets/javascripts/moment/gd.js +77 -0
- data/vendor/assets/javascripts/moment/gl.js +74 -69
- data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
- data/vendor/assets/javascripts/moment/gu.js +125 -0
- data/vendor/assets/javascripts/moment/he.js +95 -75
- data/vendor/assets/javascripts/moment/hi.js +122 -118
- data/vendor/assets/javascripts/moment/hr.js +82 -68
- data/vendor/assets/javascripts/moment/hu.js +82 -82
- data/vendor/assets/javascripts/moment/hy-am.js +80 -102
- data/vendor/assets/javascripts/moment/id.js +82 -79
- data/vendor/assets/javascripts/moment/is.js +75 -68
- data/vendor/assets/javascripts/moment/it.js +68 -65
- data/vendor/assets/javascripts/moment/ja.js +79 -61
- data/vendor/assets/javascripts/moment/jv.js +84 -0
- data/vendor/assets/javascripts/moment/ka.js +82 -101
- data/vendor/assets/javascripts/moment/kk.js +88 -0
- data/vendor/assets/javascripts/moment/km.js +57 -54
- data/vendor/assets/javascripts/moment/kn.js +127 -0
- data/vendor/assets/javascripts/moment/ko.js +82 -64
- data/vendor/assets/javascripts/moment/ky.js +89 -0
- data/vendor/assets/javascripts/moment/lb.js +126 -127
- data/vendor/assets/javascripts/moment/lo.js +71 -0
- data/vendor/assets/javascripts/moment/lt.js +110 -111
- data/vendor/assets/javascripts/moment/lv.js +92 -72
- data/vendor/assets/javascripts/moment/me.js +113 -0
- data/vendor/assets/javascripts/moment/mi.js +65 -0
- data/vendor/assets/javascripts/moment/mk.js +80 -77
- data/vendor/assets/javascripts/moment/ml.js +80 -67
- data/vendor/assets/javascripts/moment/mr.js +158 -116
- data/vendor/assets/javascripts/moment/ms-my.js +82 -78
- data/vendor/assets/javascripts/moment/ms.js +83 -0
- data/vendor/assets/javascripts/moment/mt.js +61 -0
- data/vendor/assets/javascripts/moment/my.js +95 -87
- data/vendor/assets/javascripts/moment/nb.js +62 -57
- data/vendor/assets/javascripts/moment/ne.js +121 -118
- data/vendor/assets/javascripts/moment/nl-be.js +89 -0
- data/vendor/assets/javascripts/moment/nl.js +86 -66
- data/vendor/assets/javascripts/moment/nn.js +59 -56
- data/vendor/assets/javascripts/moment/pa-in.js +125 -0
- data/vendor/assets/javascripts/moment/pl.js +99 -72
- data/vendor/assets/javascripts/moment/pt-br.js +60 -56
- data/vendor/assets/javascripts/moment/pt.js +64 -60
- data/vendor/assets/javascripts/moment/ro.js +72 -68
- data/vendor/assets/javascripts/moment/ru.js +156 -147
- data/vendor/assets/javascripts/moment/sd.js +99 -0
- data/vendor/assets/javascripts/moment/se.js +62 -0
- data/vendor/assets/javascripts/moment/si.js +72 -0
- data/vendor/assets/javascripts/moment/sk.js +80 -80
- data/vendor/assets/javascripts/moment/sl.js +117 -89
- data/vendor/assets/javascripts/moment/sq.js +69 -65
- data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
- data/vendor/assets/javascripts/moment/sr.js +96 -91
- data/vendor/assets/javascripts/moment/ss.js +90 -0
- data/vendor/assets/javascripts/moment/sv.js +68 -63
- data/vendor/assets/javascripts/moment/sw.js +60 -0
- data/vendor/assets/javascripts/moment/ta.js +126 -125
- data/vendor/assets/javascripts/moment/te.js +90 -0
- data/vendor/assets/javascripts/moment/tet.js +69 -0
- data/vendor/assets/javascripts/moment/th.js +66 -61
- data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
- data/vendor/assets/javascripts/moment/tlh.js +123 -0
- data/vendor/assets/javascripts/moment/tr.js +85 -88
- data/vendor/assets/javascripts/moment/tzl.js +93 -0
- data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
- data/vendor/assets/javascripts/moment/tzm.js +57 -54
- data/vendor/assets/javascripts/moment/uk.js +123 -133
- data/vendor/assets/javascripts/moment/ur.js +100 -0
- data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
- data/vendor/assets/javascripts/moment/uz.js +57 -54
- data/vendor/assets/javascripts/moment/vi.js +78 -62
- data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
- data/vendor/assets/javascripts/moment/yo.js +61 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
- data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
- data/vendor/assets/javascripts/moment.js +4128 -2636
- metadata +67 -16
- data/test/dummy/log/test.log +0 -61
@@ -1,74 +1,80 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : German (Austria) [de-at]
|
3
|
+
//! author : lluchs : https://github.com/lluchs
|
4
|
+
//! author: Menelion Elensúle: https://github.com/Oire
|
5
|
+
//! author : Martin Groller : https://github.com/MadMG
|
6
|
+
//! author : Mikolaj Dadela : https://github.com/mik01aj
|
6
7
|
|
7
|
-
(function (factory) {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
8
|
+
;(function (global, factory) {
|
9
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
10
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
11
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
12
|
+
factory(global.moment)
|
13
|
+
}(this, (function (moment) { 'use strict';
|
14
|
+
|
15
|
+
|
16
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
17
|
+
var format = {
|
18
|
+
'm': ['eine Minute', 'einer Minute'],
|
19
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
20
|
+
'd': ['ein Tag', 'einem Tag'],
|
21
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
22
|
+
'M': ['ein Monat', 'einem Monat'],
|
23
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
24
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
25
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
26
|
+
};
|
27
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
28
|
+
}
|
29
|
+
|
30
|
+
var deAt = moment.defineLocale('de-at', {
|
31
|
+
months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
32
|
+
monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
33
|
+
monthsParseExact : true,
|
34
|
+
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
35
|
+
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
36
|
+
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
37
|
+
weekdaysParseExact : true,
|
38
|
+
longDateFormat : {
|
39
|
+
LT: 'HH:mm',
|
40
|
+
LTS: 'HH:mm:ss',
|
41
|
+
L : 'DD.MM.YYYY',
|
42
|
+
LL : 'D. MMMM YYYY',
|
43
|
+
LLL : 'D. MMMM YYYY HH:mm',
|
44
|
+
LLLL : 'dddd, D. MMMM YYYY HH:mm'
|
45
|
+
},
|
46
|
+
calendar : {
|
47
|
+
sameDay: '[heute um] LT [Uhr]',
|
48
|
+
sameElse: 'L',
|
49
|
+
nextDay: '[morgen um] LT [Uhr]',
|
50
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
51
|
+
lastDay: '[gestern um] LT [Uhr]',
|
52
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
53
|
+
},
|
54
|
+
relativeTime : {
|
55
|
+
future : 'in %s',
|
56
|
+
past : 'vor %s',
|
57
|
+
s : 'ein paar Sekunden',
|
58
|
+
ss : '%d Sekunden',
|
59
|
+
m : processRelativeTime,
|
60
|
+
mm : '%d Minuten',
|
61
|
+
h : processRelativeTime,
|
62
|
+
hh : '%d Stunden',
|
63
|
+
d : processRelativeTime,
|
64
|
+
dd : processRelativeTime,
|
65
|
+
M : processRelativeTime,
|
66
|
+
MM : processRelativeTime,
|
67
|
+
y : processRelativeTime,
|
68
|
+
yy : processRelativeTime
|
69
|
+
},
|
70
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
71
|
+
ordinal : '%d.',
|
72
|
+
week : {
|
73
|
+
dow : 1, // Monday is the first day of the week.
|
74
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
28
75
|
}
|
76
|
+
});
|
77
|
+
|
78
|
+
return deAt;
|
29
79
|
|
30
|
-
|
31
|
-
months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
32
|
-
monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
33
|
-
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
34
|
-
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
35
|
-
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
36
|
-
longDateFormat : {
|
37
|
-
LT: 'HH:mm',
|
38
|
-
LTS: 'HH:mm:ss',
|
39
|
-
L : 'DD.MM.YYYY',
|
40
|
-
LL : 'D. MMMM YYYY',
|
41
|
-
LLL : 'D. MMMM YYYY LT',
|
42
|
-
LLLL : 'dddd, D. MMMM YYYY LT'
|
43
|
-
},
|
44
|
-
calendar : {
|
45
|
-
sameDay: '[Heute um] LT [Uhr]',
|
46
|
-
sameElse: 'L',
|
47
|
-
nextDay: '[Morgen um] LT [Uhr]',
|
48
|
-
nextWeek: 'dddd [um] LT [Uhr]',
|
49
|
-
lastDay: '[Gestern um] LT [Uhr]',
|
50
|
-
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
51
|
-
},
|
52
|
-
relativeTime : {
|
53
|
-
future : 'in %s',
|
54
|
-
past : 'vor %s',
|
55
|
-
s : 'ein paar Sekunden',
|
56
|
-
m : processRelativeTime,
|
57
|
-
mm : '%d Minuten',
|
58
|
-
h : processRelativeTime,
|
59
|
-
hh : '%d Stunden',
|
60
|
-
d : processRelativeTime,
|
61
|
-
dd : processRelativeTime,
|
62
|
-
M : processRelativeTime,
|
63
|
-
MM : processRelativeTime,
|
64
|
-
y : processRelativeTime,
|
65
|
-
yy : processRelativeTime
|
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
|
-
}));
|
80
|
+
})));
|
@@ -0,0 +1,79 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : German (Switzerland) [de-ch]
|
3
|
+
//! author : sschueller : https://github.com/sschueller
|
4
|
+
|
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) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
|
+
|
12
|
+
|
13
|
+
// based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
|
14
|
+
|
15
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
16
|
+
var format = {
|
17
|
+
'm': ['eine Minute', 'einer Minute'],
|
18
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
19
|
+
'd': ['ein Tag', 'einem Tag'],
|
20
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
21
|
+
'M': ['ein Monat', 'einem Monat'],
|
22
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
23
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
24
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
25
|
+
};
|
26
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
27
|
+
}
|
28
|
+
|
29
|
+
var deCh = moment.defineLocale('de-ch', {
|
30
|
+
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
31
|
+
monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
32
|
+
monthsParseExact : true,
|
33
|
+
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
34
|
+
weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
35
|
+
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
36
|
+
weekdaysParseExact : true,
|
37
|
+
longDateFormat : {
|
38
|
+
LT: 'HH:mm',
|
39
|
+
LTS: 'HH:mm:ss',
|
40
|
+
L : 'DD.MM.YYYY',
|
41
|
+
LL : 'D. MMMM YYYY',
|
42
|
+
LLL : 'D. MMMM YYYY HH:mm',
|
43
|
+
LLLL : 'dddd, D. MMMM YYYY HH:mm'
|
44
|
+
},
|
45
|
+
calendar : {
|
46
|
+
sameDay: '[heute um] LT [Uhr]',
|
47
|
+
sameElse: 'L',
|
48
|
+
nextDay: '[morgen um] LT [Uhr]',
|
49
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
50
|
+
lastDay: '[gestern um] LT [Uhr]',
|
51
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
52
|
+
},
|
53
|
+
relativeTime : {
|
54
|
+
future : 'in %s',
|
55
|
+
past : 'vor %s',
|
56
|
+
s : 'ein paar Sekunden',
|
57
|
+
ss : '%d Sekunden',
|
58
|
+
m : processRelativeTime,
|
59
|
+
mm : '%d Minuten',
|
60
|
+
h : processRelativeTime,
|
61
|
+
hh : '%d Stunden',
|
62
|
+
d : processRelativeTime,
|
63
|
+
dd : processRelativeTime,
|
64
|
+
M : processRelativeTime,
|
65
|
+
MM : processRelativeTime,
|
66
|
+
y : processRelativeTime,
|
67
|
+
yy : processRelativeTime
|
68
|
+
},
|
69
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
70
|
+
ordinal : '%d.',
|
71
|
+
week : {
|
72
|
+
dow : 1, // Monday is the first day of the week.
|
73
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
74
|
+
}
|
75
|
+
});
|
76
|
+
|
77
|
+
return deCh;
|
78
|
+
|
79
|
+
})));
|
@@ -1,73 +1,79 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : German [de]
|
3
|
+
//! author : lluchs : https://github.com/lluchs
|
4
|
+
//! author: Menelion Elensúle: https://github.com/Oire
|
5
|
+
//! author : Mikolaj Dadela : https://github.com/mik01aj
|
5
6
|
|
6
|
-
(function (factory) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
7
|
+
;(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
9
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
10
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
11
|
+
factory(global.moment)
|
12
|
+
}(this, (function (moment) { 'use strict';
|
13
|
+
|
14
|
+
|
15
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
16
|
+
var format = {
|
17
|
+
'm': ['eine Minute', 'einer Minute'],
|
18
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
19
|
+
'd': ['ein Tag', 'einem Tag'],
|
20
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
21
|
+
'M': ['ein Monat', 'einem Monat'],
|
22
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
23
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
24
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
25
|
+
};
|
26
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
27
|
+
}
|
28
|
+
|
29
|
+
var de = moment.defineLocale('de', {
|
30
|
+
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
31
|
+
monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
32
|
+
monthsParseExact : true,
|
33
|
+
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
34
|
+
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
35
|
+
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
36
|
+
weekdaysParseExact : true,
|
37
|
+
longDateFormat : {
|
38
|
+
LT: 'HH:mm',
|
39
|
+
LTS: 'HH:mm:ss',
|
40
|
+
L : 'DD.MM.YYYY',
|
41
|
+
LL : 'D. MMMM YYYY',
|
42
|
+
LLL : 'D. MMMM YYYY HH:mm',
|
43
|
+
LLLL : 'dddd, D. MMMM YYYY HH:mm'
|
44
|
+
},
|
45
|
+
calendar : {
|
46
|
+
sameDay: '[heute um] LT [Uhr]',
|
47
|
+
sameElse: 'L',
|
48
|
+
nextDay: '[morgen um] LT [Uhr]',
|
49
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
50
|
+
lastDay: '[gestern um] LT [Uhr]',
|
51
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
52
|
+
},
|
53
|
+
relativeTime : {
|
54
|
+
future : 'in %s',
|
55
|
+
past : 'vor %s',
|
56
|
+
s : 'ein paar Sekunden',
|
57
|
+
ss : '%d Sekunden',
|
58
|
+
m : processRelativeTime,
|
59
|
+
mm : '%d Minuten',
|
60
|
+
h : processRelativeTime,
|
61
|
+
hh : '%d Stunden',
|
62
|
+
d : processRelativeTime,
|
63
|
+
dd : processRelativeTime,
|
64
|
+
M : processRelativeTime,
|
65
|
+
MM : processRelativeTime,
|
66
|
+
y : processRelativeTime,
|
67
|
+
yy : processRelativeTime
|
68
|
+
},
|
69
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
70
|
+
ordinal : '%d.',
|
71
|
+
week : {
|
72
|
+
dow : 1, // Monday is the first day of the week.
|
73
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
27
74
|
}
|
75
|
+
});
|
76
|
+
|
77
|
+
return de;
|
28
78
|
|
29
|
-
|
30
|
-
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
31
|
-
monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
32
|
-
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
33
|
-
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
34
|
-
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
35
|
-
longDateFormat : {
|
36
|
-
LT: 'HH:mm',
|
37
|
-
LTS: 'HH:mm:ss',
|
38
|
-
L : 'DD.MM.YYYY',
|
39
|
-
LL : 'D. MMMM YYYY',
|
40
|
-
LLL : 'D. MMMM YYYY LT',
|
41
|
-
LLLL : 'dddd, D. MMMM YYYY LT'
|
42
|
-
},
|
43
|
-
calendar : {
|
44
|
-
sameDay: '[Heute um] LT [Uhr]',
|
45
|
-
sameElse: 'L',
|
46
|
-
nextDay: '[Morgen um] LT [Uhr]',
|
47
|
-
nextWeek: 'dddd [um] LT [Uhr]',
|
48
|
-
lastDay: '[Gestern um] LT [Uhr]',
|
49
|
-
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
50
|
-
},
|
51
|
-
relativeTime : {
|
52
|
-
future : 'in %s',
|
53
|
-
past : 'vor %s',
|
54
|
-
s : 'ein paar Sekunden',
|
55
|
-
m : processRelativeTime,
|
56
|
-
mm : '%d Minuten',
|
57
|
-
h : processRelativeTime,
|
58
|
-
hh : '%d Stunden',
|
59
|
-
d : processRelativeTime,
|
60
|
-
dd : processRelativeTime,
|
61
|
-
M : processRelativeTime,
|
62
|
-
MM : processRelativeTime,
|
63
|
-
y : processRelativeTime,
|
64
|
-
yy : processRelativeTime
|
65
|
-
},
|
66
|
-
ordinalParse: /\d{1,2}\./,
|
67
|
-
ordinal : '%d.',
|
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
|
-
}));
|
79
|
+
})));
|
@@ -0,0 +1,101 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Maldivian [dv]
|
3
|
+
//! author : Jawish Hameed : https://github.com/jawish
|
4
|
+
|
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) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
|
+
|
12
|
+
|
13
|
+
var months = [
|
14
|
+
'ޖެނުއަރީ',
|
15
|
+
'ފެބްރުއަރީ',
|
16
|
+
'މާރިޗު',
|
17
|
+
'އޭޕްރީލު',
|
18
|
+
'މޭ',
|
19
|
+
'ޖޫން',
|
20
|
+
'ޖުލައި',
|
21
|
+
'އޯގަސްޓު',
|
22
|
+
'ސެޕްޓެމްބަރު',
|
23
|
+
'އޮކްޓޯބަރު',
|
24
|
+
'ނޮވެމްބަރު',
|
25
|
+
'ޑިސެމްބަރު'
|
26
|
+
];
|
27
|
+
var weekdays = [
|
28
|
+
'އާދިއްތަ',
|
29
|
+
'ހޯމަ',
|
30
|
+
'އަންގާރަ',
|
31
|
+
'ބުދަ',
|
32
|
+
'ބުރާސްފަތި',
|
33
|
+
'ހުކުރު',
|
34
|
+
'ހޮނިހިރު'
|
35
|
+
];
|
36
|
+
|
37
|
+
var dv = moment.defineLocale('dv', {
|
38
|
+
months : months,
|
39
|
+
monthsShort : months,
|
40
|
+
weekdays : weekdays,
|
41
|
+
weekdaysShort : weekdays,
|
42
|
+
weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
|
43
|
+
longDateFormat : {
|
44
|
+
|
45
|
+
LT : 'HH:mm',
|
46
|
+
LTS : 'HH:mm:ss',
|
47
|
+
L : 'D/M/YYYY',
|
48
|
+
LL : 'D MMMM YYYY',
|
49
|
+
LLL : 'D MMMM YYYY HH:mm',
|
50
|
+
LLLL : 'dddd D MMMM YYYY HH:mm'
|
51
|
+
},
|
52
|
+
meridiemParse: /މކ|މފ/,
|
53
|
+
isPM : function (input) {
|
54
|
+
return 'މފ' === input;
|
55
|
+
},
|
56
|
+
meridiem : function (hour, minute, isLower) {
|
57
|
+
if (hour < 12) {
|
58
|
+
return 'މކ';
|
59
|
+
} else {
|
60
|
+
return 'މފ';
|
61
|
+
}
|
62
|
+
},
|
63
|
+
calendar : {
|
64
|
+
sameDay : '[މިއަދު] LT',
|
65
|
+
nextDay : '[މާދަމާ] LT',
|
66
|
+
nextWeek : 'dddd LT',
|
67
|
+
lastDay : '[އިއްޔެ] LT',
|
68
|
+
lastWeek : '[ފާއިތުވި] dddd LT',
|
69
|
+
sameElse : 'L'
|
70
|
+
},
|
71
|
+
relativeTime : {
|
72
|
+
future : 'ތެރޭގައި %s',
|
73
|
+
past : 'ކުރިން %s',
|
74
|
+
s : 'ސިކުންތުކޮޅެއް',
|
75
|
+
ss : 'd% ސިކުންތު',
|
76
|
+
m : 'މިނިޓެއް',
|
77
|
+
mm : 'މިނިޓު %d',
|
78
|
+
h : 'ގަޑިއިރެއް',
|
79
|
+
hh : 'ގަޑިއިރު %d',
|
80
|
+
d : 'ދުވަހެއް',
|
81
|
+
dd : 'ދުވަސް %d',
|
82
|
+
M : 'މަހެއް',
|
83
|
+
MM : 'މަސް %d',
|
84
|
+
y : 'އަހަރެއް',
|
85
|
+
yy : 'އަހަރު %d'
|
86
|
+
},
|
87
|
+
preparse: function (string) {
|
88
|
+
return string.replace(/،/g, ',');
|
89
|
+
},
|
90
|
+
postformat: function (string) {
|
91
|
+
return string.replace(/,/g, '،');
|
92
|
+
},
|
93
|
+
week : {
|
94
|
+
dow : 7, // Sunday is the first day of the week.
|
95
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
96
|
+
}
|
97
|
+
});
|
98
|
+
|
99
|
+
return dv;
|
100
|
+
|
101
|
+
})));
|