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
@@ -1,17 +1,13 @@
|
|
1
1
|
//! moment.js locale configuration
|
2
2
|
//! locale : Serbian [sr]
|
3
3
|
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
4
|
+
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
4
5
|
|
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';
|
11
|
-
|
6
|
+
import moment from '../moment';
|
12
7
|
|
13
8
|
var translator = {
|
14
|
-
words: {
|
9
|
+
words: {
|
10
|
+
//Different grammatical cases
|
15
11
|
ss: ['sekunda', 'sekunde', 'sekundi'],
|
16
12
|
m: ['jedan minut', 'jedne minute'],
|
17
13
|
mm: ['minut', 'minute', 'minuta'],
|
@@ -19,36 +15,50 @@ var translator = {
|
|
19
15
|
hh: ['sat', 'sata', 'sati'],
|
20
16
|
dd: ['dan', 'dana', 'dana'],
|
21
17
|
MM: ['mesec', 'meseca', 'meseci'],
|
22
|
-
yy: ['godina', 'godine', 'godina']
|
18
|
+
yy: ['godina', 'godine', 'godina'],
|
23
19
|
},
|
24
20
|
correctGrammaticalCase: function (number, wordKey) {
|
25
|
-
return number === 1
|
21
|
+
return number === 1
|
22
|
+
? wordKey[0]
|
23
|
+
: number >= 2 && number <= 4
|
24
|
+
? wordKey[1]
|
25
|
+
: wordKey[2];
|
26
26
|
},
|
27
27
|
translate: function (number, withoutSuffix, key) {
|
28
28
|
var wordKey = translator.words[key];
|
29
29
|
if (key.length === 1) {
|
30
30
|
return withoutSuffix ? wordKey[0] : wordKey[1];
|
31
31
|
} else {
|
32
|
-
return
|
32
|
+
return (
|
33
|
+
number +
|
34
|
+
' ' +
|
35
|
+
translator.correctGrammaticalCase(number, wordKey)
|
36
|
+
);
|
33
37
|
}
|
34
|
-
}
|
38
|
+
},
|
35
39
|
};
|
36
40
|
|
37
|
-
|
38
|
-
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
|
39
|
-
|
41
|
+
export default moment.defineLocale('sr', {
|
42
|
+
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
|
43
|
+
'_'
|
44
|
+
),
|
45
|
+
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
|
46
|
+
'_'
|
47
|
+
),
|
40
48
|
monthsParseExact: true,
|
41
|
-
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
|
49
|
+
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
|
50
|
+
'_'
|
51
|
+
),
|
42
52
|
weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
|
43
53
|
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
44
|
-
weekdaysParseExact
|
54
|
+
weekdaysParseExact: true,
|
45
55
|
longDateFormat: {
|
46
56
|
LT: 'H:mm',
|
47
|
-
LTS
|
48
|
-
L: '
|
49
|
-
LL: 'D. MMMM YYYY',
|
50
|
-
LLL: 'D. MMMM YYYY H:mm',
|
51
|
-
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
57
|
+
LTS: 'H:mm:ss',
|
58
|
+
L: 'D. M. YYYY.',
|
59
|
+
LL: 'D. MMMM YYYY.',
|
60
|
+
LLL: 'D. MMMM YYYY. H:mm',
|
61
|
+
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
52
62
|
},
|
53
63
|
calendar: {
|
54
64
|
sameDay: '[danas u] LT',
|
@@ -68,8 +78,8 @@ var sr = moment.defineLocale('sr', {
|
|
68
78
|
return '[u] dddd [u] LT';
|
69
79
|
}
|
70
80
|
},
|
71
|
-
lastDay
|
72
|
-
lastWeek
|
81
|
+
lastDay: '[juče u] LT',
|
82
|
+
lastWeek: function () {
|
73
83
|
var lastWeekDays = [
|
74
84
|
'[prošle] [nedelje] [u] LT',
|
75
85
|
'[prošlog] [ponedeljka] [u] LT',
|
@@ -77,36 +87,32 @@ var sr = moment.defineLocale('sr', {
|
|
77
87
|
'[prošle] [srede] [u] LT',
|
78
88
|
'[prošlog] [četvrtka] [u] LT',
|
79
89
|
'[prošlog] [petka] [u] LT',
|
80
|
-
'[prošle] [subote] [u] LT'
|
90
|
+
'[prošle] [subote] [u] LT',
|
81
91
|
];
|
82
92
|
return lastWeekDays[this.day()];
|
83
93
|
},
|
84
|
-
sameElse
|
94
|
+
sameElse: 'L',
|
85
95
|
},
|
86
|
-
relativeTime
|
87
|
-
future
|
88
|
-
past
|
89
|
-
s
|
90
|
-
ss
|
91
|
-
m
|
92
|
-
mm
|
93
|
-
h
|
94
|
-
hh
|
95
|
-
d
|
96
|
-
dd
|
97
|
-
M
|
98
|
-
MM
|
99
|
-
y
|
100
|
-
yy
|
96
|
+
relativeTime: {
|
97
|
+
future: 'za %s',
|
98
|
+
past: 'pre %s',
|
99
|
+
s: 'nekoliko sekundi',
|
100
|
+
ss: translator.translate,
|
101
|
+
m: translator.translate,
|
102
|
+
mm: translator.translate,
|
103
|
+
h: translator.translate,
|
104
|
+
hh: translator.translate,
|
105
|
+
d: 'dan',
|
106
|
+
dd: translator.translate,
|
107
|
+
M: 'mesec',
|
108
|
+
MM: translator.translate,
|
109
|
+
y: 'godinu',
|
110
|
+
yy: translator.translate,
|
101
111
|
},
|
102
112
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
103
|
-
ordinal
|
104
|
-
week
|
105
|
-
dow
|
106
|
-
doy
|
107
|
-
}
|
113
|
+
ordinal: '%d.',
|
114
|
+
week: {
|
115
|
+
dow: 1, // Monday is the first day of the week.
|
116
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
117
|
+
},
|
108
118
|
});
|
109
|
-
|
110
|
-
return sr;
|
111
|
-
|
112
|
-
})));
|
@@ -2,56 +2,53 @@
|
|
2
2
|
//! locale : siSwati [ss]
|
3
3
|
//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
|
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
|
-
monthsShort
|
17
|
-
weekdays
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
7
|
+
export default moment.defineLocale('ss', {
|
8
|
+
months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
|
12
|
+
weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
|
16
|
+
weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
|
17
|
+
weekdaysParseExact: true,
|
18
|
+
longDateFormat: {
|
19
|
+
LT: 'h:mm A',
|
20
|
+
LTS: 'h:mm:ss A',
|
21
|
+
L: 'DD/MM/YYYY',
|
22
|
+
LL: 'D MMMM YYYY',
|
23
|
+
LLL: 'D MMMM YYYY h:mm A',
|
24
|
+
LLLL: 'dddd, D MMMM YYYY h:mm A',
|
28
25
|
},
|
29
|
-
calendar
|
30
|
-
sameDay
|
31
|
-
nextDay
|
32
|
-
nextWeek
|
33
|
-
lastDay
|
34
|
-
lastWeek
|
35
|
-
sameElse
|
26
|
+
calendar: {
|
27
|
+
sameDay: '[Namuhla nga] LT',
|
28
|
+
nextDay: '[Kusasa nga] LT',
|
29
|
+
nextWeek: 'dddd [nga] LT',
|
30
|
+
lastDay: '[Itolo nga] LT',
|
31
|
+
lastWeek: 'dddd [leliphelile] [nga] LT',
|
32
|
+
sameElse: 'L',
|
36
33
|
},
|
37
|
-
relativeTime
|
38
|
-
future
|
39
|
-
past
|
40
|
-
s
|
41
|
-
ss
|
42
|
-
m
|
43
|
-
mm
|
44
|
-
h
|
45
|
-
hh
|
46
|
-
d
|
47
|
-
dd
|
48
|
-
M
|
49
|
-
MM
|
50
|
-
y
|
51
|
-
yy
|
34
|
+
relativeTime: {
|
35
|
+
future: 'nga %s',
|
36
|
+
past: 'wenteka nga %s',
|
37
|
+
s: 'emizuzwana lomcane',
|
38
|
+
ss: '%d mzuzwana',
|
39
|
+
m: 'umzuzu',
|
40
|
+
mm: '%d emizuzu',
|
41
|
+
h: 'lihora',
|
42
|
+
hh: '%d emahora',
|
43
|
+
d: 'lilanga',
|
44
|
+
dd: '%d emalanga',
|
45
|
+
M: 'inyanga',
|
46
|
+
MM: '%d tinyanga',
|
47
|
+
y: 'umnyaka',
|
48
|
+
yy: '%d iminyaka',
|
52
49
|
},
|
53
50
|
meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
|
54
|
-
meridiem
|
51
|
+
meridiem: function (hours, minutes, isLower) {
|
55
52
|
if (hours < 11) {
|
56
53
|
return 'ekuseni';
|
57
54
|
} else if (hours < 15) {
|
@@ -62,7 +59,7 @@ var ss = moment.defineLocale('ss', {
|
|
62
59
|
return 'ebusuku';
|
63
60
|
}
|
64
61
|
},
|
65
|
-
meridiemHour
|
62
|
+
meridiemHour: function (hour, meridiem) {
|
66
63
|
if (hour === 12) {
|
67
64
|
hour = 0;
|
68
65
|
}
|
@@ -78,13 +75,9 @@ var ss = moment.defineLocale('ss', {
|
|
78
75
|
}
|
79
76
|
},
|
80
77
|
dayOfMonthOrdinalParse: /\d{1,2}/,
|
81
|
-
ordinal
|
82
|
-
week
|
83
|
-
dow
|
84
|
-
doy
|
85
|
-
}
|
78
|
+
ordinal: '%d',
|
79
|
+
week: {
|
80
|
+
dow: 1, // Monday is the first day of the week.
|
81
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
82
|
+
},
|
86
83
|
});
|
87
|
-
|
88
|
-
return ss;
|
89
|
-
|
90
|
-
})));
|
@@ -2,69 +2,67 @@
|
|
2
2
|
//! locale : Swedish [sv]
|
3
3
|
//! author : Jens Alm : https://github.com/ulmus
|
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
|
-
|
26
|
-
|
27
|
-
|
7
|
+
export default moment.defineLocale('sv', {
|
8
|
+
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
12
|
+
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
13
|
+
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
14
|
+
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
15
|
+
longDateFormat: {
|
16
|
+
LT: 'HH:mm',
|
17
|
+
LTS: 'HH:mm:ss',
|
18
|
+
L: 'YYYY-MM-DD',
|
19
|
+
LL: 'D MMMM YYYY',
|
20
|
+
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
21
|
+
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
22
|
+
lll: 'D MMM YYYY HH:mm',
|
23
|
+
llll: 'ddd D MMM YYYY HH:mm',
|
28
24
|
},
|
29
|
-
calendar
|
25
|
+
calendar: {
|
30
26
|
sameDay: '[Idag] LT',
|
31
27
|
nextDay: '[Imorgon] LT',
|
32
28
|
lastDay: '[Igår] LT',
|
33
29
|
nextWeek: '[På] dddd LT',
|
34
30
|
lastWeek: '[I] dddd[s] LT',
|
35
|
-
sameElse: 'L'
|
31
|
+
sameElse: 'L',
|
36
32
|
},
|
37
|
-
relativeTime
|
38
|
-
future
|
39
|
-
past
|
40
|
-
s
|
41
|
-
ss
|
42
|
-
m
|
43
|
-
mm
|
44
|
-
h
|
45
|
-
hh
|
46
|
-
d
|
47
|
-
dd
|
48
|
-
M
|
49
|
-
MM
|
50
|
-
y
|
51
|
-
yy
|
33
|
+
relativeTime: {
|
34
|
+
future: 'om %s',
|
35
|
+
past: 'för %s sedan',
|
36
|
+
s: 'några sekunder',
|
37
|
+
ss: '%d sekunder',
|
38
|
+
m: 'en minut',
|
39
|
+
mm: '%d minuter',
|
40
|
+
h: 'en timme',
|
41
|
+
hh: '%d timmar',
|
42
|
+
d: 'en dag',
|
43
|
+
dd: '%d dagar',
|
44
|
+
M: 'en månad',
|
45
|
+
MM: '%d månader',
|
46
|
+
y: 'ett år',
|
47
|
+
yy: '%d år',
|
52
48
|
},
|
53
|
-
dayOfMonthOrdinalParse: /\d{1,2}(e
|
54
|
-
ordinal
|
49
|
+
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
50
|
+
ordinal: function (number) {
|
55
51
|
var b = number % 10,
|
56
|
-
output =
|
57
|
-
|
58
|
-
|
59
|
-
|
52
|
+
output =
|
53
|
+
~~((number % 100) / 10) === 1
|
54
|
+
? ':e'
|
55
|
+
: b === 1
|
56
|
+
? ':a'
|
57
|
+
: b === 2
|
58
|
+
? ':a'
|
59
|
+
: b === 3
|
60
|
+
? ':e'
|
61
|
+
: ':e';
|
60
62
|
return number + output;
|
61
63
|
},
|
62
|
-
week
|
63
|
-
dow
|
64
|
-
doy
|
65
|
-
}
|
64
|
+
week: {
|
65
|
+
dow: 1, // Monday is the first day of the week.
|
66
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
67
|
+
},
|
66
68
|
});
|
67
|
-
|
68
|
-
return sv;
|
69
|
-
|
70
|
-
})));
|
@@ -2,59 +2,53 @@
|
|
2
2
|
//! locale : Swahili [sw]
|
3
3
|
//! author : Fahad Kassim : https://github.com/fadsel
|
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
|
-
|
26
|
-
|
7
|
+
export default moment.defineLocale('sw', {
|
8
|
+
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
|
12
|
+
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
|
16
|
+
weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
|
17
|
+
weekdaysParseExact: true,
|
18
|
+
longDateFormat: {
|
19
|
+
LT: 'hh:mm A',
|
20
|
+
LTS: 'HH:mm:ss',
|
21
|
+
L: 'DD.MM.YYYY',
|
22
|
+
LL: 'D MMMM YYYY',
|
23
|
+
LLL: 'D MMMM YYYY HH:mm',
|
24
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
25
|
+
},
|
26
|
+
calendar: {
|
27
|
+
sameDay: '[leo saa] LT',
|
28
|
+
nextDay: '[kesho saa] LT',
|
29
|
+
nextWeek: '[wiki ijayo] dddd [saat] LT',
|
30
|
+
lastDay: '[jana] LT',
|
31
|
+
lastWeek: '[wiki iliyopita] dddd [saat] LT',
|
32
|
+
sameElse: 'L',
|
27
33
|
},
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
34
|
+
relativeTime: {
|
35
|
+
future: '%s baadaye',
|
36
|
+
past: 'tokea %s',
|
37
|
+
s: 'hivi punde',
|
38
|
+
ss: 'sekunde %d',
|
39
|
+
m: 'dakika moja',
|
40
|
+
mm: 'dakika %d',
|
41
|
+
h: 'saa limoja',
|
42
|
+
hh: 'masaa %d',
|
43
|
+
d: 'siku moja',
|
44
|
+
dd: 'siku %d',
|
45
|
+
M: 'mwezi mmoja',
|
46
|
+
MM: 'miezi %d',
|
47
|
+
y: 'mwaka mmoja',
|
48
|
+
yy: 'miaka %d',
|
35
49
|
},
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
s : 'hivi punde',
|
40
|
-
ss : 'sekunde %d',
|
41
|
-
m : 'dakika moja',
|
42
|
-
mm : 'dakika %d',
|
43
|
-
h : 'saa limoja',
|
44
|
-
hh : 'masaa %d',
|
45
|
-
d : 'siku moja',
|
46
|
-
dd : 'masiku %d',
|
47
|
-
M : 'mwezi mmoja',
|
48
|
-
MM : 'miezi %d',
|
49
|
-
y : 'mwaka mmoja',
|
50
|
-
yy : 'miaka %d'
|
50
|
+
week: {
|
51
|
+
dow: 1, // Monday is the first day of the week.
|
52
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
51
53
|
},
|
52
|
-
week : {
|
53
|
-
dow : 1, // Monday is the first day of the week.
|
54
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
55
|
-
}
|
56
54
|
});
|
57
|
-
|
58
|
-
return sw;
|
59
|
-
|
60
|
-
})));
|