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
@@ -8,130 +8,130 @@
|
|
8
8
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
9
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
10
|
factory(global.moment)
|
11
|
-
}(this, function (moment) { 'use strict';
|
11
|
+
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
15
|
+
var format = {
|
16
|
+
'm': ['eng Minutt', 'enger Minutt'],
|
17
|
+
'h': ['eng Stonn', 'enger Stonn'],
|
18
|
+
'd': ['een Dag', 'engem Dag'],
|
19
|
+
'M': ['ee Mount', 'engem Mount'],
|
20
|
+
'y': ['ee Joer', 'engem Joer']
|
21
|
+
};
|
22
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
23
|
+
}
|
24
|
+
function processFutureTime(string) {
|
25
|
+
var number = string.substr(0, string.indexOf(' '));
|
26
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
27
|
+
return 'a ' + string;
|
23
28
|
}
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
return '
|
29
|
+
return 'an ' + string;
|
30
|
+
}
|
31
|
+
function processPastTime(string) {
|
32
|
+
var number = string.substr(0, string.indexOf(' '));
|
33
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
34
|
+
return 'viru ' + string;
|
30
35
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
return 'virun ' + string;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
40
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
41
|
+
*
|
42
|
+
* @param number {integer}
|
43
|
+
* @returns {boolean}
|
44
|
+
*/
|
45
|
+
function eifelerRegelAppliesToNumber(number) {
|
46
|
+
number = parseInt(number, 10);
|
47
|
+
if (isNaN(number)) {
|
48
|
+
return false;
|
37
49
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
*/
|
45
|
-
function eifelerRegelAppliesToNumber(number) {
|
46
|
-
number = parseInt(number, 10);
|
47
|
-
if (isNaN(number)) {
|
48
|
-
return false;
|
49
|
-
}
|
50
|
-
if (number < 0) {
|
51
|
-
// Negative Number --> always true
|
50
|
+
if (number < 0) {
|
51
|
+
// Negative Number --> always true
|
52
|
+
return true;
|
53
|
+
} else if (number < 10) {
|
54
|
+
// Only 1 digit
|
55
|
+
if (4 <= number && number <= 7) {
|
52
56
|
return true;
|
53
|
-
} else if (number < 10) {
|
54
|
-
// Only 1 digit
|
55
|
-
if (4 <= number && number <= 7) {
|
56
|
-
return true;
|
57
|
-
}
|
58
|
-
return false;
|
59
|
-
} else if (number < 100) {
|
60
|
-
// 2 digits
|
61
|
-
var lastDigit = number % 10, firstDigit = number / 10;
|
62
|
-
if (lastDigit === 0) {
|
63
|
-
return eifelerRegelAppliesToNumber(firstDigit);
|
64
|
-
}
|
65
|
-
return eifelerRegelAppliesToNumber(lastDigit);
|
66
|
-
} else if (number < 10000) {
|
67
|
-
// 3 or 4 digits --> recursively check first digit
|
68
|
-
while (number >= 10) {
|
69
|
-
number = number / 10;
|
70
|
-
}
|
71
|
-
return eifelerRegelAppliesToNumber(number);
|
72
|
-
} else {
|
73
|
-
// Anything larger than 4 digits: recursively check first n-3 digits
|
74
|
-
number = number / 1000;
|
75
|
-
return eifelerRegelAppliesToNumber(number);
|
76
57
|
}
|
58
|
+
return false;
|
59
|
+
} else if (number < 100) {
|
60
|
+
// 2 digits
|
61
|
+
var lastDigit = number % 10, firstDigit = number / 10;
|
62
|
+
if (lastDigit === 0) {
|
63
|
+
return eifelerRegelAppliesToNumber(firstDigit);
|
64
|
+
}
|
65
|
+
return eifelerRegelAppliesToNumber(lastDigit);
|
66
|
+
} else if (number < 10000) {
|
67
|
+
// 3 or 4 digits --> recursively check first digit
|
68
|
+
while (number >= 10) {
|
69
|
+
number = number / 10;
|
70
|
+
}
|
71
|
+
return eifelerRegelAppliesToNumber(number);
|
72
|
+
} else {
|
73
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
74
|
+
number = number / 1000;
|
75
|
+
return eifelerRegelAppliesToNumber(number);
|
77
76
|
}
|
77
|
+
}
|
78
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
}
|
79
|
+
var lb = moment.defineLocale('lb', {
|
80
|
+
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
81
|
+
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
82
|
+
monthsParseExact : true,
|
83
|
+
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
|
84
|
+
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
|
85
|
+
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
|
86
|
+
weekdaysParseExact : true,
|
87
|
+
longDateFormat: {
|
88
|
+
LT: 'H:mm [Auer]',
|
89
|
+
LTS: 'H:mm:ss [Auer]',
|
90
|
+
L: 'DD.MM.YYYY',
|
91
|
+
LL: 'D. MMMM YYYY',
|
92
|
+
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
93
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
|
94
|
+
},
|
95
|
+
calendar: {
|
96
|
+
sameDay: '[Haut um] LT',
|
97
|
+
sameElse: 'L',
|
98
|
+
nextDay: '[Muer um] LT',
|
99
|
+
nextWeek: 'dddd [um] LT',
|
100
|
+
lastDay: '[Gëschter um] LT',
|
101
|
+
lastWeek: function () {
|
102
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
103
|
+
switch (this.day()) {
|
104
|
+
case 2:
|
105
|
+
case 4:
|
106
|
+
return '[Leschten] dddd [um] LT';
|
107
|
+
default:
|
108
|
+
return '[Leschte] dddd [um] LT';
|
110
109
|
}
|
111
|
-
},
|
112
|
-
relativeTime : {
|
113
|
-
future : processFutureTime,
|
114
|
-
past : processPastTime,
|
115
|
-
s : 'e puer Sekonnen',
|
116
|
-
m : processRelativeTime,
|
117
|
-
mm : '%d Minutten',
|
118
|
-
h : processRelativeTime,
|
119
|
-
hh : '%d Stonnen',
|
120
|
-
d : processRelativeTime,
|
121
|
-
dd : '%d Deeg',
|
122
|
-
M : processRelativeTime,
|
123
|
-
MM : '%d Méint',
|
124
|
-
y : processRelativeTime,
|
125
|
-
yy : '%d Joer'
|
126
|
-
},
|
127
|
-
ordinalParse: /\d{1,2}\./,
|
128
|
-
ordinal: '%d.',
|
129
|
-
week: {
|
130
|
-
dow: 1, // Monday is the first day of the week.
|
131
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
132
110
|
}
|
133
|
-
}
|
111
|
+
},
|
112
|
+
relativeTime : {
|
113
|
+
future : processFutureTime,
|
114
|
+
past : processPastTime,
|
115
|
+
s : 'e puer Sekonnen',
|
116
|
+
m : processRelativeTime,
|
117
|
+
mm : '%d Minutten',
|
118
|
+
h : processRelativeTime,
|
119
|
+
hh : '%d Stonnen',
|
120
|
+
d : processRelativeTime,
|
121
|
+
dd : '%d Deeg',
|
122
|
+
M : processRelativeTime,
|
123
|
+
MM : '%d Méint',
|
124
|
+
y : processRelativeTime,
|
125
|
+
yy : '%d Joer'
|
126
|
+
},
|
127
|
+
ordinalParse: /\d{1,2}\./,
|
128
|
+
ordinal: '%d.',
|
129
|
+
week: {
|
130
|
+
dow: 1, // Monday is the first day of the week.
|
131
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
132
|
+
}
|
133
|
+
});
|
134
134
|
|
135
|
-
|
135
|
+
return lb;
|
136
136
|
|
137
|
-
}));
|
137
|
+
})));
|
@@ -7,64 +7,64 @@
|
|
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
|
-
|
37
|
-
}
|
38
|
-
},
|
39
|
-
calendar : {
|
40
|
-
sameDay : '[ມື້ນີ້ເວລາ] LT',
|
41
|
-
nextDay : '[ມື້ອື່ນເວລາ] LT',
|
42
|
-
nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
|
43
|
-
lastDay : '[ມື້ວານນີ້ເວລາ] LT',
|
44
|
-
lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
|
45
|
-
sameElse : 'L'
|
46
|
-
},
|
47
|
-
relativeTime : {
|
48
|
-
future : 'ອີກ %s',
|
49
|
-
past : '%sຜ່ານມາ',
|
50
|
-
s : 'ບໍ່ເທົ່າໃດວິນາທີ',
|
51
|
-
m : '1 ນາທີ',
|
52
|
-
mm : '%d ນາທີ',
|
53
|
-
h : '1 ຊົ່ວໂມງ',
|
54
|
-
hh : '%d ຊົ່ວໂມງ',
|
55
|
-
d : '1 ມື້',
|
56
|
-
dd : '%d ມື້',
|
57
|
-
M : '1 ເດືອນ',
|
58
|
-
MM : '%d ເດືອນ',
|
59
|
-
y : '1 ປີ',
|
60
|
-
yy : '%d ປີ'
|
61
|
-
},
|
62
|
-
ordinalParse: /(ທີ່)\d{1,2}/,
|
63
|
-
ordinal : function (number) {
|
64
|
-
return 'ທີ່' + number;
|
13
|
+
var lo = moment.defineLocale('lo', {
|
14
|
+
months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
15
|
+
monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
|
16
|
+
weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
17
|
+
weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
18
|
+
weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
|
19
|
+
weekdaysParseExact : true,
|
20
|
+
longDateFormat : {
|
21
|
+
LT : 'HH:mm',
|
22
|
+
LTS : 'HH:mm:ss',
|
23
|
+
L : 'DD/MM/YYYY',
|
24
|
+
LL : 'D MMMM YYYY',
|
25
|
+
LLL : 'D MMMM YYYY HH:mm',
|
26
|
+
LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
|
27
|
+
},
|
28
|
+
meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
|
29
|
+
isPM: function (input) {
|
30
|
+
return input === 'ຕອນແລງ';
|
31
|
+
},
|
32
|
+
meridiem : function (hour, minute, isLower) {
|
33
|
+
if (hour < 12) {
|
34
|
+
return 'ຕອນເຊົ້າ';
|
35
|
+
} else {
|
36
|
+
return 'ຕອນແລງ';
|
65
37
|
}
|
66
|
-
}
|
38
|
+
},
|
39
|
+
calendar : {
|
40
|
+
sameDay : '[ມື້ນີ້ເວລາ] LT',
|
41
|
+
nextDay : '[ມື້ອື່ນເວລາ] LT',
|
42
|
+
nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
|
43
|
+
lastDay : '[ມື້ວານນີ້ເວລາ] LT',
|
44
|
+
lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : 'ອີກ %s',
|
49
|
+
past : '%sຜ່ານມາ',
|
50
|
+
s : 'ບໍ່ເທົ່າໃດວິນາທີ',
|
51
|
+
m : '1 ນາທີ',
|
52
|
+
mm : '%d ນາທີ',
|
53
|
+
h : '1 ຊົ່ວໂມງ',
|
54
|
+
hh : '%d ຊົ່ວໂມງ',
|
55
|
+
d : '1 ມື້',
|
56
|
+
dd : '%d ມື້',
|
57
|
+
M : '1 ເດືອນ',
|
58
|
+
MM : '%d ເດືອນ',
|
59
|
+
y : '1 ປີ',
|
60
|
+
yy : '%d ປີ'
|
61
|
+
},
|
62
|
+
ordinalParse: /(ທີ່)\d{1,2}/,
|
63
|
+
ordinal : function (number) {
|
64
|
+
return 'ທີ່' + number;
|
65
|
+
}
|
66
|
+
});
|
67
67
|
|
68
|
-
|
68
|
+
return lo;
|
69
69
|
|
70
|
-
}));
|
70
|
+
})));
|
@@ -7,111 +7,111 @@
|
|
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
|
-
function translateSingular(number, withoutSuffix, key, isFuture) {
|
33
|
-
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
34
|
-
}
|
35
|
-
function special(number) {
|
36
|
-
return number % 10 === 0 || (number > 10 && number < 20);
|
13
|
+
var units = {
|
14
|
+
'm' : 'minutė_minutės_minutę',
|
15
|
+
'mm': 'minutės_minučių_minutes',
|
16
|
+
'h' : 'valanda_valandos_valandą',
|
17
|
+
'hh': 'valandos_valandų_valandas',
|
18
|
+
'd' : 'diena_dienos_dieną',
|
19
|
+
'dd': 'dienos_dienų_dienas',
|
20
|
+
'M' : 'mėnuo_mėnesio_mėnesį',
|
21
|
+
'MM': 'mėnesiai_mėnesių_mėnesius',
|
22
|
+
'y' : 'metai_metų_metus',
|
23
|
+
'yy': 'metai_metų_metus'
|
24
|
+
};
|
25
|
+
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
26
|
+
if (withoutSuffix) {
|
27
|
+
return 'kelios sekundės';
|
28
|
+
} else {
|
29
|
+
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
37
30
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
31
|
+
}
|
32
|
+
function translateSingular(number, withoutSuffix, key, isFuture) {
|
33
|
+
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
34
|
+
}
|
35
|
+
function special(number) {
|
36
|
+
return number % 10 === 0 || (number > 10 && number < 20);
|
37
|
+
}
|
38
|
+
function forms(key) {
|
39
|
+
return units[key].split('_');
|
40
|
+
}
|
41
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
42
|
+
var result = number + ' ';
|
43
|
+
if (number === 1) {
|
44
|
+
return result + translateSingular(number, withoutSuffix, key[0], isFuture);
|
45
|
+
} else if (withoutSuffix) {
|
46
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
47
|
+
} else {
|
48
|
+
if (isFuture) {
|
49
|
+
return result + forms(key)[1];
|
47
50
|
} else {
|
48
|
-
|
49
|
-
return result + forms(key)[1];
|
50
|
-
} else {
|
51
|
-
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
52
|
-
}
|
51
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
53
52
|
}
|
54
53
|
}
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}
|
54
|
+
}
|
55
|
+
var lt = moment.defineLocale('lt', {
|
56
|
+
months : {
|
57
|
+
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
|
58
|
+
standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
|
59
|
+
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
|
60
|
+
},
|
61
|
+
monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
62
|
+
weekdays : {
|
63
|
+
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
|
64
|
+
standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
|
65
|
+
isFormat: /dddd HH:mm/
|
66
|
+
},
|
67
|
+
weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
|
68
|
+
weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
|
69
|
+
weekdaysParseExact : true,
|
70
|
+
longDateFormat : {
|
71
|
+
LT : 'HH:mm',
|
72
|
+
LTS : 'HH:mm:ss',
|
73
|
+
L : 'YYYY-MM-DD',
|
74
|
+
LL : 'YYYY [m.] MMMM D [d.]',
|
75
|
+
LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
76
|
+
LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
77
|
+
l : 'YYYY-MM-DD',
|
78
|
+
ll : 'YYYY [m.] MMMM D [d.]',
|
79
|
+
lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
80
|
+
llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
|
81
|
+
},
|
82
|
+
calendar : {
|
83
|
+
sameDay : '[Šiandien] LT',
|
84
|
+
nextDay : '[Rytoj] LT',
|
85
|
+
nextWeek : 'dddd LT',
|
86
|
+
lastDay : '[Vakar] LT',
|
87
|
+
lastWeek : '[Praėjusį] dddd LT',
|
88
|
+
sameElse : 'L'
|
89
|
+
},
|
90
|
+
relativeTime : {
|
91
|
+
future : 'po %s',
|
92
|
+
past : 'prieš %s',
|
93
|
+
s : translateSeconds,
|
94
|
+
m : translateSingular,
|
95
|
+
mm : translate,
|
96
|
+
h : translateSingular,
|
97
|
+
hh : translate,
|
98
|
+
d : translateSingular,
|
99
|
+
dd : translate,
|
100
|
+
M : translateSingular,
|
101
|
+
MM : translate,
|
102
|
+
y : translateSingular,
|
103
|
+
yy : translate
|
104
|
+
},
|
105
|
+
ordinalParse: /\d{1,2}-oji/,
|
106
|
+
ordinal : function (number) {
|
107
|
+
return number + '-oji';
|
108
|
+
},
|
109
|
+
week : {
|
110
|
+
dow : 1, // Monday is the first day of the week.
|
111
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
112
|
+
}
|
113
|
+
});
|
114
114
|
|
115
|
-
|
115
|
+
return lt;
|
116
116
|
|
117
|
-
}));
|
117
|
+
})));
|