momentjs-rails 2.20.1 → 2.29.4.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 +12 -0
- data/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +1 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0t/0ty_fqRlzF-hGYQebubBsuGgCeT9YnqkULkaCu1nwMk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3D/3DLOuccQFCZCWz_kmyP6PagEyQM5ne4ONIzBwdwG-fY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3h/3hk-k7Z5qoOh6S1dyiOjpfiwRfblMf4NpG3NVkO_4GQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/81/81FXcACo3ySybaa-2mJ9JsZ4xXvXxgi6rAT9sildrVs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/97/97gKfWGwqo7IhT-5nqdT3p547QEt2G9nbmU5XVAtEeE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GO/GOYA_gO9tZqOtwNUptOfYUG1F6q5BF1ZZI0Wr7itvYM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NG/NGyfZ_kRU3oHnf8bEjRHJwpjyx0NF_U8V_ENdenCoIg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/R9/R9pPKpyMZFVnjZL7kwY21faYzV2WpIx_hPb5GrUown8.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/W1/W1cCnSuixTbIt3rgc5Z-4BGC1iBfw6gqKVjuOh66lSY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Xr/Xr9AioDZNswMqHmbREXo4J_kNVPlbysC8G37BX65-rY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lK/lKG81FVPPHkSni295teRgLDoWVYRamY_BCSFxMiagSs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q7/q7CVcZSJHIEQqdPLpSAb4YHepJZFY541_7ToMaHvbtA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wF/wFKYFOm2u1A3crk6JyBKUw2L5ybvI0Tbt2jPPZXfdWQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yY/yY97dYnGEDUjVioT9bUJucvTt0w_ToimRXWj3YYvD10.cache +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment/af.js +67 -59
- data/vendor/assets/javascripts/moment/ar-dz.js +153 -46
- data/vendor/assets/javascripts/moment/ar-kw.js +51 -45
- data/vendor/assets/javascripts/moment/ar-ly.js +167 -112
- data/vendor/assets/javascripts/moment/ar-ma.js +51 -45
- data/vendor/assets/javascripts/moment/ar-sa.js +100 -90
- data/vendor/assets/javascripts/moment/ar-tn.js +51 -45
- data/vendor/assets/javascripts/moment/ar.js +182 -125
- data/vendor/assets/javascripts/moment/az.js +97 -90
- data/vendor/assets/javascripts/moment/be.js +130 -112
- data/vendor/assets/javascripts/moment/bg.js +81 -74
- data/vendor/assets/javascripts/moment/bm.js +47 -45
- data/vendor/assets/javascripts/moment/bn-bd.js +140 -0
- data/vendor/assets/javascripts/moment/bn.js +113 -103
- data/vendor/assets/javascripts/moment/bo.js +118 -103
- data/vendor/assets/javascripts/moment/br.js +158 -88
- data/vendor/assets/javascripts/moment/bs.js +141 -133
- data/vendor/assets/javascripts/moment/ca.js +91 -69
- data/vendor/assets/javascripts/moment/cs.js +172 -161
- data/vendor/assets/javascripts/moment/cv.js +58 -48
- data/vendor/assets/javascripts/moment/cy.js +92 -65
- data/vendor/assets/javascripts/moment/da.js +49 -46
- data/vendor/assets/javascripts/moment/de-at.js +71 -61
- data/vendor/assets/javascripts/moment/de-ch.js +71 -63
- data/vendor/assets/javascripts/moment/de.js +71 -61
- data/vendor/assets/javascripts/moment/dv.js +85 -85
- data/vendor/assets/javascripts/moment/el.js +99 -83
- data/vendor/assets/javascripts/moment/en-au.js +64 -53
- data/vendor/assets/javascripts/moment/en-ca.js +60 -49
- data/vendor/assets/javascripts/moment/en-gb.js +64 -53
- data/vendor/assets/javascripts/moment/en-ie.js +64 -53
- data/vendor/assets/javascripts/moment/en-il.js +75 -0
- data/vendor/assets/javascripts/moment/en-in.js +79 -0
- data/vendor/assets/javascripts/moment/en-nz.js +64 -53
- data/vendor/assets/javascripts/moment/en-sg.js +79 -0
- data/vendor/assets/javascripts/moment/eo.js +62 -57
- data/vendor/assets/javascripts/moment/es-do.js +99 -72
- data/vendor/assets/javascripts/moment/es-mx.js +121 -0
- data/vendor/assets/javascripts/moment/es-us.js +100 -63
- data/vendor/assets/javascripts/moment/es.js +100 -72
- data/vendor/assets/javascripts/moment/et.js +71 -64
- data/vendor/assets/javascripts/moment/eu.js +61 -52
- data/vendor/assets/javascripts/moment/fa.js +108 -92
- data/vendor/assets/javascripts/moment/fi.js +118 -93
- data/vendor/assets/javascripts/moment/fil.js +69 -0
- data/vendor/assets/javascripts/moment/fo.js +53 -46
- data/vendor/assets/javascripts/moment/fr-ca.js +65 -59
- data/vendor/assets/javascripts/moment/fr-ch.js +69 -63
- data/vendor/assets/javascripts/moment/fr.js +102 -67
- data/vendor/assets/javascripts/moment/fy.js +70 -60
- data/vendor/assets/javascripts/moment/ga.js +106 -0
- data/vendor/assets/javascripts/moment/gd.js +90 -61
- data/vendor/assets/javascripts/moment/gl.js +67 -59
- data/vendor/assets/javascripts/moment/gom-deva.js +137 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +119 -108
- data/vendor/assets/javascripts/moment/gu.js +117 -109
- data/vendor/assets/javascripts/moment/he.js +84 -79
- data/vendor/assets/javascripts/moment/hi.js +163 -109
- data/vendor/assets/javascripts/moment/hr.js +148 -136
- data/vendor/assets/javascripts/moment/hu.js +110 -92
- data/vendor/assets/javascripts/moment/hy-am.js +88 -79
- data/vendor/assets/javascripts/moment/id.js +71 -68
- data/vendor/assets/javascripts/moment/is.js +128 -110
- data/vendor/assets/javascripts/moment/it-ch.js +75 -0
- data/vendor/assets/javascripts/moment/it.js +99 -53
- data/vendor/assets/javascripts/moment/ja.js +144 -66
- data/vendor/assets/javascripts/moment/jv.js +71 -68
- data/vendor/assets/javascripts/moment/ka.js +85 -72
- data/vendor/assets/javascripts/moment/kk.js +77 -72
- data/vendor/assets/javascripts/moment/km.js +99 -44
- data/vendor/assets/javascripts/moment/kn.js +119 -111
- data/vendor/assets/javascripts/moment/ko.js +70 -67
- data/vendor/assets/javascripts/moment/ku.js +129 -0
- data/vendor/assets/javascripts/moment/ky.js +79 -73
- data/vendor/assets/javascripts/moment/lb.js +125 -115
- data/vendor/assets/javascripts/moment/lo.js +62 -56
- data/vendor/assets/javascripts/moment/lt.js +117 -100
- data/vendor/assets/javascripts/moment/lv.js +87 -81
- data/vendor/assets/javascripts/moment/me.js +109 -94
- data/vendor/assets/javascripts/moment/mi.js +56 -50
- data/vendor/assets/javascripts/moment/mk.js +80 -74
- data/vendor/assets/javascripts/moment/ml.js +77 -66
- data/vendor/assets/javascripts/moment/mn.js +111 -0
- data/vendor/assets/javascripts/moment/mr.js +194 -142
- data/vendor/assets/javascripts/moment/ms-my.js +71 -68
- data/vendor/assets/javascripts/moment/ms.js +71 -68
- data/vendor/assets/javascripts/moment/mt.js +52 -46
- data/vendor/assets/javascripts/moment/my.js +83 -78
- data/vendor/assets/javascripts/moment/nb.js +55 -48
- data/vendor/assets/javascripts/moment/ne.js +116 -108
- data/vendor/assets/javascripts/moment/nl-be.js +93 -69
- data/vendor/assets/javascripts/moment/nl.js +95 -69
- data/vendor/assets/javascripts/moment/nn.js +56 -47
- data/vendor/assets/javascripts/moment/oc-lnc.js +96 -0
- data/vendor/assets/javascripts/moment/pa-in.js +117 -109
- data/vendor/assets/javascripts/moment/pl.js +128 -104
- data/vendor/assets/javascripts/moment/pt-br.js +53 -46
- data/vendor/assets/javascripts/moment/pt.js +58 -50
- data/vendor/assets/javascripts/moment/ro.js +69 -59
- data/vendor/assets/javascripts/moment/ru.js +194 -155
- data/vendor/assets/javascripts/moment/sd.js +76 -83
- data/vendor/assets/javascripts/moment/se.js +53 -47
- data/vendor/assets/javascripts/moment/si.js +65 -57
- data/vendor/assets/javascripts/moment/sk.js +136 -138
- data/vendor/assets/javascripts/moment/sl.js +162 -154
- data/vendor/assets/javascripts/moment/sq.js +59 -54
- data/vendor/assets/javascripts/moment/sr-cyrl.js +119 -93
- data/vendor/assets/javascripts/moment/sr.js +121 -93
- data/vendor/assets/javascripts/moment/ss.js +79 -74
- data/vendor/assets/javascripts/moment/sv.js +64 -55
- data/vendor/assets/javascripts/moment/sw.js +51 -45
- data/vendor/assets/javascripts/moment/ta.js +126 -115
- data/vendor/assets/javascripts/moment/te.js +84 -75
- data/vendor/assets/javascripts/moment/tet.js +63 -53
- data/vendor/assets/javascripts/moment/tg.js +128 -0
- data/vendor/assets/javascripts/moment/th.js +61 -53
- data/vendor/assets/javascripts/moment/tk.js +102 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +53 -48
- data/vendor/assets/javascripts/moment/tlh.js +113 -101
- data/vendor/assets/javascripts/moment/tr.js +100 -74
- data/vendor/assets/javascripts/moment/tzl.js +83 -76
- data/vendor/assets/javascripts/moment/tzm-latn.js +50 -44
- data/vendor/assets/javascripts/moment/tzm.js +50 -44
- data/vendor/assets/javascripts/moment/ug-cn.js +122 -0
- data/vendor/assets/javascripts/moment/uk.js +155 -130
- data/vendor/assets/javascripts/moment/ur.js +76 -83
- data/vendor/assets/javascripts/moment/uz-latn.js +50 -44
- data/vendor/assets/javascripts/moment/uz.js +47 -44
- data/vendor/assets/javascripts/moment/vi.js +76 -65
- data/vendor/assets/javascripts/moment/x-pseudo.js +69 -54
- data/vendor/assets/javascripts/moment/yo.js +49 -46
- data/vendor/assets/javascripts/moment/zh-cn.js +115 -96
- data/vendor/assets/javascripts/moment/zh-hk.js +95 -89
- data/vendor/assets/javascripts/moment/zh-mo.js +111 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +94 -89
- data/vendor/assets/javascripts/moment.js +5030 -3880
- metadata +64 -31
- 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
@@ -10,129 +10,139 @@
|
|
10
10
|
factory(global.moment)
|
11
11
|
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
|
+
//! moment.js locale configuration
|
13
14
|
|
14
|
-
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
}
|
24
|
-
function processFutureTime(string) {
|
25
|
-
var number = string.substr(0, string.indexOf(' '));
|
26
|
-
if (eifelerRegelAppliesToNumber(number)) {
|
27
|
-
return 'a ' + string;
|
15
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
16
|
+
var format = {
|
17
|
+
m: ['eng Minutt', 'enger Minutt'],
|
18
|
+
h: ['eng Stonn', 'enger Stonn'],
|
19
|
+
d: ['een Dag', 'engem Dag'],
|
20
|
+
M: ['ee Mount', 'engem Mount'],
|
21
|
+
y: ['ee Joer', 'engem Joer'],
|
22
|
+
};
|
23
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
28
24
|
}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
if (eifelerRegelAppliesToNumber(number)) {
|
34
|
-
return 'viru ' + string;
|
35
|
-
}
|
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;
|
49
|
-
}
|
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) {
|
56
|
-
return true;
|
25
|
+
function processFutureTime(string) {
|
26
|
+
var number = string.substr(0, string.indexOf(' '));
|
27
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
28
|
+
return 'a ' + string;
|
57
29
|
}
|
58
|
-
return
|
59
|
-
}
|
60
|
-
|
61
|
-
var
|
62
|
-
if (
|
63
|
-
return
|
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;
|
30
|
+
return 'an ' + string;
|
31
|
+
}
|
32
|
+
function processPastTime(string) {
|
33
|
+
var number = string.substr(0, string.indexOf(' '));
|
34
|
+
if (eifelerRegelAppliesToNumber(number)) {
|
35
|
+
return 'viru ' + string;
|
70
36
|
}
|
71
|
-
return
|
72
|
-
} else {
|
73
|
-
// Anything larger than 4 digits: recursively check first n-3 digits
|
74
|
-
number = number / 1000;
|
75
|
-
return eifelerRegelAppliesToNumber(number);
|
37
|
+
return 'virun ' + string;
|
76
38
|
}
|
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
|
-
case 2:
|
105
|
-
case 4:
|
106
|
-
return '[Leschten] dddd [um] LT';
|
107
|
-
default:
|
108
|
-
return '[Leschte] dddd [um] LT';
|
39
|
+
/**
|
40
|
+
* Returns true if the word before the given number loses the '-n' ending.
|
41
|
+
* e.g. 'an 10 Deeg' but 'a 5 Deeg'
|
42
|
+
*
|
43
|
+
* @param number {integer}
|
44
|
+
* @returns {boolean}
|
45
|
+
*/
|
46
|
+
function eifelerRegelAppliesToNumber(number) {
|
47
|
+
number = parseInt(number, 10);
|
48
|
+
if (isNaN(number)) {
|
49
|
+
return false;
|
50
|
+
}
|
51
|
+
if (number < 0) {
|
52
|
+
// Negative Number --> always true
|
53
|
+
return true;
|
54
|
+
} else if (number < 10) {
|
55
|
+
// Only 1 digit
|
56
|
+
if (4 <= number && number <= 7) {
|
57
|
+
return true;
|
58
|
+
}
|
59
|
+
return false;
|
60
|
+
} else if (number < 100) {
|
61
|
+
// 2 digits
|
62
|
+
var lastDigit = number % 10,
|
63
|
+
firstDigit = number / 10;
|
64
|
+
if (lastDigit === 0) {
|
65
|
+
return eifelerRegelAppliesToNumber(firstDigit);
|
109
66
|
}
|
67
|
+
return eifelerRegelAppliesToNumber(lastDigit);
|
68
|
+
} else if (number < 10000) {
|
69
|
+
// 3 or 4 digits --> recursively check first digit
|
70
|
+
while (number >= 10) {
|
71
|
+
number = number / 10;
|
72
|
+
}
|
73
|
+
return eifelerRegelAppliesToNumber(number);
|
74
|
+
} else {
|
75
|
+
// Anything larger than 4 digits: recursively check first n-3 digits
|
76
|
+
number = number / 1000;
|
77
|
+
return eifelerRegelAppliesToNumber(number);
|
110
78
|
}
|
111
|
-
},
|
112
|
-
relativeTime : {
|
113
|
-
future : processFutureTime,
|
114
|
-
past : processPastTime,
|
115
|
-
s : 'e puer Sekonnen',
|
116
|
-
ss : '%d Sekonnen',
|
117
|
-
m : processRelativeTime,
|
118
|
-
mm : '%d Minutten',
|
119
|
-
h : processRelativeTime,
|
120
|
-
hh : '%d Stonnen',
|
121
|
-
d : processRelativeTime,
|
122
|
-
dd : '%d Deeg',
|
123
|
-
M : processRelativeTime,
|
124
|
-
MM : '%d Méint',
|
125
|
-
y : processRelativeTime,
|
126
|
-
yy : '%d Joer'
|
127
|
-
},
|
128
|
-
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
129
|
-
ordinal: '%d.',
|
130
|
-
week: {
|
131
|
-
dow: 1, // Monday is the first day of the week.
|
132
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
133
79
|
}
|
134
|
-
});
|
135
80
|
|
136
|
-
|
81
|
+
var lb = moment.defineLocale('lb', {
|
82
|
+
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
|
83
|
+
'_'
|
84
|
+
),
|
85
|
+
monthsShort:
|
86
|
+
'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
|
87
|
+
'_'
|
88
|
+
),
|
89
|
+
monthsParseExact: true,
|
90
|
+
weekdays:
|
91
|
+
'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
|
92
|
+
'_'
|
93
|
+
),
|
94
|
+
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
|
95
|
+
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
|
96
|
+
weekdaysParseExact: true,
|
97
|
+
longDateFormat: {
|
98
|
+
LT: 'H:mm [Auer]',
|
99
|
+
LTS: 'H:mm:ss [Auer]',
|
100
|
+
L: 'DD.MM.YYYY',
|
101
|
+
LL: 'D. MMMM YYYY',
|
102
|
+
LLL: 'D. MMMM YYYY H:mm [Auer]',
|
103
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
|
104
|
+
},
|
105
|
+
calendar: {
|
106
|
+
sameDay: '[Haut um] LT',
|
107
|
+
sameElse: 'L',
|
108
|
+
nextDay: '[Muer um] LT',
|
109
|
+
nextWeek: 'dddd [um] LT',
|
110
|
+
lastDay: '[Gëschter um] LT',
|
111
|
+
lastWeek: function () {
|
112
|
+
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
|
113
|
+
switch (this.day()) {
|
114
|
+
case 2:
|
115
|
+
case 4:
|
116
|
+
return '[Leschten] dddd [um] LT';
|
117
|
+
default:
|
118
|
+
return '[Leschte] dddd [um] LT';
|
119
|
+
}
|
120
|
+
},
|
121
|
+
},
|
122
|
+
relativeTime: {
|
123
|
+
future: processFutureTime,
|
124
|
+
past: processPastTime,
|
125
|
+
s: 'e puer Sekonnen',
|
126
|
+
ss: '%d Sekonnen',
|
127
|
+
m: processRelativeTime,
|
128
|
+
mm: '%d Minutten',
|
129
|
+
h: processRelativeTime,
|
130
|
+
hh: '%d Stonnen',
|
131
|
+
d: processRelativeTime,
|
132
|
+
dd: '%d Deeg',
|
133
|
+
M: processRelativeTime,
|
134
|
+
MM: '%d Méint',
|
135
|
+
y: processRelativeTime,
|
136
|
+
yy: '%d Joer',
|
137
|
+
},
|
138
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
139
|
+
ordinal: '%d.',
|
140
|
+
week: {
|
141
|
+
dow: 1, // Monday is the first day of the week.
|
142
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
143
|
+
},
|
144
|
+
});
|
145
|
+
|
146
|
+
return lb;
|
137
147
|
|
138
148
|
})));
|
@@ -9,63 +9,69 @@
|
|
9
9
|
factory(global.moment)
|
10
10
|
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
12
13
|
|
13
|
-
var lo = moment.defineLocale('lo', {
|
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
|
-
|
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
|
-
}
|
14
|
+
var lo = moment.defineLocale('lo', {
|
15
|
+
months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
|
16
|
+
'_'
|
17
|
+
),
|
18
|
+
monthsShort:
|
19
|
+
'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
|
20
|
+
'_'
|
21
|
+
),
|
22
|
+
weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
23
|
+
weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
|
24
|
+
weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
|
25
|
+
weekdaysParseExact: true,
|
26
|
+
longDateFormat: {
|
27
|
+
LT: 'HH:mm',
|
28
|
+
LTS: 'HH:mm:ss',
|
29
|
+
L: 'DD/MM/YYYY',
|
30
|
+
LL: 'D MMMM YYYY',
|
31
|
+
LLL: 'D MMMM YYYY HH:mm',
|
32
|
+
LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
|
33
|
+
},
|
34
|
+
meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
|
35
|
+
isPM: function (input) {
|
36
|
+
return input === 'ຕອນແລງ';
|
37
|
+
},
|
38
|
+
meridiem: function (hour, minute, isLower) {
|
39
|
+
if (hour < 12) {
|
40
|
+
return 'ຕອນເຊົ້າ';
|
41
|
+
} else {
|
42
|
+
return 'ຕອນແລງ';
|
43
|
+
}
|
44
|
+
},
|
45
|
+
calendar: {
|
46
|
+
sameDay: '[ມື້ນີ້ເວລາ] LT',
|
47
|
+
nextDay: '[ມື້ອື່ນເວລາ] LT',
|
48
|
+
nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
|
49
|
+
lastDay: '[ມື້ວານນີ້ເວລາ] LT',
|
50
|
+
lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
|
51
|
+
sameElse: 'L',
|
52
|
+
},
|
53
|
+
relativeTime: {
|
54
|
+
future: 'ອີກ %s',
|
55
|
+
past: '%sຜ່ານມາ',
|
56
|
+
s: 'ບໍ່ເທົ່າໃດວິນາທີ',
|
57
|
+
ss: '%d ວິນາທີ',
|
58
|
+
m: '1 ນາທີ',
|
59
|
+
mm: '%d ນາທີ',
|
60
|
+
h: '1 ຊົ່ວໂມງ',
|
61
|
+
hh: '%d ຊົ່ວໂມງ',
|
62
|
+
d: '1 ມື້',
|
63
|
+
dd: '%d ມື້',
|
64
|
+
M: '1 ເດືອນ',
|
65
|
+
MM: '%d ເດືອນ',
|
66
|
+
y: '1 ປີ',
|
67
|
+
yy: '%d ປີ',
|
68
|
+
},
|
69
|
+
dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
|
70
|
+
ordinal: function (number) {
|
71
|
+
return 'ທີ່' + number;
|
72
|
+
},
|
73
|
+
});
|
68
74
|
|
69
|
-
return lo;
|
75
|
+
return lo;
|
70
76
|
|
71
77
|
})));
|
@@ -9,111 +9,128 @@
|
|
9
9
|
factory(global.moment)
|
10
10
|
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
12
13
|
|
13
|
-
var units = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
};
|
26
|
-
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
27
|
-
|
28
|
-
|
29
|
-
} else {
|
30
|
-
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
31
|
-
}
|
32
|
-
}
|
33
|
-
function translateSingular(number, withoutSuffix, key, isFuture) {
|
34
|
-
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
35
|
-
}
|
36
|
-
function special(number) {
|
37
|
-
return number % 10 === 0 || (number > 10 && number < 20);
|
38
|
-
}
|
39
|
-
function forms(key) {
|
40
|
-
return units[key].split('_');
|
41
|
-
}
|
42
|
-
function translate(number, withoutSuffix, key, isFuture) {
|
43
|
-
var result = number + ' ';
|
44
|
-
if (number === 1) {
|
45
|
-
return result + translateSingular(number, withoutSuffix, key[0], isFuture);
|
46
|
-
} else if (withoutSuffix) {
|
47
|
-
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
48
|
-
} else {
|
49
|
-
if (isFuture) {
|
50
|
-
return result + forms(key)[1];
|
14
|
+
var units = {
|
15
|
+
ss: 'sekundė_sekundžių_sekundes',
|
16
|
+
m: 'minutė_minutės_minutę',
|
17
|
+
mm: 'minutės_minučių_minutes',
|
18
|
+
h: 'valanda_valandos_valandą',
|
19
|
+
hh: 'valandos_valandų_valandas',
|
20
|
+
d: 'diena_dienos_dieną',
|
21
|
+
dd: 'dienos_dienų_dienas',
|
22
|
+
M: 'mėnuo_mėnesio_mėnesį',
|
23
|
+
MM: 'mėnesiai_mėnesių_mėnesius',
|
24
|
+
y: 'metai_metų_metus',
|
25
|
+
yy: 'metai_metų_metus',
|
26
|
+
};
|
27
|
+
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
28
|
+
if (withoutSuffix) {
|
29
|
+
return 'kelios sekundės';
|
51
30
|
} else {
|
52
|
-
return
|
31
|
+
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
53
32
|
}
|
54
33
|
}
|
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
|
-
calendar : {
|
84
|
-
sameDay : '[Šiandien] LT',
|
85
|
-
nextDay : '[Rytoj] LT',
|
86
|
-
nextWeek : 'dddd LT',
|
87
|
-
lastDay : '[Vakar] LT',
|
88
|
-
lastWeek : '[Praėjusį] dddd LT',
|
89
|
-
sameElse : 'L'
|
90
|
-
},
|
91
|
-
relativeTime : {
|
92
|
-
future : 'po %s',
|
93
|
-
past : 'prieš %s',
|
94
|
-
s : translateSeconds,
|
95
|
-
ss : translate,
|
96
|
-
m : translateSingular,
|
97
|
-
mm : translate,
|
98
|
-
h : translateSingular,
|
99
|
-
hh : translate,
|
100
|
-
d : translateSingular,
|
101
|
-
dd : translate,
|
102
|
-
M : translateSingular,
|
103
|
-
MM : translate,
|
104
|
-
y : translateSingular,
|
105
|
-
yy : translate
|
106
|
-
},
|
107
|
-
dayOfMonthOrdinalParse: /\d{1,2}-oji/,
|
108
|
-
ordinal : function (number) {
|
109
|
-
return number + '-oji';
|
110
|
-
},
|
111
|
-
week : {
|
112
|
-
dow : 1, // Monday is the first day of the week.
|
113
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
34
|
+
function translateSingular(number, withoutSuffix, key, isFuture) {
|
35
|
+
return withoutSuffix
|
36
|
+
? forms(key)[0]
|
37
|
+
: isFuture
|
38
|
+
? forms(key)[1]
|
39
|
+
: forms(key)[2];
|
40
|
+
}
|
41
|
+
function special(number) {
|
42
|
+
return number % 10 === 0 || (number > 10 && number < 20);
|
43
|
+
}
|
44
|
+
function forms(key) {
|
45
|
+
return units[key].split('_');
|
46
|
+
}
|
47
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
48
|
+
var result = number + ' ';
|
49
|
+
if (number === 1) {
|
50
|
+
return (
|
51
|
+
result + translateSingular(number, withoutSuffix, key[0], isFuture)
|
52
|
+
);
|
53
|
+
} else if (withoutSuffix) {
|
54
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
55
|
+
} else {
|
56
|
+
if (isFuture) {
|
57
|
+
return result + forms(key)[1];
|
58
|
+
} else {
|
59
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
60
|
+
}
|
61
|
+
}
|
114
62
|
}
|
115
|
-
|
63
|
+
var lt = moment.defineLocale('lt', {
|
64
|
+
months: {
|
65
|
+
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
|
66
|
+
'_'
|
67
|
+
),
|
68
|
+
standalone:
|
69
|
+
'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
|
70
|
+
'_'
|
71
|
+
),
|
72
|
+
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
|
73
|
+
},
|
74
|
+
monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
75
|
+
weekdays: {
|
76
|
+
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
|
77
|
+
'_'
|
78
|
+
),
|
79
|
+
standalone:
|
80
|
+
'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
|
81
|
+
'_'
|
82
|
+
),
|
83
|
+
isFormat: /dddd HH:mm/,
|
84
|
+
},
|
85
|
+
weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
|
86
|
+
weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
|
87
|
+
weekdaysParseExact: true,
|
88
|
+
longDateFormat: {
|
89
|
+
LT: 'HH:mm',
|
90
|
+
LTS: 'HH:mm:ss',
|
91
|
+
L: 'YYYY-MM-DD',
|
92
|
+
LL: 'YYYY [m.] MMMM D [d.]',
|
93
|
+
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
94
|
+
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
95
|
+
l: 'YYYY-MM-DD',
|
96
|
+
ll: 'YYYY [m.] MMMM D [d.]',
|
97
|
+
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
98
|
+
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
|
99
|
+
},
|
100
|
+
calendar: {
|
101
|
+
sameDay: '[Šiandien] LT',
|
102
|
+
nextDay: '[Rytoj] LT',
|
103
|
+
nextWeek: 'dddd LT',
|
104
|
+
lastDay: '[Vakar] LT',
|
105
|
+
lastWeek: '[Praėjusį] dddd LT',
|
106
|
+
sameElse: 'L',
|
107
|
+
},
|
108
|
+
relativeTime: {
|
109
|
+
future: 'po %s',
|
110
|
+
past: 'prieš %s',
|
111
|
+
s: translateSeconds,
|
112
|
+
ss: translate,
|
113
|
+
m: translateSingular,
|
114
|
+
mm: translate,
|
115
|
+
h: translateSingular,
|
116
|
+
hh: translate,
|
117
|
+
d: translateSingular,
|
118
|
+
dd: translate,
|
119
|
+
M: translateSingular,
|
120
|
+
MM: translate,
|
121
|
+
y: translateSingular,
|
122
|
+
yy: translate,
|
123
|
+
},
|
124
|
+
dayOfMonthOrdinalParse: /\d{1,2}-oji/,
|
125
|
+
ordinal: function (number) {
|
126
|
+
return number + '-oji';
|
127
|
+
},
|
128
|
+
week: {
|
129
|
+
dow: 1, // Monday is the first day of the week.
|
130
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
131
|
+
},
|
132
|
+
});
|
116
133
|
|
117
|
-
return lt;
|
134
|
+
return lt;
|
118
135
|
|
119
136
|
})));
|