momentjs-rails 2.15.1 → 2.29.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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/-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/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -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/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -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/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -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/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -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/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -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/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -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/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.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/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -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/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.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 +53 -44
- data/vendor/assets/javascripts/moment/ar-dz.js +167 -0
- data/vendor/assets/javascripts/moment/ar-kw.js +65 -0
- data/vendor/assets/javascripts/moment/ar-ly.js +145 -85
- data/vendor/assets/javascripts/moment/ar-ma.js +43 -37
- data/vendor/assets/javascripts/moment/ar-sa.js +78 -67
- data/vendor/assets/javascripts/moment/ar-tn.js +18 -12
- data/vendor/assets/javascripts/moment/ar.js +159 -96
- data/vendor/assets/javascripts/moment/az.js +54 -47
- data/vendor/assets/javascripts/moment/be.js +71 -53
- data/vendor/assets/javascripts/moment/bg.js +51 -43
- data/vendor/assets/javascripts/moment/bm.js +62 -0
- data/vendor/assets/javascripts/moment/bn-bd.js +139 -0
- data/vendor/assets/javascripts/moment/bn.js +77 -67
- data/vendor/assets/javascripts/moment/bo.js +81 -67
- data/vendor/assets/javascripts/moment/br.js +117 -49
- data/vendor/assets/javascripts/moment/bs.js +59 -42
- data/vendor/assets/javascripts/moment/ca.js +79 -52
- data/vendor/assets/javascripts/moment/cs.js +88 -78
- data/vendor/assets/javascripts/moment/cv.js +47 -37
- data/vendor/assets/javascripts/moment/cy.js +44 -17
- data/vendor/assets/javascripts/moment/da.js +45 -41
- data/vendor/assets/javascripts/moment/de-at.js +57 -46
- data/vendor/assets/javascripts/moment/de-ch.js +87 -0
- data/vendor/assets/javascripts/moment/de.js +55 -44
- data/vendor/assets/javascripts/moment/dv.js +65 -63
- data/vendor/assets/javascripts/moment/el.js +68 -51
- data/vendor/assets/javascripts/moment/en-au.js +59 -47
- data/vendor/assets/javascripts/moment/en-ca.js +56 -44
- data/vendor/assets/javascripts/moment/en-gb.js +59 -47
- data/vendor/assets/javascripts/moment/en-ie.js +59 -47
- 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 +59 -47
- data/vendor/assets/javascripts/moment/en-sg.js +79 -0
- data/vendor/assets/javascripts/moment/eo.js +50 -44
- data/vendor/assets/javascripts/moment/es-do.js +88 -53
- data/vendor/assets/javascripts/moment/es-mx.js +117 -0
- data/vendor/assets/javascripts/moment/es-us.js +117 -0
- data/vendor/assets/javascripts/moment/es.js +87 -51
- data/vendor/assets/javascripts/moment/et.js +60 -51
- data/vendor/assets/javascripts/moment/eu.js +55 -47
- data/vendor/assets/javascripts/moment/fa.js +86 -71
- data/vendor/assets/javascripts/moment/fi.js +74 -49
- data/vendor/assets/javascripts/moment/fil.js +69 -0
- data/vendor/assets/javascripts/moment/fo.js +48 -41
- data/vendor/assets/javascripts/moment/fr-ca.js +59 -39
- data/vendor/assets/javascripts/moment/fr-ch.js +62 -42
- data/vendor/assets/javascripts/moment/fr.js +91 -40
- data/vendor/assets/javascripts/moment/fy.js +57 -42
- data/vendor/assets/javascripts/moment/ga.js +106 -0
- data/vendor/assets/javascripts/moment/gd.js +82 -52
- data/vendor/assets/javascripts/moment/gl.js +55 -47
- data/vendor/assets/javascripts/moment/gom-deva.js +135 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +135 -0
- data/vendor/assets/javascripts/moment/gu.js +132 -0
- data/vendor/assets/javascripts/moment/he.js +49 -43
- data/vendor/assets/javascripts/moment/hi.js +116 -65
- data/vendor/assets/javascripts/moment/hr.js +65 -45
- data/vendor/assets/javascripts/moment/hu.js +67 -47
- data/vendor/assets/javascripts/moment/hy-am.js +48 -40
- data/vendor/assets/javascripts/moment/id.js +45 -41
- data/vendor/assets/javascripts/moment/is.js +67 -44
- data/vendor/assets/javascripts/moment/it-ch.js +75 -0
- data/vendor/assets/javascripts/moment/it.js +90 -43
- data/vendor/assets/javascripts/moment/ja.js +123 -40
- data/vendor/assets/javascripts/moment/jv.js +46 -42
- data/vendor/assets/javascripts/moment/ka.js +68 -54
- data/vendor/assets/javascripts/moment/kk.js +48 -42
- data/vendor/assets/javascripts/moment/km.js +67 -12
- data/vendor/assets/javascripts/moment/kn.js +134 -0
- data/vendor/assets/javascripts/moment/ko.js +63 -42
- data/vendor/assets/javascripts/moment/ku.js +129 -0
- data/vendor/assets/javascripts/moment/ky.js +50 -43
- data/vendor/assets/javascripts/moment/lb.js +41 -32
- data/vendor/assets/javascripts/moment/lo.js +46 -40
- data/vendor/assets/javascripts/moment/lt.js +81 -64
- data/vendor/assets/javascripts/moment/lv.js +59 -52
- data/vendor/assets/javascripts/moment/me.js +56 -38
- data/vendor/assets/javascripts/moment/mi.js +18 -12
- data/vendor/assets/javascripts/moment/mk.js +48 -41
- data/vendor/assets/javascripts/moment/ml.js +52 -42
- data/vendor/assets/javascripts/moment/mn.js +110 -0
- data/vendor/assets/javascripts/moment/mr.js +142 -88
- data/vendor/assets/javascripts/moment/ms-my.js +46 -42
- data/vendor/assets/javascripts/moment/ms.js +44 -40
- data/vendor/assets/javascripts/moment/mt.js +66 -0
- data/vendor/assets/javascripts/moment/my.js +38 -31
- data/vendor/assets/javascripts/moment/nb.js +47 -38
- data/vendor/assets/javascripts/moment/ne.js +74 -66
- data/vendor/assets/javascripts/moment/nl-be.js +113 -0
- data/vendor/assets/javascripts/moment/nl.js +77 -48
- data/vendor/assets/javascripts/moment/nn.js +48 -37
- data/vendor/assets/javascripts/moment/oc-lnc.js +94 -0
- data/vendor/assets/javascripts/moment/pa-in.js +75 -67
- data/vendor/assets/javascripts/moment/pl.js +91 -46
- data/vendor/assets/javascripts/moment/pt-br.js +45 -38
- data/vendor/assets/javascripts/moment/pt.js +48 -40
- data/vendor/assets/javascripts/moment/ro.js +50 -39
- data/vendor/assets/javascripts/moment/ru.js +106 -72
- data/vendor/assets/javascripts/moment/sd.js +92 -0
- data/vendor/assets/javascripts/moment/se.js +44 -37
- data/vendor/assets/javascripts/moment/si.js +50 -42
- data/vendor/assets/javascripts/moment/sk.js +59 -54
- data/vendor/assets/javascripts/moment/sl.js +62 -43
- data/vendor/assets/javascripts/moment/sq.js +49 -43
- data/vendor/assets/javascripts/moment/sr-cyrl.js +58 -41
- data/vendor/assets/javascripts/moment/sr.js +59 -40
- data/vendor/assets/javascripts/moment/ss.js +50 -45
- data/vendor/assets/javascripts/moment/sv.js +52 -42
- data/vendor/assets/javascripts/moment/sw.js +46 -40
- data/vendor/assets/javascripts/moment/ta.js +77 -66
- data/vendor/assets/javascripts/moment/te.js +52 -44
- data/vendor/assets/javascripts/moment/tet.js +79 -0
- data/vendor/assets/javascripts/moment/tg.js +127 -0
- data/vendor/assets/javascripts/moment/th.js +46 -38
- data/vendor/assets/javascripts/moment/tk.js +102 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +49 -43
- data/vendor/assets/javascripts/moment/tlh.js +73 -57
- data/vendor/assets/javascripts/moment/tr.js +92 -65
- data/vendor/assets/javascripts/moment/tzl.js +67 -58
- data/vendor/assets/javascripts/moment/tzm-latn.js +42 -36
- data/vendor/assets/javascripts/moment/tzm.js +39 -33
- data/vendor/assets/javascripts/moment/ug-cn.js +121 -0
- data/vendor/assets/javascripts/moment/uk.js +85 -57
- data/vendor/assets/javascripts/moment/ur.js +93 -0
- data/vendor/assets/javascripts/moment/uz-latn.js +64 -0
- data/vendor/assets/javascripts/moment/uz.js +43 -39
- data/vendor/assets/javascripts/moment/vi.js +56 -45
- data/vendor/assets/javascripts/moment/x-pseudo.js +62 -48
- data/vendor/assets/javascripts/moment/yo.js +64 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +68 -64
- data/vendor/assets/javascripts/moment/zh-hk.js +62 -55
- data/vendor/assets/javascripts/moment/zh-mo.js +111 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +59 -53
- data/vendor/assets/javascripts/moment.js +2865 -1429
- metadata +127 -23
- 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
@@ -7,75 +7,102 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
12
13
|
|
13
14
|
var ca = moment.defineLocale('ca', {
|
14
|
-
months
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
LT : 'H:mm',
|
23
|
-
LTS : 'H:mm:ss',
|
24
|
-
L : 'DD/MM/YYYY',
|
25
|
-
LL : 'D MMMM YYYY',
|
26
|
-
LLL : 'D MMMM YYYY H:mm',
|
27
|
-
LLLL : 'dddd D MMMM YYYY H:mm'
|
15
|
+
months: {
|
16
|
+
standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
|
17
|
+
'_'
|
18
|
+
),
|
19
|
+
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(
|
20
|
+
'_'
|
21
|
+
),
|
22
|
+
isFormat: /D[oD]?(\s)+MMMM/,
|
28
23
|
},
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
|
25
|
+
'_'
|
26
|
+
),
|
27
|
+
monthsParseExact: true,
|
28
|
+
weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
|
29
|
+
'_'
|
30
|
+
),
|
31
|
+
weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
|
32
|
+
weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
|
33
|
+
weekdaysParseExact: true,
|
34
|
+
longDateFormat: {
|
35
|
+
LT: 'H:mm',
|
36
|
+
LTS: 'H:mm:ss',
|
37
|
+
L: 'DD/MM/YYYY',
|
38
|
+
LL: 'D MMMM [de] YYYY',
|
39
|
+
ll: 'D MMM YYYY',
|
40
|
+
LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
41
|
+
lll: 'D MMM YYYY, H:mm',
|
42
|
+
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
43
|
+
llll: 'ddd D MMM YYYY, H:mm',
|
44
|
+
},
|
45
|
+
calendar: {
|
46
|
+
sameDay: function () {
|
47
|
+
return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
32
48
|
},
|
33
|
-
nextDay
|
34
|
-
return '[demà a ' + (
|
49
|
+
nextDay: function () {
|
50
|
+
return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
35
51
|
},
|
36
|
-
nextWeek
|
37
|
-
return 'dddd [a ' + (
|
52
|
+
nextWeek: function () {
|
53
|
+
return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
38
54
|
},
|
39
|
-
lastDay
|
40
|
-
return '[ahir a ' + (
|
55
|
+
lastDay: function () {
|
56
|
+
return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
|
41
57
|
},
|
42
|
-
lastWeek
|
43
|
-
return
|
58
|
+
lastWeek: function () {
|
59
|
+
return (
|
60
|
+
'[el] dddd [passat a ' +
|
61
|
+
(this.hours() !== 1 ? 'les' : 'la') +
|
62
|
+
'] LT'
|
63
|
+
);
|
44
64
|
},
|
45
|
-
sameElse
|
65
|
+
sameElse: 'L',
|
46
66
|
},
|
47
|
-
relativeTime
|
48
|
-
future
|
49
|
-
past
|
50
|
-
s
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
67
|
+
relativeTime: {
|
68
|
+
future: "d'aquí %s",
|
69
|
+
past: 'fa %s',
|
70
|
+
s: 'uns segons',
|
71
|
+
ss: '%d segons',
|
72
|
+
m: 'un minut',
|
73
|
+
mm: '%d minuts',
|
74
|
+
h: 'una hora',
|
75
|
+
hh: '%d hores',
|
76
|
+
d: 'un dia',
|
77
|
+
dd: '%d dies',
|
78
|
+
M: 'un mes',
|
79
|
+
MM: '%d mesos',
|
80
|
+
y: 'un any',
|
81
|
+
yy: '%d anys',
|
61
82
|
},
|
62
|
-
|
63
|
-
ordinal
|
64
|
-
var output =
|
65
|
-
|
66
|
-
|
67
|
-
|
83
|
+
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
|
84
|
+
ordinal: function (number, period) {
|
85
|
+
var output =
|
86
|
+
number === 1
|
87
|
+
? 'r'
|
88
|
+
: number === 2
|
89
|
+
? 'n'
|
90
|
+
: number === 3
|
91
|
+
? 'r'
|
92
|
+
: number === 4
|
93
|
+
? 't'
|
94
|
+
: 'è';
|
68
95
|
if (period === 'w' || period === 'W') {
|
69
96
|
output = 'a';
|
70
97
|
}
|
71
98
|
return number + output;
|
72
99
|
},
|
73
|
-
week
|
74
|
-
dow
|
75
|
-
doy
|
76
|
-
}
|
100
|
+
week: {
|
101
|
+
dow: 1, // Monday is the first day of the week.
|
102
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
103
|
+
},
|
77
104
|
});
|
78
105
|
|
79
106
|
return ca;
|
80
107
|
|
81
|
-
}));
|
108
|
+
})));
|
@@ -7,105 +7,114 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
13
|
+
|
14
|
+
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
|
15
|
+
'_'
|
16
|
+
),
|
17
|
+
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
|
18
|
+
monthsParse = [
|
19
|
+
/^led/i,
|
20
|
+
/^úno/i,
|
21
|
+
/^bře/i,
|
22
|
+
/^dub/i,
|
23
|
+
/^kvě/i,
|
24
|
+
/^(čvn|červen$|června)/i,
|
25
|
+
/^(čvc|červenec|července)/i,
|
26
|
+
/^srp/i,
|
27
|
+
/^zář/i,
|
28
|
+
/^říj/i,
|
29
|
+
/^lis/i,
|
30
|
+
/^pro/i,
|
31
|
+
],
|
32
|
+
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
33
|
+
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
34
|
+
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
35
|
|
13
|
-
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
14
|
-
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
|
15
36
|
function plural(n) {
|
16
|
-
return
|
37
|
+
return n > 1 && n < 5 && ~~(n / 10) !== 1;
|
17
38
|
}
|
18
39
|
function translate(number, withoutSuffix, key, isFuture) {
|
19
40
|
var result = number + ' ';
|
20
41
|
switch (key) {
|
21
|
-
case 's':
|
22
|
-
return
|
23
|
-
case '
|
24
|
-
|
42
|
+
case 's': // a few seconds / in a few seconds / a few seconds ago
|
43
|
+
return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
|
44
|
+
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
|
45
|
+
if (withoutSuffix || isFuture) {
|
46
|
+
return result + (plural(number) ? 'sekundy' : 'sekund');
|
47
|
+
} else {
|
48
|
+
return result + 'sekundami';
|
49
|
+
}
|
50
|
+
case 'm': // a minute / in a minute / a minute ago
|
51
|
+
return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
|
25
52
|
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
26
53
|
if (withoutSuffix || isFuture) {
|
27
54
|
return result + (plural(number) ? 'minuty' : 'minut');
|
28
55
|
} else {
|
29
56
|
return result + 'minutami';
|
30
57
|
}
|
31
|
-
|
32
|
-
|
33
|
-
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
58
|
+
case 'h': // an hour / in an hour / an hour ago
|
59
|
+
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
|
34
60
|
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
35
61
|
if (withoutSuffix || isFuture) {
|
36
62
|
return result + (plural(number) ? 'hodiny' : 'hodin');
|
37
63
|
} else {
|
38
64
|
return result + 'hodinami';
|
39
65
|
}
|
40
|
-
|
41
|
-
|
42
|
-
return (withoutSuffix || isFuture) ? 'den' : 'dnem';
|
66
|
+
case 'd': // a day / in a day / a day ago
|
67
|
+
return withoutSuffix || isFuture ? 'den' : 'dnem';
|
43
68
|
case 'dd': // 9 days / in 9 days / 9 days ago
|
44
69
|
if (withoutSuffix || isFuture) {
|
45
70
|
return result + (plural(number) ? 'dny' : 'dní');
|
46
71
|
} else {
|
47
72
|
return result + 'dny';
|
48
73
|
}
|
49
|
-
|
50
|
-
|
51
|
-
return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
|
74
|
+
case 'M': // a month / in a month / a month ago
|
75
|
+
return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
|
52
76
|
case 'MM': // 9 months / in 9 months / 9 months ago
|
53
77
|
if (withoutSuffix || isFuture) {
|
54
78
|
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
55
79
|
} else {
|
56
80
|
return result + 'měsíci';
|
57
81
|
}
|
58
|
-
|
59
|
-
|
60
|
-
return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
|
82
|
+
case 'y': // a year / in a year / a year ago
|
83
|
+
return withoutSuffix || isFuture ? 'rok' : 'rokem';
|
61
84
|
case 'yy': // 9 years / in 9 years / 9 years ago
|
62
85
|
if (withoutSuffix || isFuture) {
|
63
86
|
return result + (plural(number) ? 'roky' : 'let');
|
64
87
|
} else {
|
65
88
|
return result + 'lety';
|
66
89
|
}
|
67
|
-
break;
|
68
90
|
}
|
69
91
|
}
|
70
92
|
|
71
93
|
var cs = moment.defineLocale('cs', {
|
72
|
-
months
|
73
|
-
monthsShort
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
shortMonthsParse
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
return _shortMonthsParse;
|
88
|
-
}(monthsShort)),
|
89
|
-
longMonthsParse : (function (months) {
|
90
|
-
var i, _longMonthsParse = [];
|
91
|
-
for (i = 0; i < 12; i++) {
|
92
|
-
_longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
|
93
|
-
}
|
94
|
-
return _longMonthsParse;
|
95
|
-
}(months)),
|
96
|
-
weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
97
|
-
weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
|
98
|
-
weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
|
99
|
-
longDateFormat : {
|
94
|
+
months: months,
|
95
|
+
monthsShort: monthsShort,
|
96
|
+
monthsRegex: monthsRegex,
|
97
|
+
monthsShortRegex: monthsRegex,
|
98
|
+
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
99
|
+
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
100
|
+
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,
|
101
|
+
monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
|
102
|
+
monthsParse: monthsParse,
|
103
|
+
longMonthsParse: monthsParse,
|
104
|
+
shortMonthsParse: monthsParse,
|
105
|
+
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
106
|
+
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
|
107
|
+
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
|
108
|
+
longDateFormat: {
|
100
109
|
LT: 'H:mm',
|
101
|
-
LTS
|
102
|
-
L
|
103
|
-
LL
|
104
|
-
LLL
|
105
|
-
LLLL
|
106
|
-
l
|
110
|
+
LTS: 'H:mm:ss',
|
111
|
+
L: 'DD.MM.YYYY',
|
112
|
+
LL: 'D. MMMM YYYY',
|
113
|
+
LLL: 'D. MMMM YYYY H:mm',
|
114
|
+
LLLL: 'dddd D. MMMM YYYY H:mm',
|
115
|
+
l: 'D. M. YYYY',
|
107
116
|
},
|
108
|
-
calendar
|
117
|
+
calendar: {
|
109
118
|
sameDay: '[dnes v] LT',
|
110
119
|
nextDay: '[zítra v] LT',
|
111
120
|
nextWeek: function () {
|
@@ -142,31 +151,32 @@
|
|
142
151
|
return '[minulou sobotu v] LT';
|
143
152
|
}
|
144
153
|
},
|
145
|
-
sameElse: 'L'
|
154
|
+
sameElse: 'L',
|
146
155
|
},
|
147
|
-
relativeTime
|
148
|
-
future
|
149
|
-
past
|
150
|
-
s
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
156
|
+
relativeTime: {
|
157
|
+
future: 'za %s',
|
158
|
+
past: 'před %s',
|
159
|
+
s: translate,
|
160
|
+
ss: translate,
|
161
|
+
m: translate,
|
162
|
+
mm: translate,
|
163
|
+
h: translate,
|
164
|
+
hh: translate,
|
165
|
+
d: translate,
|
166
|
+
dd: translate,
|
167
|
+
M: translate,
|
168
|
+
MM: translate,
|
169
|
+
y: translate,
|
170
|
+
yy: translate,
|
171
|
+
},
|
172
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
173
|
+
ordinal: '%d.',
|
174
|
+
week: {
|
175
|
+
dow: 1, // Monday is the first day of the week.
|
176
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
161
177
|
},
|
162
|
-
ordinalParse : /\d{1,2}\./,
|
163
|
-
ordinal : '%d.',
|
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
178
|
});
|
169
179
|
|
170
180
|
return cs;
|
171
181
|
|
172
|
-
}));
|
182
|
+
})));
|
@@ -7,57 +7,67 @@
|
|
7
7
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
8
8
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
9
9
|
factory(global.moment)
|
10
|
-
}(this, function (moment) { 'use strict';
|
10
|
+
}(this, (function (moment) { 'use strict';
|
11
11
|
|
12
|
+
//! moment.js locale configuration
|
12
13
|
|
13
14
|
var cv = moment.defineLocale('cv', {
|
14
|
-
months
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
|
16
|
+
'_'
|
17
|
+
),
|
18
|
+
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
19
|
+
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
|
20
|
+
'_'
|
21
|
+
),
|
22
|
+
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
23
|
+
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
24
|
+
longDateFormat: {
|
25
|
+
LT: 'HH:mm',
|
26
|
+
LTS: 'HH:mm:ss',
|
27
|
+
L: 'DD-MM-YYYY',
|
28
|
+
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
29
|
+
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
30
|
+
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
26
31
|
},
|
27
|
-
calendar
|
32
|
+
calendar: {
|
28
33
|
sameDay: '[Паян] LT [сехетре]',
|
29
34
|
nextDay: '[Ыран] LT [сехетре]',
|
30
35
|
lastDay: '[Ӗнер] LT [сехетре]',
|
31
36
|
nextWeek: '[Ҫитес] dddd LT [сехетре]',
|
32
37
|
lastWeek: '[Иртнӗ] dddd LT [сехетре]',
|
33
|
-
sameElse: 'L'
|
38
|
+
sameElse: 'L',
|
34
39
|
},
|
35
|
-
relativeTime
|
36
|
-
future
|
37
|
-
var affix = /сехет$/i.exec(output)
|
40
|
+
relativeTime: {
|
41
|
+
future: function (output) {
|
42
|
+
var affix = /сехет$/i.exec(output)
|
43
|
+
? 'рен'
|
44
|
+
: /ҫул$/i.exec(output)
|
45
|
+
? 'тан'
|
46
|
+
: 'ран';
|
38
47
|
return output + affix;
|
39
48
|
},
|
40
|
-
past
|
41
|
-
s
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
past: '%s каялла',
|
50
|
+
s: 'пӗр-ик ҫеккунт',
|
51
|
+
ss: '%d ҫеккунт',
|
52
|
+
m: 'пӗр минут',
|
53
|
+
mm: '%d минут',
|
54
|
+
h: 'пӗр сехет',
|
55
|
+
hh: '%d сехет',
|
56
|
+
d: 'пӗр кун',
|
57
|
+
dd: '%d кун',
|
58
|
+
M: 'пӗр уйӑх',
|
59
|
+
MM: '%d уйӑх',
|
60
|
+
y: 'пӗр ҫул',
|
61
|
+
yy: '%d ҫул',
|
62
|
+
},
|
63
|
+
dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
|
64
|
+
ordinal: '%d-мӗш',
|
65
|
+
week: {
|
66
|
+
dow: 1, // Monday is the first day of the week.
|
67
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
52
68
|
},
|
53
|
-
ordinalParse: /\d{1,2}-мӗш/,
|
54
|
-
ordinal : '%d-мӗш',
|
55
|
-
week : {
|
56
|
-
dow : 1, // Monday is the first day of the week.
|
57
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
58
|
-
}
|
59
69
|
});
|
60
70
|
|
61
71
|
return cv;
|
62
72
|
|
63
|
-
}));
|
73
|
+
})));
|
@@ -8,24 +8,31 @@
|
|
8
8
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
9
9
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10
10
|
factory(global.moment)
|
11
|
-
}(this, function (moment) { 'use strict';
|
11
|
+
}(this, (function (moment) { 'use strict';
|
12
12
|
|
13
|
+
//! moment.js locale configuration
|
13
14
|
|
14
15
|
var cy = moment.defineLocale('cy', {
|
15
|
-
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
|
16
|
-
|
17
|
-
|
16
|
+
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
|
17
|
+
'_'
|
18
|
+
),
|
19
|
+
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
|
20
|
+
'_'
|
21
|
+
),
|
22
|
+
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
|
23
|
+
'_'
|
24
|
+
),
|
18
25
|
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
|
19
26
|
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
|
20
|
-
weekdaysParseExact
|
27
|
+
weekdaysParseExact: true,
|
21
28
|
// time formats are the same as en-gb
|
22
29
|
longDateFormat: {
|
23
30
|
LT: 'HH:mm',
|
24
|
-
LTS
|
31
|
+
LTS: 'HH:mm:ss',
|
25
32
|
L: 'DD/MM/YYYY',
|
26
33
|
LL: 'D MMMM YYYY',
|
27
34
|
LLL: 'D MMMM YYYY HH:mm',
|
28
|
-
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
35
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
29
36
|
},
|
30
37
|
calendar: {
|
31
38
|
sameDay: '[Heddiw am] LT',
|
@@ -33,12 +40,13 @@
|
|
33
40
|
nextWeek: 'dddd [am] LT',
|
34
41
|
lastDay: '[Ddoe am] LT',
|
35
42
|
lastWeek: 'dddd [diwethaf am] LT',
|
36
|
-
sameElse: 'L'
|
43
|
+
sameElse: 'L',
|
37
44
|
},
|
38
45
|
relativeTime: {
|
39
46
|
future: 'mewn %s',
|
40
47
|
past: '%s yn ôl',
|
41
48
|
s: 'ychydig eiliadau',
|
49
|
+
ss: '%d eiliad',
|
42
50
|
m: 'munud',
|
43
51
|
mm: '%d munud',
|
44
52
|
h: 'awr',
|
@@ -48,16 +56,35 @@
|
|
48
56
|
M: 'mis',
|
49
57
|
MM: '%d mis',
|
50
58
|
y: 'blwyddyn',
|
51
|
-
yy: '%d flynedd'
|
59
|
+
yy: '%d flynedd',
|
52
60
|
},
|
53
|
-
|
61
|
+
dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
|
54
62
|
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
|
55
63
|
ordinal: function (number) {
|
56
64
|
var b = number,
|
57
65
|
output = '',
|
58
66
|
lookup = [
|
59
|
-
'',
|
60
|
-
'
|
67
|
+
'',
|
68
|
+
'af',
|
69
|
+
'il',
|
70
|
+
'ydd',
|
71
|
+
'ydd',
|
72
|
+
'ed',
|
73
|
+
'ed',
|
74
|
+
'ed',
|
75
|
+
'fed',
|
76
|
+
'fed',
|
77
|
+
'fed', // 1af to 10fed
|
78
|
+
'eg',
|
79
|
+
'fed',
|
80
|
+
'eg',
|
81
|
+
'eg',
|
82
|
+
'fed',
|
83
|
+
'eg',
|
84
|
+
'eg',
|
85
|
+
'fed',
|
86
|
+
'eg',
|
87
|
+
'fed', // 11eg to 20fed
|
61
88
|
];
|
62
89
|
if (b > 20) {
|
63
90
|
if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
|
@@ -70,12 +97,12 @@
|
|
70
97
|
}
|
71
98
|
return number + output;
|
72
99
|
},
|
73
|
-
week
|
74
|
-
dow
|
75
|
-
doy
|
76
|
-
}
|
100
|
+
week: {
|
101
|
+
dow: 1, // Monday is the first day of the week.
|
102
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
103
|
+
},
|
77
104
|
});
|
78
105
|
|
79
106
|
return cy;
|
80
107
|
|
81
|
-
}));
|
108
|
+
})));
|