momentjs-rails 2.20.1 → 2.29.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/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/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment/af.js +51 -54
- data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
- data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
- data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
- data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
- data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
- data/vendor/assets/javascripts/moment/ar.js +158 -112
- data/vendor/assets/javascripts/moment/az.js +52 -57
- data/vendor/assets/javascripts/moment/be.js +69 -63
- data/vendor/assets/javascripts/moment/bg.js +49 -53
- data/vendor/assets/javascripts/moment/bm.js +43 -51
- data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
- data/vendor/assets/javascripts/moment/bn.js +76 -78
- data/vendor/assets/javascripts/moment/bo.js +80 -78
- data/vendor/assets/javascripts/moment/br.js +115 -59
- data/vendor/assets/javascripts/moment/bs.js +48 -52
- data/vendor/assets/javascripts/moment/ca.js +76 -68
- data/vendor/assets/javascripts/moment/cs.js +80 -89
- data/vendor/assets/javascripts/moment/cv.js +45 -47
- data/vendor/assets/javascripts/moment/cy.js +41 -26
- data/vendor/assets/javascripts/moment/da.js +43 -51
- data/vendor/assets/javascripts/moment/de-at.js +53 -54
- data/vendor/assets/javascripts/moment/de-ch.js +54 -55
- data/vendor/assets/javascripts/moment/de.js +53 -54
- data/vendor/assets/javascripts/moment/dv.js +64 -75
- data/vendor/assets/javascripts/moment/el.js +63 -60
- data/vendor/assets/javascripts/moment/en-au.js +55 -55
- data/vendor/assets/javascripts/moment/en-ca.js +52 -52
- data/vendor/assets/javascripts/moment/en-gb.js +55 -55
- data/vendor/assets/javascripts/moment/en-ie.js +55 -55
- data/vendor/assets/javascripts/moment/en-il.js +64 -0
- data/vendor/assets/javascripts/moment/en-in.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +55 -55
- data/vendor/assets/javascripts/moment/en-sg.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +46 -52
- data/vendor/assets/javascripts/moment/es-do.js +75 -63
- data/vendor/assets/javascripts/moment/es-mx.js +106 -0
- data/vendor/assets/javascripts/moment/es-us.js +83 -61
- data/vendor/assets/javascripts/moment/es.js +83 -70
- data/vendor/assets/javascripts/moment/et.js +58 -62
- data/vendor/assets/javascripts/moment/eu.js +53 -57
- data/vendor/assets/javascripts/moment/fa.js +84 -82
- data/vendor/assets/javascripts/moment/fi.js +72 -61
- data/vendor/assets/javascripts/moment/fil.js +58 -0
- data/vendor/assets/javascripts/moment/fo.js +46 -51
- data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
- data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
- data/vendor/assets/javascripts/moment/fr.js +72 -52
- data/vendor/assets/javascripts/moment/fy.js +52 -51
- data/vendor/assets/javascripts/moment/ga.js +95 -0
- data/vendor/assets/javascripts/moment/gd.js +81 -63
- data/vendor/assets/javascripts/moment/gl.js +54 -58
- data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
- data/vendor/assets/javascripts/moment/gu.js +30 -34
- data/vendor/assets/javascripts/moment/he.js +48 -54
- data/vendor/assets/javascripts/moment/hi.js +115 -76
- data/vendor/assets/javascripts/moment/hr.js +54 -55
- data/vendor/assets/javascripts/moment/hu.js +63 -56
- data/vendor/assets/javascripts/moment/hy-am.js +44 -48
- data/vendor/assets/javascripts/moment/id.js +44 -52
- data/vendor/assets/javascripts/moment/is.js +61 -55
- data/vendor/assets/javascripts/moment/it-ch.js +64 -0
- data/vendor/assets/javascripts/moment/it.js +89 -54
- data/vendor/assets/javascripts/moment/ja.js +122 -55
- data/vendor/assets/javascripts/moment/jv.js +44 -52
- data/vendor/assets/javascripts/moment/ka.js +68 -66
- data/vendor/assets/javascripts/moment/kk.js +46 -52
- data/vendor/assets/javascripts/moment/km.js +64 -21
- data/vendor/assets/javascripts/moment/kn.js +72 -76
- data/vendor/assets/javascripts/moment/ko.js +48 -56
- data/vendor/assets/javascripts/moment/ku.js +118 -0
- data/vendor/assets/javascripts/moment/ky.js +48 -53
- data/vendor/assets/javascripts/moment/lb.js +39 -42
- data/vendor/assets/javascripts/moment/lo.js +44 -50
- data/vendor/assets/javascripts/moment/lt.js +79 -75
- data/vendor/assets/javascripts/moment/lv.js +57 -63
- data/vendor/assets/javascripts/moment/me.js +53 -48
- data/vendor/assets/javascripts/moment/mi.js +15 -21
- data/vendor/assets/javascripts/moment/mk.js +46 -52
- data/vendor/assets/javascripts/moment/ml.js +51 -53
- data/vendor/assets/javascripts/moment/mn.js +99 -0
- data/vendor/assets/javascripts/moment/mr.js +140 -100
- data/vendor/assets/javascripts/moment/ms-my.js +43 -51
- data/vendor/assets/javascripts/moment/ms.js +43 -51
- data/vendor/assets/javascripts/moment/mt.js +45 -51
- data/vendor/assets/javascripts/moment/my.js +37 -43
- data/vendor/assets/javascripts/moment/nb.js +45 -48
- data/vendor/assets/javascripts/moment/ne.js +73 -77
- data/vendor/assets/javascripts/moment/nl-be.js +70 -57
- data/vendor/assets/javascripts/moment/nl.js +72 -57
- data/vendor/assets/javascripts/moment/nn.js +46 -47
- data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
- data/vendor/assets/javascripts/moment/pa-in.js +72 -76
- data/vendor/assets/javascripts/moment/pl.js +67 -55
- data/vendor/assets/javascripts/moment/pt-br.js +41 -46
- data/vendor/assets/javascripts/moment/pt.js +46 -50
- data/vendor/assets/javascripts/moment/ro.js +49 -51
- data/vendor/assets/javascripts/moment/ru.js +104 -83
- data/vendor/assets/javascripts/moment/sd.js +56 -74
- data/vendor/assets/javascripts/moment/se.js +41 -46
- data/vendor/assets/javascripts/moment/si.js +48 -52
- data/vendor/assets/javascripts/moment/sk.js +52 -66
- data/vendor/assets/javascripts/moment/sl.js +50 -54
- data/vendor/assets/javascripts/moment/sq.js +47 -53
- data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
- data/vendor/assets/javascripts/moment/sr.js +56 -50
- data/vendor/assets/javascripts/moment/ss.js +48 -55
- data/vendor/assets/javascripts/moment/sv.js +51 -53
- data/vendor/assets/javascripts/moment/sw.js +45 -51
- data/vendor/assets/javascripts/moment/ta.js +75 -77
- data/vendor/assets/javascripts/moment/te.js +51 -55
- data/vendor/assets/javascripts/moment/tet.js +49 -50
- data/vendor/assets/javascripts/moment/tg.js +116 -0
- data/vendor/assets/javascripts/moment/th.js +45 -49
- data/vendor/assets/javascripts/moment/tk.js +91 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
- data/vendor/assets/javascripts/moment/tlh.js +69 -67
- data/vendor/assets/javascripts/moment/tr.js +91 -76
- data/vendor/assets/javascripts/moment/tzl.js +65 -69
- data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
- data/vendor/assets/javascripts/moment/tzm.js +38 -44
- data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
- data/vendor/assets/javascripts/moment/uk.js +78 -68
- data/vendor/assets/javascripts/moment/ur.js +56 -74
- data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
- data/vendor/assets/javascripts/moment/uz.js +42 -50
- data/vendor/assets/javascripts/moment/vi.js +54 -55
- data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
- data/vendor/assets/javascripts/moment/yo.js +44 -52
- data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
- data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
- data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
- data/vendor/assets/javascripts/moment.js +2673 -1546
- metadata +92 -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
@@ -2,88 +2,96 @@
|
|
2
2
|
//! locale : Catalan [ca]
|
3
3
|
//! author : Juan G. Hurtado : https://github.com/juanghurtado
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
export default moment.defineLocale('ca', {
|
8
|
+
months: {
|
9
|
+
standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
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(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
isFormat: /D[oD]?(\s)+MMMM/,
|
18
16
|
},
|
19
|
-
monthsShort
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
17
|
+
monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
|
18
|
+
'_'
|
19
|
+
),
|
20
|
+
monthsParseExact: true,
|
21
|
+
weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
|
22
|
+
'_'
|
23
|
+
),
|
24
|
+
weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
|
25
|
+
weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
|
26
|
+
weekdaysParseExact: true,
|
27
|
+
longDateFormat: {
|
28
|
+
LT: 'H:mm',
|
29
|
+
LTS: 'H:mm:ss',
|
30
|
+
L: 'DD/MM/YYYY',
|
31
|
+
LL: 'D MMMM [de] YYYY',
|
32
|
+
ll: 'D MMM YYYY',
|
33
|
+
LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
34
|
+
lll: 'D MMM YYYY, H:mm',
|
35
|
+
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
36
|
+
llll: 'ddd D MMM YYYY, H:mm',
|
35
37
|
},
|
36
|
-
calendar
|
37
|
-
sameDay
|
38
|
-
return '[avui a ' + (
|
38
|
+
calendar: {
|
39
|
+
sameDay: function () {
|
40
|
+
return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
39
41
|
},
|
40
|
-
nextDay
|
41
|
-
return '[demà a ' + (
|
42
|
+
nextDay: function () {
|
43
|
+
return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
42
44
|
},
|
43
|
-
nextWeek
|
44
|
-
return 'dddd [a ' + (
|
45
|
+
nextWeek: function () {
|
46
|
+
return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
45
47
|
},
|
46
|
-
lastDay
|
47
|
-
return '[ahir a ' + (
|
48
|
+
lastDay: function () {
|
49
|
+
return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
48
50
|
},
|
49
|
-
lastWeek
|
50
|
-
return
|
51
|
+
lastWeek: function () {
|
52
|
+
return (
|
53
|
+
'[el] dddd [passat a ' +
|
54
|
+
(this.hours() !== 1 ? 'les' : 'la') +
|
55
|
+
'] LT'
|
56
|
+
);
|
51
57
|
},
|
52
|
-
sameElse
|
58
|
+
sameElse: 'L',
|
53
59
|
},
|
54
|
-
relativeTime
|
55
|
-
future
|
56
|
-
past
|
57
|
-
s
|
58
|
-
ss
|
59
|
-
m
|
60
|
-
mm
|
61
|
-
h
|
62
|
-
hh
|
63
|
-
d
|
64
|
-
dd
|
65
|
-
M
|
66
|
-
MM
|
67
|
-
y
|
68
|
-
yy
|
60
|
+
relativeTime: {
|
61
|
+
future: "d'aquí %s",
|
62
|
+
past: 'fa %s',
|
63
|
+
s: 'uns segons',
|
64
|
+
ss: '%d segons',
|
65
|
+
m: 'un minut',
|
66
|
+
mm: '%d minuts',
|
67
|
+
h: 'una hora',
|
68
|
+
hh: '%d hores',
|
69
|
+
d: 'un dia',
|
70
|
+
dd: '%d dies',
|
71
|
+
M: 'un mes',
|
72
|
+
MM: '%d mesos',
|
73
|
+
y: 'un any',
|
74
|
+
yy: '%d anys',
|
69
75
|
},
|
70
76
|
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
71
|
-
ordinal
|
72
|
-
var output =
|
73
|
-
|
74
|
-
|
75
|
-
|
77
|
+
ordinal: function (number, period) {
|
78
|
+
var output =
|
79
|
+
number === 1
|
80
|
+
? 'r'
|
81
|
+
: number === 2
|
82
|
+
? 'n'
|
83
|
+
: number === 3
|
84
|
+
? 'r'
|
85
|
+
: number === 4
|
86
|
+
? 't'
|
87
|
+
: 'è';
|
76
88
|
if (period === 'w' || period === 'W') {
|
77
89
|
output = 'a';
|
78
90
|
}
|
79
91
|
return number + output;
|
80
92
|
},
|
81
|
-
week
|
82
|
-
dow
|
83
|
-
doy
|
84
|
-
}
|
93
|
+
week: {
|
94
|
+
dow: 1, // Monday is the first day of the week.
|
95
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
96
|
+
},
|
85
97
|
});
|
86
|
-
|
87
|
-
return ca;
|
88
|
-
|
89
|
-
})));
|
@@ -2,117 +2,112 @@
|
|
2
2
|
//! locale : Czech [cs]
|
3
3
|
//! author : petrbela : https://github.com/petrbela
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
7
|
+
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
|
8
|
+
'_'
|
9
|
+
),
|
10
|
+
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
|
11
|
+
monthsParse = [
|
12
|
+
/^led/i,
|
13
|
+
/^úno/i,
|
14
|
+
/^bře/i,
|
15
|
+
/^dub/i,
|
16
|
+
/^kvě/i,
|
17
|
+
/^(čvn|červen$|června)/i,
|
18
|
+
/^(čvc|červenec|července)/i,
|
19
|
+
/^srp/i,
|
20
|
+
/^zář/i,
|
21
|
+
/^říj/i,
|
22
|
+
/^lis/i,
|
23
|
+
/^pro/i,
|
24
|
+
],
|
25
|
+
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
26
|
+
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
27
|
+
monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
|
12
28
|
|
13
|
-
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
|
14
|
-
var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
|
15
29
|
function plural(n) {
|
16
|
-
return
|
30
|
+
return n > 1 && n < 5 && ~~(n / 10) !== 1;
|
17
31
|
}
|
18
32
|
function translate(number, withoutSuffix, key, isFuture) {
|
19
33
|
var result = number + ' ';
|
20
34
|
switch (key) {
|
21
|
-
case 's':
|
22
|
-
return
|
35
|
+
case 's': // a few seconds / in a few seconds / a few seconds ago
|
36
|
+
return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
|
23
37
|
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
|
24
38
|
if (withoutSuffix || isFuture) {
|
25
39
|
return result + (plural(number) ? 'sekundy' : 'sekund');
|
26
40
|
} else {
|
27
41
|
return result + 'sekundami';
|
28
42
|
}
|
29
|
-
|
30
|
-
|
31
|
-
return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
|
43
|
+
case 'm': // a minute / in a minute / a minute ago
|
44
|
+
return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
|
32
45
|
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
33
46
|
if (withoutSuffix || isFuture) {
|
34
47
|
return result + (plural(number) ? 'minuty' : 'minut');
|
35
48
|
} else {
|
36
49
|
return result + 'minutami';
|
37
50
|
}
|
38
|
-
|
39
|
-
|
40
|
-
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
51
|
+
case 'h': // an hour / in an hour / an hour ago
|
52
|
+
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
|
41
53
|
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
42
54
|
if (withoutSuffix || isFuture) {
|
43
55
|
return result + (plural(number) ? 'hodiny' : 'hodin');
|
44
56
|
} else {
|
45
57
|
return result + 'hodinami';
|
46
58
|
}
|
47
|
-
|
48
|
-
|
49
|
-
return (withoutSuffix || isFuture) ? 'den' : 'dnem';
|
59
|
+
case 'd': // a day / in a day / a day ago
|
60
|
+
return withoutSuffix || isFuture ? 'den' : 'dnem';
|
50
61
|
case 'dd': // 9 days / in 9 days / 9 days ago
|
51
62
|
if (withoutSuffix || isFuture) {
|
52
63
|
return result + (plural(number) ? 'dny' : 'dní');
|
53
64
|
} else {
|
54
65
|
return result + 'dny';
|
55
66
|
}
|
56
|
-
|
57
|
-
|
58
|
-
return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
|
67
|
+
case 'M': // a month / in a month / a month ago
|
68
|
+
return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
|
59
69
|
case 'MM': // 9 months / in 9 months / 9 months ago
|
60
70
|
if (withoutSuffix || isFuture) {
|
61
71
|
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
62
72
|
} else {
|
63
73
|
return result + 'měsíci';
|
64
74
|
}
|
65
|
-
|
66
|
-
|
67
|
-
return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
|
75
|
+
case 'y': // a year / in a year / a year ago
|
76
|
+
return withoutSuffix || isFuture ? 'rok' : 'rokem';
|
68
77
|
case 'yy': // 9 years / in 9 years / 9 years ago
|
69
78
|
if (withoutSuffix || isFuture) {
|
70
79
|
return result + (plural(number) ? 'roky' : 'let');
|
71
80
|
} else {
|
72
81
|
return result + 'lety';
|
73
82
|
}
|
74
|
-
break;
|
75
83
|
}
|
76
84
|
}
|
77
85
|
|
78
|
-
|
79
|
-
months
|
80
|
-
monthsShort
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
shortMonthsParse
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
return _shortMonthsParse;
|
95
|
-
}(monthsShort)),
|
96
|
-
longMonthsParse : (function (months) {
|
97
|
-
var i, _longMonthsParse = [];
|
98
|
-
for (i = 0; i < 12; i++) {
|
99
|
-
_longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
|
100
|
-
}
|
101
|
-
return _longMonthsParse;
|
102
|
-
}(months)),
|
103
|
-
weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
104
|
-
weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
|
105
|
-
weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
|
106
|
-
longDateFormat : {
|
86
|
+
export default moment.defineLocale('cs', {
|
87
|
+
months: months,
|
88
|
+
monthsShort: monthsShort,
|
89
|
+
monthsRegex: monthsRegex,
|
90
|
+
monthsShortRegex: monthsRegex,
|
91
|
+
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
92
|
+
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
93
|
+
monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
|
94
|
+
monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
|
95
|
+
monthsParse: monthsParse,
|
96
|
+
longMonthsParse: monthsParse,
|
97
|
+
shortMonthsParse: monthsParse,
|
98
|
+
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
99
|
+
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
|
100
|
+
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
|
101
|
+
longDateFormat: {
|
107
102
|
LT: 'H:mm',
|
108
|
-
LTS
|
109
|
-
L
|
110
|
-
LL
|
111
|
-
LLL
|
112
|
-
LLLL
|
113
|
-
l
|
103
|
+
LTS: 'H:mm:ss',
|
104
|
+
L: 'DD.MM.YYYY',
|
105
|
+
LL: 'D. MMMM YYYY',
|
106
|
+
LLL: 'D. MMMM YYYY H:mm',
|
107
|
+
LLLL: 'dddd D. MMMM YYYY H:mm',
|
108
|
+
l: 'D. M. YYYY',
|
114
109
|
},
|
115
|
-
calendar
|
110
|
+
calendar: {
|
116
111
|
sameDay: '[dnes v] LT',
|
117
112
|
nextDay: '[zítra v] LT',
|
118
113
|
nextWeek: function () {
|
@@ -149,32 +144,28 @@ var cs = moment.defineLocale('cs', {
|
|
149
144
|
return '[minulou sobotu v] LT';
|
150
145
|
}
|
151
146
|
},
|
152
|
-
sameElse: 'L'
|
147
|
+
sameElse: 'L',
|
153
148
|
},
|
154
|
-
relativeTime
|
155
|
-
future
|
156
|
-
past
|
157
|
-
s
|
158
|
-
ss
|
159
|
-
m
|
160
|
-
mm
|
161
|
-
h
|
162
|
-
hh
|
163
|
-
d
|
164
|
-
dd
|
165
|
-
M
|
166
|
-
MM
|
167
|
-
y
|
168
|
-
yy
|
149
|
+
relativeTime: {
|
150
|
+
future: 'za %s',
|
151
|
+
past: 'před %s',
|
152
|
+
s: translate,
|
153
|
+
ss: translate,
|
154
|
+
m: translate,
|
155
|
+
mm: translate,
|
156
|
+
h: translate,
|
157
|
+
hh: translate,
|
158
|
+
d: translate,
|
159
|
+
dd: translate,
|
160
|
+
M: translate,
|
161
|
+
MM: translate,
|
162
|
+
y: translate,
|
163
|
+
yy: translate,
|
164
|
+
},
|
165
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
166
|
+
ordinal: '%d.',
|
167
|
+
week: {
|
168
|
+
dow: 1, // Monday is the first day of the week.
|
169
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
169
170
|
},
|
170
|
-
dayOfMonthOrdinalParse : /\d{1,2}\./,
|
171
|
-
ordinal : '%d.',
|
172
|
-
week : {
|
173
|
-
dow : 1, // Monday is the first day of the week.
|
174
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
175
|
-
}
|
176
171
|
});
|
177
|
-
|
178
|
-
return cs;
|
179
|
-
|
180
|
-
})));
|
@@ -2,63 +2,61 @@
|
|
2
2
|
//! locale : Chuvash [cv]
|
3
3
|
//! author : Anatoly Mironov : https://github.com/mirontoli
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
export default moment.defineLocale('cv', {
|
8
|
+
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
12
|
+
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
16
|
+
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
17
|
+
longDateFormat: {
|
18
|
+
LT: 'HH:mm',
|
19
|
+
LTS: 'HH:mm:ss',
|
20
|
+
L: 'DD-MM-YYYY',
|
21
|
+
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
22
|
+
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
23
|
+
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
26
24
|
},
|
27
|
-
calendar
|
25
|
+
calendar: {
|
28
26
|
sameDay: '[Паян] LT [сехетре]',
|
29
27
|
nextDay: '[Ыран] LT [сехетре]',
|
30
28
|
lastDay: '[Ӗнер] LT [сехетре]',
|
31
29
|
nextWeek: '[Ҫитес] dddd LT [сехетре]',
|
32
30
|
lastWeek: '[Иртнӗ] dddd LT [сехетре]',
|
33
|
-
sameElse: 'L'
|
31
|
+
sameElse: 'L',
|
34
32
|
},
|
35
|
-
relativeTime
|
36
|
-
future
|
37
|
-
var affix = /сехет$/i.exec(output)
|
33
|
+
relativeTime: {
|
34
|
+
future: function (output) {
|
35
|
+
var affix = /сехет$/i.exec(output)
|
36
|
+
? 'рен'
|
37
|
+
: /ҫул$/i.exec(output)
|
38
|
+
? 'тан'
|
39
|
+
: 'ран';
|
38
40
|
return output + affix;
|
39
41
|
},
|
40
|
-
past
|
41
|
-
s
|
42
|
-
ss
|
43
|
-
m
|
44
|
-
mm
|
45
|
-
h
|
46
|
-
hh
|
47
|
-
d
|
48
|
-
dd
|
49
|
-
M
|
50
|
-
MM
|
51
|
-
y
|
52
|
-
yy
|
42
|
+
past: '%s каялла',
|
43
|
+
s: 'пӗр-ик ҫеккунт',
|
44
|
+
ss: '%d ҫеккунт',
|
45
|
+
m: 'пӗр минут',
|
46
|
+
mm: '%d минут',
|
47
|
+
h: 'пӗр сехет',
|
48
|
+
hh: '%d сехет',
|
49
|
+
d: 'пӗр кун',
|
50
|
+
dd: '%d кун',
|
51
|
+
M: 'пӗр уйӑх',
|
52
|
+
MM: '%d уйӑх',
|
53
|
+
y: 'пӗр ҫул',
|
54
|
+
yy: '%d ҫул',
|
53
55
|
},
|
54
56
|
dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
|
55
|
-
ordinal
|
56
|
-
week
|
57
|
-
dow
|
58
|
-
doy
|
59
|
-
}
|
57
|
+
ordinal: '%d-мӗш',
|
58
|
+
week: {
|
59
|
+
dow: 1, // Monday is the first day of the week.
|
60
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
61
|
+
},
|
60
62
|
});
|
61
|
-
|
62
|
-
return cv;
|
63
|
-
|
64
|
-
})));
|
@@ -3,29 +3,29 @@
|
|
3
3
|
//! author : Robert Allen : https://github.com/robgallen
|
4
4
|
//! author : https://github.com/ryangreaves
|
5
5
|
|
6
|
-
|
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';
|
6
|
+
import moment from '../moment';
|
12
7
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
export default moment.defineLocale('cy', {
|
9
|
+
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
|
10
|
+
'_'
|
11
|
+
),
|
12
|
+
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
|
16
|
+
'_'
|
17
|
+
),
|
18
18
|
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
|
19
19
|
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
|
20
|
-
weekdaysParseExact
|
20
|
+
weekdaysParseExact: true,
|
21
21
|
// time formats are the same as en-gb
|
22
22
|
longDateFormat: {
|
23
23
|
LT: 'HH:mm',
|
24
|
-
LTS
|
24
|
+
LTS: 'HH:mm:ss',
|
25
25
|
L: 'DD/MM/YYYY',
|
26
26
|
LL: 'D MMMM YYYY',
|
27
27
|
LLL: 'D MMMM YYYY HH:mm',
|
28
|
-
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
28
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
29
29
|
},
|
30
30
|
calendar: {
|
31
31
|
sameDay: '[Heddiw am] LT',
|
@@ -33,7 +33,7 @@ var cy = moment.defineLocale('cy', {
|
|
33
33
|
nextWeek: 'dddd [am] LT',
|
34
34
|
lastDay: '[Ddoe am] LT',
|
35
35
|
lastWeek: 'dddd [diwethaf am] LT',
|
36
|
-
sameElse: 'L'
|
36
|
+
sameElse: 'L',
|
37
37
|
},
|
38
38
|
relativeTime: {
|
39
39
|
future: 'mewn %s',
|
@@ -49,7 +49,7 @@ var cy = moment.defineLocale('cy', {
|
|
49
49
|
M: 'mis',
|
50
50
|
MM: '%d mis',
|
51
51
|
y: 'blwyddyn',
|
52
|
-
yy: '%d flynedd'
|
52
|
+
yy: '%d flynedd',
|
53
53
|
},
|
54
54
|
dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
|
55
55
|
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
|
@@ -57,8 +57,27 @@ var cy = moment.defineLocale('cy', {
|
|
57
57
|
var b = number,
|
58
58
|
output = '',
|
59
59
|
lookup = [
|
60
|
-
'',
|
61
|
-
'
|
60
|
+
'',
|
61
|
+
'af',
|
62
|
+
'il',
|
63
|
+
'ydd',
|
64
|
+
'ydd',
|
65
|
+
'ed',
|
66
|
+
'ed',
|
67
|
+
'ed',
|
68
|
+
'fed',
|
69
|
+
'fed',
|
70
|
+
'fed', // 1af to 10fed
|
71
|
+
'eg',
|
72
|
+
'fed',
|
73
|
+
'eg',
|
74
|
+
'eg',
|
75
|
+
'fed',
|
76
|
+
'eg',
|
77
|
+
'eg',
|
78
|
+
'fed',
|
79
|
+
'eg',
|
80
|
+
'fed', // 11eg to 20fed
|
62
81
|
];
|
63
82
|
if (b > 20) {
|
64
83
|
if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
|
@@ -71,12 +90,8 @@ var cy = moment.defineLocale('cy', {
|
|
71
90
|
}
|
72
91
|
return number + output;
|
73
92
|
},
|
74
|
-
week
|
75
|
-
dow
|
76
|
-
doy
|
77
|
-
}
|
93
|
+
week: {
|
94
|
+
dow: 1, // Monday is the first day of the week.
|
95
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
96
|
+
},
|
78
97
|
});
|
79
|
-
|
80
|
-
return cy;
|
81
|
-
|
82
|
-
})));
|