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
@@ -9,101 +9,171 @@
|
|
9
9
|
factory(global.moment)
|
10
10
|
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
12
13
|
|
13
|
-
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
function specialMutationForYears(number) {
|
22
|
-
switch (lastNumber(number)) {
|
23
|
-
case 1:
|
24
|
-
case 3:
|
25
|
-
case 4:
|
26
|
-
case 5:
|
27
|
-
case 9:
|
28
|
-
return number + ' bloaz';
|
29
|
-
default:
|
30
|
-
return number + ' vloaz';
|
14
|
+
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
15
|
+
var format = {
|
16
|
+
mm: 'munutenn',
|
17
|
+
MM: 'miz',
|
18
|
+
dd: 'devezh',
|
19
|
+
};
|
20
|
+
return number + ' ' + mutation(format[key], number);
|
31
21
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
22
|
+
function specialMutationForYears(number) {
|
23
|
+
switch (lastNumber(number)) {
|
24
|
+
case 1:
|
25
|
+
case 3:
|
26
|
+
case 4:
|
27
|
+
case 5:
|
28
|
+
case 9:
|
29
|
+
return number + ' bloaz';
|
30
|
+
default:
|
31
|
+
return number + ' vloaz';
|
32
|
+
}
|
36
33
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
return
|
34
|
+
function lastNumber(number) {
|
35
|
+
if (number > 9) {
|
36
|
+
return lastNumber(number % 10);
|
37
|
+
}
|
38
|
+
return number;
|
42
39
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
'm': 'v',
|
48
|
-
'b': 'v',
|
49
|
-
'd': 'z'
|
50
|
-
};
|
51
|
-
if (mutationTable[text.charAt(0)] === undefined) {
|
40
|
+
function mutation(text, number) {
|
41
|
+
if (number === 2) {
|
42
|
+
return softMutation(text);
|
43
|
+
}
|
52
44
|
return text;
|
53
45
|
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
longDateFormat : {
|
65
|
-
LT : 'h[e]mm A',
|
66
|
-
LTS : 'h[e]mm:ss A',
|
67
|
-
L : 'DD/MM/YYYY',
|
68
|
-
LL : 'D [a viz] MMMM YYYY',
|
69
|
-
LLL : 'D [a viz] MMMM YYYY h[e]mm A',
|
70
|
-
LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
|
71
|
-
},
|
72
|
-
calendar : {
|
73
|
-
sameDay : '[Hiziv da] LT',
|
74
|
-
nextDay : '[Warc\'hoazh da] LT',
|
75
|
-
nextWeek : 'dddd [da] LT',
|
76
|
-
lastDay : '[Dec\'h da] LT',
|
77
|
-
lastWeek : 'dddd [paset da] LT',
|
78
|
-
sameElse : 'L'
|
79
|
-
},
|
80
|
-
relativeTime : {
|
81
|
-
future : 'a-benn %s',
|
82
|
-
past : '%s \'zo',
|
83
|
-
s : 'un nebeud segondennoù',
|
84
|
-
ss : '%d eilenn',
|
85
|
-
m : 'ur vunutenn',
|
86
|
-
mm : relativeTimeWithMutation,
|
87
|
-
h : 'un eur',
|
88
|
-
hh : '%d eur',
|
89
|
-
d : 'un devezh',
|
90
|
-
dd : relativeTimeWithMutation,
|
91
|
-
M : 'ur miz',
|
92
|
-
MM : relativeTimeWithMutation,
|
93
|
-
y : 'ur bloaz',
|
94
|
-
yy : specialMutationForYears
|
95
|
-
},
|
96
|
-
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
|
97
|
-
ordinal : function (number) {
|
98
|
-
var output = (number === 1) ? 'añ' : 'vet';
|
99
|
-
return number + output;
|
100
|
-
},
|
101
|
-
week : {
|
102
|
-
dow : 1, // Monday is the first day of the week.
|
103
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
46
|
+
function softMutation(text) {
|
47
|
+
var mutationTable = {
|
48
|
+
m: 'v',
|
49
|
+
b: 'v',
|
50
|
+
d: 'z',
|
51
|
+
};
|
52
|
+
if (mutationTable[text.charAt(0)] === undefined) {
|
53
|
+
return text;
|
54
|
+
}
|
55
|
+
return mutationTable[text.charAt(0)] + text.substring(1);
|
104
56
|
}
|
105
|
-
});
|
106
57
|
|
107
|
-
|
58
|
+
var monthsParse = [
|
59
|
+
/^gen/i,
|
60
|
+
/^c[ʼ\']hwe/i,
|
61
|
+
/^meu/i,
|
62
|
+
/^ebr/i,
|
63
|
+
/^mae/i,
|
64
|
+
/^(mez|eve)/i,
|
65
|
+
/^gou/i,
|
66
|
+
/^eos/i,
|
67
|
+
/^gwe/i,
|
68
|
+
/^her/i,
|
69
|
+
/^du/i,
|
70
|
+
/^ker/i,
|
71
|
+
],
|
72
|
+
monthsRegex =
|
73
|
+
/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
|
74
|
+
monthsStrictRegex =
|
75
|
+
/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
|
76
|
+
monthsShortStrictRegex =
|
77
|
+
/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
|
78
|
+
fullWeekdaysParse = [
|
79
|
+
/^sul/i,
|
80
|
+
/^lun/i,
|
81
|
+
/^meurzh/i,
|
82
|
+
/^merc[ʼ\']her/i,
|
83
|
+
/^yaou/i,
|
84
|
+
/^gwener/i,
|
85
|
+
/^sadorn/i,
|
86
|
+
],
|
87
|
+
shortWeekdaysParse = [
|
88
|
+
/^Sul/i,
|
89
|
+
/^Lun/i,
|
90
|
+
/^Meu/i,
|
91
|
+
/^Mer/i,
|
92
|
+
/^Yao/i,
|
93
|
+
/^Gwe/i,
|
94
|
+
/^Sad/i,
|
95
|
+
],
|
96
|
+
minWeekdaysParse = [
|
97
|
+
/^Su/i,
|
98
|
+
/^Lu/i,
|
99
|
+
/^Me([^r]|$)/i,
|
100
|
+
/^Mer/i,
|
101
|
+
/^Ya/i,
|
102
|
+
/^Gw/i,
|
103
|
+
/^Sa/i,
|
104
|
+
];
|
105
|
+
|
106
|
+
var br = moment.defineLocale('br', {
|
107
|
+
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
|
108
|
+
'_'
|
109
|
+
),
|
110
|
+
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
|
111
|
+
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
|
112
|
+
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
113
|
+
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
114
|
+
weekdaysParse: minWeekdaysParse,
|
115
|
+
fullWeekdaysParse: fullWeekdaysParse,
|
116
|
+
shortWeekdaysParse: shortWeekdaysParse,
|
117
|
+
minWeekdaysParse: minWeekdaysParse,
|
118
|
+
|
119
|
+
monthsRegex: monthsRegex,
|
120
|
+
monthsShortRegex: monthsRegex,
|
121
|
+
monthsStrictRegex: monthsStrictRegex,
|
122
|
+
monthsShortStrictRegex: monthsShortStrictRegex,
|
123
|
+
monthsParse: monthsParse,
|
124
|
+
longMonthsParse: monthsParse,
|
125
|
+
shortMonthsParse: monthsParse,
|
126
|
+
|
127
|
+
longDateFormat: {
|
128
|
+
LT: 'HH:mm',
|
129
|
+
LTS: 'HH:mm:ss',
|
130
|
+
L: 'DD/MM/YYYY',
|
131
|
+
LL: 'D [a viz] MMMM YYYY',
|
132
|
+
LLL: 'D [a viz] MMMM YYYY HH:mm',
|
133
|
+
LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
|
134
|
+
},
|
135
|
+
calendar: {
|
136
|
+
sameDay: '[Hiziv da] LT',
|
137
|
+
nextDay: '[Warcʼhoazh da] LT',
|
138
|
+
nextWeek: 'dddd [da] LT',
|
139
|
+
lastDay: '[Decʼh da] LT',
|
140
|
+
lastWeek: 'dddd [paset da] LT',
|
141
|
+
sameElse: 'L',
|
142
|
+
},
|
143
|
+
relativeTime: {
|
144
|
+
future: 'a-benn %s',
|
145
|
+
past: '%s ʼzo',
|
146
|
+
s: 'un nebeud segondennoù',
|
147
|
+
ss: '%d eilenn',
|
148
|
+
m: 'ur vunutenn',
|
149
|
+
mm: relativeTimeWithMutation,
|
150
|
+
h: 'un eur',
|
151
|
+
hh: '%d eur',
|
152
|
+
d: 'un devezh',
|
153
|
+
dd: relativeTimeWithMutation,
|
154
|
+
M: 'ur miz',
|
155
|
+
MM: relativeTimeWithMutation,
|
156
|
+
y: 'ur bloaz',
|
157
|
+
yy: specialMutationForYears,
|
158
|
+
},
|
159
|
+
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
|
160
|
+
ordinal: function (number) {
|
161
|
+
var output = number === 1 ? 'añ' : 'vet';
|
162
|
+
return number + output;
|
163
|
+
},
|
164
|
+
week: {
|
165
|
+
dow: 1, // Monday is the first day of the week.
|
166
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
167
|
+
},
|
168
|
+
meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
|
169
|
+
isPM: function (token) {
|
170
|
+
return token === 'g.m.';
|
171
|
+
},
|
172
|
+
meridiem: function (hour, minute, isLower) {
|
173
|
+
return hour < 12 ? 'a.m.' : 'g.m.';
|
174
|
+
},
|
175
|
+
});
|
176
|
+
|
177
|
+
return br;
|
108
178
|
|
109
179
|
})));
|
@@ -10,144 +10,152 @@
|
|
10
10
|
factory(global.moment)
|
11
11
|
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
|
+
//! moment.js locale configuration
|
13
14
|
|
14
|
-
function translate(number, withoutSuffix, key) {
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
15
|
+
function translate(number, withoutSuffix, key) {
|
16
|
+
var result = number + ' ';
|
17
|
+
switch (key) {
|
18
|
+
case 'ss':
|
19
|
+
if (number === 1) {
|
20
|
+
result += 'sekunda';
|
21
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
22
|
+
result += 'sekunde';
|
23
|
+
} else {
|
24
|
+
result += 'sekundi';
|
25
|
+
}
|
26
|
+
return result;
|
27
|
+
case 'm':
|
28
|
+
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
29
|
+
case 'mm':
|
30
|
+
if (number === 1) {
|
31
|
+
result += 'minuta';
|
32
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
33
|
+
result += 'minute';
|
34
|
+
} else {
|
35
|
+
result += 'minuta';
|
36
|
+
}
|
37
|
+
return result;
|
38
|
+
case 'h':
|
39
|
+
return withoutSuffix ? 'jedan sat' : 'jednog sata';
|
40
|
+
case 'hh':
|
41
|
+
if (number === 1) {
|
42
|
+
result += 'sat';
|
43
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
44
|
+
result += 'sata';
|
45
|
+
} else {
|
46
|
+
result += 'sati';
|
47
|
+
}
|
48
|
+
return result;
|
49
|
+
case 'dd':
|
50
|
+
if (number === 1) {
|
51
|
+
result += 'dan';
|
52
|
+
} else {
|
53
|
+
result += 'dana';
|
54
|
+
}
|
55
|
+
return result;
|
56
|
+
case 'MM':
|
57
|
+
if (number === 1) {
|
58
|
+
result += 'mjesec';
|
59
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
60
|
+
result += 'mjeseca';
|
61
|
+
} else {
|
62
|
+
result += 'mjeseci';
|
63
|
+
}
|
64
|
+
return result;
|
65
|
+
case 'yy':
|
66
|
+
if (number === 1) {
|
67
|
+
result += 'godina';
|
68
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
69
|
+
result += 'godine';
|
70
|
+
} else {
|
71
|
+
result += 'godina';
|
72
|
+
}
|
73
|
+
return result;
|
74
|
+
}
|
73
75
|
}
|
74
|
-
}
|
75
76
|
|
76
|
-
var bs = moment.defineLocale('bs', {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
return '[u] [nedjelju] [u] LT';
|
99
|
-
case 3:
|
100
|
-
return '[u] [srijedu] [u] LT';
|
101
|
-
case 6:
|
102
|
-
return '[u] [subotu] [u] LT';
|
103
|
-
case 1:
|
104
|
-
case 2:
|
105
|
-
case 4:
|
106
|
-
case 5:
|
107
|
-
return '[u] dddd [u] LT';
|
108
|
-
}
|
77
|
+
var bs = moment.defineLocale('bs', {
|
78
|
+
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
|
79
|
+
'_'
|
80
|
+
),
|
81
|
+
monthsShort:
|
82
|
+
'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
|
83
|
+
'_'
|
84
|
+
),
|
85
|
+
monthsParseExact: true,
|
86
|
+
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
|
87
|
+
'_'
|
88
|
+
),
|
89
|
+
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
90
|
+
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
91
|
+
weekdaysParseExact: true,
|
92
|
+
longDateFormat: {
|
93
|
+
LT: 'H:mm',
|
94
|
+
LTS: 'H:mm:ss',
|
95
|
+
L: 'DD.MM.YYYY',
|
96
|
+
LL: 'D. MMMM YYYY',
|
97
|
+
LLL: 'D. MMMM YYYY H:mm',
|
98
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
109
99
|
},
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
100
|
+
calendar: {
|
101
|
+
sameDay: '[danas u] LT',
|
102
|
+
nextDay: '[sutra u] LT',
|
103
|
+
nextWeek: function () {
|
104
|
+
switch (this.day()) {
|
105
|
+
case 0:
|
106
|
+
return '[u] [nedjelju] [u] LT';
|
107
|
+
case 3:
|
108
|
+
return '[u] [srijedu] [u] LT';
|
109
|
+
case 6:
|
110
|
+
return '[u] [subotu] [u] LT';
|
111
|
+
case 1:
|
112
|
+
case 2:
|
113
|
+
case 4:
|
114
|
+
case 5:
|
115
|
+
return '[u] dddd [u] LT';
|
116
|
+
}
|
117
|
+
},
|
118
|
+
lastDay: '[jučer u] LT',
|
119
|
+
lastWeek: function () {
|
120
|
+
switch (this.day()) {
|
121
|
+
case 0:
|
122
|
+
case 3:
|
123
|
+
return '[prošlu] dddd [u] LT';
|
124
|
+
case 6:
|
125
|
+
return '[prošle] [subote] [u] LT';
|
126
|
+
case 1:
|
127
|
+
case 2:
|
128
|
+
case 4:
|
129
|
+
case 5:
|
130
|
+
return '[prošli] dddd [u] LT';
|
131
|
+
}
|
132
|
+
},
|
133
|
+
sameElse: 'L',
|
124
134
|
},
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
}
|
149
|
-
});
|
135
|
+
relativeTime: {
|
136
|
+
future: 'za %s',
|
137
|
+
past: 'prije %s',
|
138
|
+
s: 'par sekundi',
|
139
|
+
ss: translate,
|
140
|
+
m: translate,
|
141
|
+
mm: translate,
|
142
|
+
h: translate,
|
143
|
+
hh: translate,
|
144
|
+
d: 'dan',
|
145
|
+
dd: translate,
|
146
|
+
M: 'mjesec',
|
147
|
+
MM: translate,
|
148
|
+
y: 'godinu',
|
149
|
+
yy: translate,
|
150
|
+
},
|
151
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
152
|
+
ordinal: '%d.',
|
153
|
+
week: {
|
154
|
+
dow: 1, // Monday is the first day of the week.
|
155
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
156
|
+
},
|
157
|
+
});
|
150
158
|
|
151
|
-
return bs;
|
159
|
+
return bs;
|
152
160
|
|
153
161
|
})));
|