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,27 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Breton [br]
|
3
|
+
//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
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);
|
21
|
-
}
|
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';
|
22
11
|
|
23
|
-
|
24
|
-
|
12
|
+
|
13
|
+
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
14
|
+
var format = {
|
15
|
+
'mm': 'munutenn',
|
16
|
+
'MM': 'miz',
|
17
|
+
'dd': 'devezh'
|
18
|
+
};
|
19
|
+
return number + ' ' + mutation(format[key], number);
|
20
|
+
}
|
21
|
+
function specialMutationForYears(number) {
|
22
|
+
switch (lastNumber(number)) {
|
25
23
|
case 1:
|
26
24
|
case 3:
|
27
25
|
case 4:
|
@@ -30,80 +28,82 @@
|
|
30
28
|
return number + ' bloaz';
|
31
29
|
default:
|
32
30
|
return number + ' vloaz';
|
33
|
-
}
|
34
31
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
}
|
40
|
-
return number;
|
32
|
+
}
|
33
|
+
function lastNumber(number) {
|
34
|
+
if (number > 9) {
|
35
|
+
return lastNumber(number % 10);
|
41
36
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
37
|
+
return number;
|
38
|
+
}
|
39
|
+
function mutation(text, number) {
|
40
|
+
if (number === 2) {
|
41
|
+
return softMutation(text);
|
42
|
+
}
|
43
|
+
return text;
|
44
|
+
}
|
45
|
+
function softMutation(text) {
|
46
|
+
var mutationTable = {
|
47
|
+
'm': 'v',
|
48
|
+
'b': 'v',
|
49
|
+
'd': 'z'
|
50
|
+
};
|
51
|
+
if (mutationTable[text.charAt(0)] === undefined) {
|
47
52
|
return text;
|
48
53
|
}
|
54
|
+
return mutationTable[text.charAt(0)] + text.substring(1);
|
55
|
+
}
|
49
56
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
var br = moment.defineLocale('br', {
|
58
|
+
months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
|
59
|
+
monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
|
60
|
+
weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
|
61
|
+
weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
62
|
+
weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
63
|
+
weekdaysParseExact : true,
|
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.
|
60
104
|
}
|
105
|
+
});
|
106
|
+
|
107
|
+
return br;
|
61
108
|
|
62
|
-
|
63
|
-
months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
|
64
|
-
monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
|
65
|
-
weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
|
66
|
-
weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
67
|
-
weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
68
|
-
longDateFormat : {
|
69
|
-
LT : 'h[e]mm A',
|
70
|
-
LTS : 'h[e]mm:ss A',
|
71
|
-
L : 'DD/MM/YYYY',
|
72
|
-
LL : 'D [a viz] MMMM YYYY',
|
73
|
-
LLL : 'D [a viz] MMMM YYYY LT',
|
74
|
-
LLLL : 'dddd, D [a viz] MMMM YYYY LT'
|
75
|
-
},
|
76
|
-
calendar : {
|
77
|
-
sameDay : '[Hiziv da] LT',
|
78
|
-
nextDay : '[Warc\'hoazh da] LT',
|
79
|
-
nextWeek : 'dddd [da] LT',
|
80
|
-
lastDay : '[Dec\'h da] LT',
|
81
|
-
lastWeek : 'dddd [paset da] LT',
|
82
|
-
sameElse : 'L'
|
83
|
-
},
|
84
|
-
relativeTime : {
|
85
|
-
future : 'a-benn %s',
|
86
|
-
past : '%s \'zo',
|
87
|
-
s : 'un nebeud segondennoù',
|
88
|
-
m : 'ur vunutenn',
|
89
|
-
mm : relativeTimeWithMutation,
|
90
|
-
h : 'un eur',
|
91
|
-
hh : '%d eur',
|
92
|
-
d : 'un devezh',
|
93
|
-
dd : relativeTimeWithMutation,
|
94
|
-
M : 'ur miz',
|
95
|
-
MM : relativeTimeWithMutation,
|
96
|
-
y : 'ur bloaz',
|
97
|
-
yy : specialMutationForYears
|
98
|
-
},
|
99
|
-
ordinalParse: /\d{1,2}(añ|vet)/,
|
100
|
-
ordinal : function (number) {
|
101
|
-
var output = (number === 1) ? 'añ' : 'vet';
|
102
|
-
return number + output;
|
103
|
-
},
|
104
|
-
week : {
|
105
|
-
dow : 1, // Monday is the first day of the week.
|
106
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
107
|
-
}
|
108
|
-
});
|
109
|
-
}));
|
109
|
+
})));
|
@@ -1,20 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Bosnian [bs]
|
3
|
+
//! author : Nedim Cholich : https://github.com/frontyard
|
4
|
+
//! based on (hr) translation by Bojan Marković
|
5
5
|
|
6
|
-
(function (factory) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
;(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
8
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
|
+
factory(global.moment)
|
11
|
+
}(this, (function (moment) { 'use strict';
|
12
|
+
|
13
|
+
|
14
|
+
function translate(number, withoutSuffix, key) {
|
15
|
+
var result = number + ' ';
|
16
|
+
switch (key) {
|
17
|
+
case 'ss':
|
18
|
+
if (number === 1) {
|
19
|
+
result += 'sekunda';
|
20
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
21
|
+
result += 'sekunde';
|
22
|
+
} else {
|
23
|
+
result += 'sekundi';
|
24
|
+
}
|
25
|
+
return result;
|
18
26
|
case 'm':
|
19
27
|
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
20
28
|
case 'mm':
|
@@ -62,29 +70,30 @@
|
|
62
70
|
result += 'godina';
|
63
71
|
}
|
64
72
|
return result;
|
65
|
-
}
|
66
73
|
}
|
74
|
+
}
|
67
75
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
76
|
+
var bs = moment.defineLocale('bs', {
|
77
|
+
months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
|
78
|
+
monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
|
79
|
+
monthsParseExact: true,
|
80
|
+
weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
81
|
+
weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
82
|
+
weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
|
83
|
+
weekdaysParseExact : true,
|
84
|
+
longDateFormat : {
|
85
|
+
LT : 'H:mm',
|
86
|
+
LTS : 'H:mm:ss',
|
87
|
+
L : 'DD.MM.YYYY',
|
88
|
+
LL : 'D. MMMM YYYY',
|
89
|
+
LLL : 'D. MMMM YYYY H:mm',
|
90
|
+
LLLL : 'dddd, D. MMMM YYYY H:mm'
|
91
|
+
},
|
92
|
+
calendar : {
|
93
|
+
sameDay : '[danas u] LT',
|
94
|
+
nextDay : '[sutra u] LT',
|
95
|
+
nextWeek : function () {
|
96
|
+
switch (this.day()) {
|
88
97
|
case 0:
|
89
98
|
return '[u] [nedjelju] [u] LT';
|
90
99
|
case 3:
|
@@ -96,11 +105,11 @@
|
|
96
105
|
case 4:
|
97
106
|
case 5:
|
98
107
|
return '[u] dddd [u] LT';
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
108
|
+
}
|
109
|
+
},
|
110
|
+
lastDay : '[jučer u] LT',
|
111
|
+
lastWeek : function () {
|
112
|
+
switch (this.day()) {
|
104
113
|
case 0:
|
105
114
|
case 3:
|
106
115
|
return '[prošlu] dddd [u] LT';
|
@@ -111,30 +120,34 @@
|
|
111
120
|
case 4:
|
112
121
|
case 5:
|
113
122
|
return '[prošli] dddd [u] LT';
|
114
|
-
|
115
|
-
},
|
116
|
-
sameElse : 'L'
|
117
|
-
},
|
118
|
-
relativeTime : {
|
119
|
-
future : 'za %s',
|
120
|
-
past : 'prije %s',
|
121
|
-
s : 'par sekundi',
|
122
|
-
m : translate,
|
123
|
-
mm : translate,
|
124
|
-
h : translate,
|
125
|
-
hh : translate,
|
126
|
-
d : 'dan',
|
127
|
-
dd : translate,
|
128
|
-
M : 'mjesec',
|
129
|
-
MM : translate,
|
130
|
-
y : 'godinu',
|
131
|
-
yy : translate
|
123
|
+
}
|
132
124
|
},
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
125
|
+
sameElse : 'L'
|
126
|
+
},
|
127
|
+
relativeTime : {
|
128
|
+
future : 'za %s',
|
129
|
+
past : 'prije %s',
|
130
|
+
s : 'par sekundi',
|
131
|
+
ss : translate,
|
132
|
+
m : translate,
|
133
|
+
mm : translate,
|
134
|
+
h : translate,
|
135
|
+
hh : translate,
|
136
|
+
d : 'dan',
|
137
|
+
dd : translate,
|
138
|
+
M : 'mjesec',
|
139
|
+
MM : translate,
|
140
|
+
y : 'godinu',
|
141
|
+
yy : translate
|
142
|
+
},
|
143
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
144
|
+
ordinal : '%d.',
|
145
|
+
week : {
|
146
|
+
dow : 1, // Monday is the first day of the week.
|
147
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
return bs;
|
152
|
+
|
153
|
+
})));
|
@@ -1,77 +1,89 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Catalan [ca]
|
3
|
+
//! author : Juan G. Hurtado : https://github.com/juanghurtado
|
4
4
|
|
5
|
-
(function (factory) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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 ca = moment.defineLocale('ca', {
|
14
|
+
months : {
|
15
|
+
standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
|
16
|
+
format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
|
17
|
+
isFormat: /D[oD]?(\s)+MMMM/
|
18
|
+
},
|
19
|
+
monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
|
20
|
+
monthsParseExact : true,
|
21
|
+
weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
|
22
|
+
weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
|
23
|
+
weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
|
24
|
+
weekdaysParseExact : true,
|
25
|
+
longDateFormat : {
|
26
|
+
LT : 'H:mm',
|
27
|
+
LTS : 'H:mm:ss',
|
28
|
+
L : 'DD/MM/YYYY',
|
29
|
+
LL : 'D MMMM [de] YYYY',
|
30
|
+
ll : 'D MMM YYYY',
|
31
|
+
LLL : 'D MMMM [de] YYYY [a les] H:mm',
|
32
|
+
lll : 'D MMM YYYY, H:mm',
|
33
|
+
LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
|
34
|
+
llll : 'ddd D MMM YYYY, H:mm'
|
35
|
+
},
|
36
|
+
calendar : {
|
37
|
+
sameDay : function () {
|
38
|
+
return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
39
|
+
},
|
40
|
+
nextDay : function () {
|
41
|
+
return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
27
42
|
},
|
28
|
-
|
29
|
-
|
30
|
-
return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
31
|
-
},
|
32
|
-
nextDay : function () {
|
33
|
-
return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
34
|
-
},
|
35
|
-
nextWeek : function () {
|
36
|
-
return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
37
|
-
},
|
38
|
-
lastDay : function () {
|
39
|
-
return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
40
|
-
},
|
41
|
-
lastWeek : function () {
|
42
|
-
return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
43
|
-
},
|
44
|
-
sameElse : 'L'
|
43
|
+
nextWeek : function () {
|
44
|
+
return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
45
45
|
},
|
46
|
-
|
47
|
-
|
48
|
-
past : 'fa %s',
|
49
|
-
s : 'uns segons',
|
50
|
-
m : 'un minut',
|
51
|
-
mm : '%d minuts',
|
52
|
-
h : 'una hora',
|
53
|
-
hh : '%d hores',
|
54
|
-
d : 'un dia',
|
55
|
-
dd : '%d dies',
|
56
|
-
M : 'un mes',
|
57
|
-
MM : '%d mesos',
|
58
|
-
y : 'un any',
|
59
|
-
yy : '%d anys'
|
46
|
+
lastDay : function () {
|
47
|
+
return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
60
48
|
},
|
61
|
-
|
62
|
-
|
63
|
-
var output = (number === 1) ? 'r' :
|
64
|
-
(number === 2) ? 'n' :
|
65
|
-
(number === 3) ? 'r' :
|
66
|
-
(number === 4) ? 't' : 'è';
|
67
|
-
if (period === 'w' || period === 'W') {
|
68
|
-
output = 'a';
|
69
|
-
}
|
70
|
-
return number + output;
|
49
|
+
lastWeek : function () {
|
50
|
+
return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
71
51
|
},
|
72
|
-
|
73
|
-
|
74
|
-
|
52
|
+
sameElse : 'L'
|
53
|
+
},
|
54
|
+
relativeTime : {
|
55
|
+
future : 'd\'aquí %s',
|
56
|
+
past : 'fa %s',
|
57
|
+
s : 'uns segons',
|
58
|
+
ss : '%d segons',
|
59
|
+
m : 'un minut',
|
60
|
+
mm : '%d minuts',
|
61
|
+
h : 'una hora',
|
62
|
+
hh : '%d hores',
|
63
|
+
d : 'un dia',
|
64
|
+
dd : '%d dies',
|
65
|
+
M : 'un mes',
|
66
|
+
MM : '%d mesos',
|
67
|
+
y : 'un any',
|
68
|
+
yy : '%d anys'
|
69
|
+
},
|
70
|
+
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
71
|
+
ordinal : function (number, period) {
|
72
|
+
var output = (number === 1) ? 'r' :
|
73
|
+
(number === 2) ? 'n' :
|
74
|
+
(number === 3) ? 'r' :
|
75
|
+
(number === 4) ? 't' : 'è';
|
76
|
+
if (period === 'w' || period === 'W') {
|
77
|
+
output = 'a';
|
75
78
|
}
|
76
|
-
|
77
|
-
}
|
79
|
+
return number + output;
|
80
|
+
},
|
81
|
+
week : {
|
82
|
+
dow : 1, // Monday is the first day of the week.
|
83
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
return ca;
|
88
|
+
|
89
|
+
})));
|