@revivejs/moment 2.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +996 -0
- package/LICENSE +22 -0
- package/README.md +158 -0
- package/dist/locale/af.js +71 -0
- package/dist/locale/ar-dz.js +156 -0
- package/dist/locale/ar-kw.js +55 -0
- package/dist/locale/ar-ly.js +171 -0
- package/dist/locale/ar-ma.js +56 -0
- package/dist/locale/ar-ps.js +112 -0
- package/dist/locale/ar-sa.js +105 -0
- package/dist/locale/ar-tn.js +55 -0
- package/dist/locale/ar.js +189 -0
- package/dist/locale/az.js +102 -0
- package/dist/locale/be.js +142 -0
- package/dist/locale/bg.js +87 -0
- package/dist/locale/bm.js +52 -0
- package/dist/locale/bn-bd.js +129 -0
- package/dist/locale/bn.js +119 -0
- package/dist/locale/bo.js +124 -0
- package/dist/locale/br.js +168 -0
- package/dist/locale/bs.js +160 -0
- package/dist/locale/ca.js +100 -0
- package/dist/locale/cs.js +181 -0
- package/dist/locale/cv.js +63 -0
- package/dist/locale/cy.js +98 -0
- package/dist/locale/da.js +53 -0
- package/dist/locale/de-at.js +79 -0
- package/dist/locale/de-ch.js +78 -0
- package/dist/locale/de.js +78 -0
- package/dist/locale/dv.js +90 -0
- package/dist/locale/el.js +106 -0
- package/dist/locale/en-au.js +68 -0
- package/dist/locale/en-ca.js +64 -0
- package/dist/locale/en-gb.js +68 -0
- package/dist/locale/en-ie.js +68 -0
- package/dist/locale/en-il.js +64 -0
- package/dist/locale/en-in.js +68 -0
- package/dist/locale/en-nz.js +68 -0
- package/dist/locale/en-sg.js +68 -0
- package/dist/locale/eo.js +68 -0
- package/dist/locale/es-do.js +108 -0
- package/dist/locale/es-mx.js +110 -0
- package/dist/locale/es-us.js +110 -0
- package/dist/locale/es.js +110 -0
- package/dist/locale/et.js +78 -0
- package/dist/locale/eu.js +65 -0
- package/dist/locale/fa.js +113 -0
- package/dist/locale/fi.js +124 -0
- package/dist/locale/fil.js +58 -0
- package/dist/locale/fo.js +57 -0
- package/dist/locale/fr-ca.js +70 -0
- package/dist/locale/fr-ch.js +74 -0
- package/dist/locale/fr.js +108 -0
- package/dist/locale/fy.js +75 -0
- package/dist/locale/ga.js +95 -0
- package/dist/locale/gd.js +95 -0
- package/dist/locale/gl.js +75 -0
- package/dist/locale/gom-deva.js +126 -0
- package/dist/locale/gom-latn.js +124 -0
- package/dist/locale/gu.js +122 -0
- package/dist/locale/he.js +94 -0
- package/dist/locale/hi.js +168 -0
- package/dist/locale/hr.js +156 -0
- package/dist/locale/hu.js +118 -0
- package/dist/locale/hy-am.js +94 -0
- package/dist/locale/id.js +76 -0
- package/dist/locale/is.js +140 -0
- package/dist/locale/it-ch.js +64 -0
- package/dist/locale/it.js +106 -0
- package/dist/locale/ja.js +148 -0
- package/dist/locale/jv.js +76 -0
- package/dist/locale/ka.js +92 -0
- package/dist/locale/kk.js +82 -0
- package/dist/locale/km.js +103 -0
- package/dist/locale/kn.js +124 -0
- package/dist/locale/ko.js +75 -0
- package/dist/locale/ku-kmr.js +121 -0
- package/dist/locale/ku.js +118 -0
- package/dist/locale/ky.js +84 -0
- package/dist/locale/lb.js +137 -0
- package/dist/locale/lo.js +66 -0
- package/dist/locale/lt.js +125 -0
- package/dist/locale/lv.js +94 -0
- package/dist/locale/me.js +117 -0
- package/dist/locale/mi.js +60 -0
- package/dist/locale/mk.js +85 -0
- package/dist/locale/ml.js +82 -0
- package/dist/locale/mn.js +100 -0
- package/dist/locale/mr.js +203 -0
- package/dist/locale/ms-my.js +76 -0
- package/dist/locale/ms.js +75 -0
- package/dist/locale/mt.js +56 -0
- package/dist/locale/my.js +91 -0
- package/dist/locale/nb.js +60 -0
- package/dist/locale/ne.js +121 -0
- package/dist/locale/nl-be.js +102 -0
- package/dist/locale/nl.js +104 -0
- package/dist/locale/nn.js +59 -0
- package/dist/locale/oc-lnc.js +85 -0
- package/dist/locale/pa-in.js +122 -0
- package/dist/locale/pl.js +140 -0
- package/dist/locale/pt-br.js +58 -0
- package/dist/locale/pt.js +63 -0
- package/dist/locale/ro.js +76 -0
- package/dist/locale/ru.js +213 -0
- package/dist/locale/sd.js +81 -0
- package/dist/locale/se.js +57 -0
- package/dist/locale/si.js +69 -0
- package/dist/locale/sk.js +145 -0
- package/dist/locale/sl.js +171 -0
- package/dist/locale/sq.js +65 -0
- package/dist/locale/sr-cyrl.js +127 -0
- package/dist/locale/sr.js +129 -0
- package/dist/locale/ss.js +84 -0
- package/dist/locale/sv.js +68 -0
- package/dist/locale/sw.js +55 -0
- package/dist/locale/ta.js +131 -0
- package/dist/locale/te.js +88 -0
- package/dist/locale/tet.js +68 -0
- package/dist/locale/tg.js +117 -0
- package/dist/locale/th.js +65 -0
- package/dist/locale/tk.js +91 -0
- package/dist/locale/tl-ph.js +57 -0
- package/dist/locale/tlh.js +124 -0
- package/dist/locale/tr.js +106 -0
- package/dist/locale/tzl.js +89 -0
- package/dist/locale/tzm-latn.js +54 -0
- package/dist/locale/tzm.js +54 -0
- package/dist/locale/ug-cn.js +111 -0
- package/dist/locale/uk.js +167 -0
- package/dist/locale/ur.js +82 -0
- package/dist/locale/uz-latn.js +54 -0
- package/dist/locale/uz.js +51 -0
- package/dist/locale/vi.js +80 -0
- package/dist/locale/x-pseudo.js +73 -0
- package/dist/locale/yo.js +53 -0
- package/dist/locale/zh-cn.js +120 -0
- package/dist/locale/zh-hk.js +101 -0
- package/dist/locale/zh-mo.js +100 -0
- package/dist/locale/zh-tw.js +99 -0
- package/dist/moment.js +5680 -0
- package/ender.js +1 -0
- package/locale/af.js +82 -0
- package/locale/ar-dz.js +167 -0
- package/locale/ar-kw.js +66 -0
- package/locale/ar-ly.js +182 -0
- package/locale/ar-ma.js +67 -0
- package/locale/ar-ps.js +123 -0
- package/locale/ar-sa.js +116 -0
- package/locale/ar-tn.js +66 -0
- package/locale/ar.js +200 -0
- package/locale/az.js +113 -0
- package/locale/be.js +153 -0
- package/locale/bg.js +98 -0
- package/locale/bm.js +62 -0
- package/locale/bn-bd.js +140 -0
- package/locale/bn.js +130 -0
- package/locale/bo.js +135 -0
- package/locale/br.js +179 -0
- package/locale/bs.js +171 -0
- package/locale/ca.js +111 -0
- package/locale/cs.js +192 -0
- package/locale/cv.js +74 -0
- package/locale/cy.js +109 -0
- package/locale/da.js +64 -0
- package/locale/de-at.js +90 -0
- package/locale/de-ch.js +87 -0
- package/locale/de.js +89 -0
- package/locale/dv.js +101 -0
- package/locale/el.js +117 -0
- package/locale/en-au.js +79 -0
- package/locale/en-ca.js +75 -0
- package/locale/en-gb.js +79 -0
- package/locale/en-ie.js +79 -0
- package/locale/en-il.js +75 -0
- package/locale/en-in.js +79 -0
- package/locale/en-nz.js +79 -0
- package/locale/en-sg.js +79 -0
- package/locale/eo.js +79 -0
- package/locale/es-do.js +119 -0
- package/locale/es-mx.js +121 -0
- package/locale/es-us.js +121 -0
- package/locale/es.js +121 -0
- package/locale/et.js +89 -0
- package/locale/eu.js +76 -0
- package/locale/fa.js +124 -0
- package/locale/fi.js +135 -0
- package/locale/fil.js +69 -0
- package/locale/fo.js +68 -0
- package/locale/fr-ca.js +81 -0
- package/locale/fr-ch.js +85 -0
- package/locale/fr.js +119 -0
- package/locale/fy.js +86 -0
- package/locale/ga.js +106 -0
- package/locale/gd.js +106 -0
- package/locale/gl.js +86 -0
- package/locale/gom-deva.js +137 -0
- package/locale/gom-latn.js +135 -0
- package/locale/gu.js +133 -0
- package/locale/he.js +105 -0
- package/locale/hi.js +179 -0
- package/locale/hr.js +167 -0
- package/locale/hu.js +129 -0
- package/locale/hy-am.js +105 -0
- package/locale/id.js +87 -0
- package/locale/is.js +151 -0
- package/locale/it-ch.js +75 -0
- package/locale/it.js +117 -0
- package/locale/ja.js +159 -0
- package/locale/jv.js +87 -0
- package/locale/ka.js +103 -0
- package/locale/kk.js +93 -0
- package/locale/km.js +114 -0
- package/locale/kn.js +135 -0
- package/locale/ko.js +86 -0
- package/locale/ku-kmr.js +125 -0
- package/locale/ku.js +129 -0
- package/locale/ky.js +95 -0
- package/locale/lb.js +148 -0
- package/locale/lo.js +77 -0
- package/locale/lt.js +136 -0
- package/locale/lv.js +105 -0
- package/locale/me.js +128 -0
- package/locale/mi.js +71 -0
- package/locale/mk.js +97 -0
- package/locale/ml.js +93 -0
- package/locale/mn.js +111 -0
- package/locale/mr.js +214 -0
- package/locale/ms-my.js +87 -0
- package/locale/ms.js +86 -0
- package/locale/mt.js +67 -0
- package/locale/my.js +102 -0
- package/locale/nb.js +71 -0
- package/locale/ne.js +132 -0
- package/locale/nl-be.js +113 -0
- package/locale/nl.js +115 -0
- package/locale/nn.js +70 -0
- package/locale/oc-lnc.js +96 -0
- package/locale/pa-in.js +133 -0
- package/locale/pl.js +151 -0
- package/locale/pt-br.js +69 -0
- package/locale/pt.js +74 -0
- package/locale/ro.js +87 -0
- package/locale/ru.js +224 -0
- package/locale/sd.js +92 -0
- package/locale/se.js +68 -0
- package/locale/si.js +80 -0
- package/locale/sk.js +156 -0
- package/locale/sl.js +182 -0
- package/locale/sq.js +76 -0
- package/locale/sr-cyrl.js +138 -0
- package/locale/sr.js +140 -0
- package/locale/ss.js +95 -0
- package/locale/sv.js +79 -0
- package/locale/sw.js +66 -0
- package/locale/ta.js +142 -0
- package/locale/te.js +99 -0
- package/locale/tet.js +79 -0
- package/locale/tg.js +128 -0
- package/locale/th.js +76 -0
- package/locale/tk.js +102 -0
- package/locale/tl-ph.js +68 -0
- package/locale/tlh.js +135 -0
- package/locale/tr.js +117 -0
- package/locale/tzl.js +100 -0
- package/locale/tzm-latn.js +65 -0
- package/locale/tzm.js +65 -0
- package/locale/ug-cn.js +122 -0
- package/locale/uk.js +178 -0
- package/locale/ur.js +93 -0
- package/locale/uz-latn.js +65 -0
- package/locale/uz.js +62 -0
- package/locale/vi.js +91 -0
- package/locale/x-pseudo.js +84 -0
- package/locale/yo.js +64 -0
- package/locale/zh-cn.js +131 -0
- package/locale/zh-hk.js +112 -0
- package/locale/zh-mo.js +111 -0
- package/locale/zh-tw.js +110 -0
- package/min/locales.js +12800 -0
- package/min/locales.min.js +2 -0
- package/min/locales.min.js.map +1 -0
- package/min/moment-with-locales.js +18472 -0
- package/min/moment-with-locales.min.js +2 -0
- package/min/moment-with-locales.min.js.map +1 -0
- package/min/moment.min.js +2 -0
- package/min/moment.min.js.map +1 -0
- package/min/tests.js +149292 -0
- package/moment.d.ts +796 -0
- package/moment.js +5688 -0
- package/package.js +11 -0
- package/package.json +152 -0
- package/ts3.1-typings/moment.d.ts +785 -0
package/locale/sl.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Slovenian [sl]
|
|
3
|
+
//! author : Robert Sedovšek : https://github.com/sedovsek
|
|
4
|
+
|
|
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
|
+
//! moment.js locale configuration
|
|
13
|
+
|
|
14
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
15
|
+
var result = number + ' ';
|
|
16
|
+
switch (key) {
|
|
17
|
+
case 's':
|
|
18
|
+
return withoutSuffix || isFuture
|
|
19
|
+
? 'nekaj sekund'
|
|
20
|
+
: 'nekaj sekundami';
|
|
21
|
+
case 'ss':
|
|
22
|
+
if (number === 1) {
|
|
23
|
+
result += withoutSuffix ? 'sekundo' : 'sekundi';
|
|
24
|
+
} else if (number === 2) {
|
|
25
|
+
result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
|
|
26
|
+
} else if (number < 5) {
|
|
27
|
+
result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
|
|
28
|
+
} else {
|
|
29
|
+
result += 'sekund';
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
case 'm':
|
|
33
|
+
return withoutSuffix ? 'ena minuta' : 'eno minuto';
|
|
34
|
+
case 'mm':
|
|
35
|
+
if (number === 1) {
|
|
36
|
+
result += withoutSuffix ? 'minuta' : 'minuto';
|
|
37
|
+
} else if (number === 2) {
|
|
38
|
+
result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
|
|
39
|
+
} else if (number < 5) {
|
|
40
|
+
result += withoutSuffix || isFuture ? 'minute' : 'minutami';
|
|
41
|
+
} else {
|
|
42
|
+
result += withoutSuffix || isFuture ? 'minut' : 'minutami';
|
|
43
|
+
}
|
|
44
|
+
return result;
|
|
45
|
+
case 'h':
|
|
46
|
+
return withoutSuffix ? 'ena ura' : 'eno uro';
|
|
47
|
+
case 'hh':
|
|
48
|
+
if (number === 1) {
|
|
49
|
+
result += withoutSuffix ? 'ura' : 'uro';
|
|
50
|
+
} else if (number === 2) {
|
|
51
|
+
result += withoutSuffix || isFuture ? 'uri' : 'urama';
|
|
52
|
+
} else if (number < 5) {
|
|
53
|
+
result += withoutSuffix || isFuture ? 'ure' : 'urami';
|
|
54
|
+
} else {
|
|
55
|
+
result += withoutSuffix || isFuture ? 'ur' : 'urami';
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
case 'd':
|
|
59
|
+
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
|
|
60
|
+
case 'dd':
|
|
61
|
+
if (number === 1) {
|
|
62
|
+
result += withoutSuffix || isFuture ? 'dan' : 'dnem';
|
|
63
|
+
} else if (number === 2) {
|
|
64
|
+
result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
|
|
65
|
+
} else {
|
|
66
|
+
result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
case 'M':
|
|
70
|
+
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
|
|
71
|
+
case 'MM':
|
|
72
|
+
if (number === 1) {
|
|
73
|
+
result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
|
|
74
|
+
} else if (number === 2) {
|
|
75
|
+
result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
|
|
76
|
+
} else if (number < 5) {
|
|
77
|
+
result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
|
|
78
|
+
} else {
|
|
79
|
+
result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
case 'y':
|
|
83
|
+
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
|
|
84
|
+
case 'yy':
|
|
85
|
+
if (number === 1) {
|
|
86
|
+
result += withoutSuffix || isFuture ? 'leto' : 'letom';
|
|
87
|
+
} else if (number === 2) {
|
|
88
|
+
result += withoutSuffix || isFuture ? 'leti' : 'letoma';
|
|
89
|
+
} else if (number < 5) {
|
|
90
|
+
result += withoutSuffix || isFuture ? 'leta' : 'leti';
|
|
91
|
+
} else {
|
|
92
|
+
result += withoutSuffix || isFuture ? 'let' : 'leti';
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var sl = moment.defineLocale('sl', {
|
|
99
|
+
months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
|
|
100
|
+
'_'
|
|
101
|
+
),
|
|
102
|
+
monthsShort:
|
|
103
|
+
'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
|
|
104
|
+
'_'
|
|
105
|
+
),
|
|
106
|
+
monthsParseExact: true,
|
|
107
|
+
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
|
108
|
+
weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
|
|
109
|
+
weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
|
|
110
|
+
weekdaysParseExact: true,
|
|
111
|
+
longDateFormat: {
|
|
112
|
+
LT: 'H:mm',
|
|
113
|
+
LTS: 'H:mm:ss',
|
|
114
|
+
L: 'DD. MM. YYYY',
|
|
115
|
+
LL: 'D. MMMM YYYY',
|
|
116
|
+
LLL: 'D. MMMM YYYY H:mm',
|
|
117
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
|
118
|
+
},
|
|
119
|
+
calendar: {
|
|
120
|
+
sameDay: '[danes ob] LT',
|
|
121
|
+
nextDay: '[jutri ob] LT',
|
|
122
|
+
|
|
123
|
+
nextWeek: function () {
|
|
124
|
+
switch (this.day()) {
|
|
125
|
+
case 0:
|
|
126
|
+
return '[v] [nedeljo] [ob] LT';
|
|
127
|
+
case 3:
|
|
128
|
+
return '[v] [sredo] [ob] LT';
|
|
129
|
+
case 6:
|
|
130
|
+
return '[v] [soboto] [ob] LT';
|
|
131
|
+
case 1:
|
|
132
|
+
case 2:
|
|
133
|
+
case 4:
|
|
134
|
+
case 5:
|
|
135
|
+
return '[v] dddd [ob] LT';
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
lastDay: '[včeraj ob] LT',
|
|
139
|
+
lastWeek: function () {
|
|
140
|
+
switch (this.day()) {
|
|
141
|
+
case 0:
|
|
142
|
+
return '[prejšnjo] [nedeljo] [ob] LT';
|
|
143
|
+
case 3:
|
|
144
|
+
return '[prejšnjo] [sredo] [ob] LT';
|
|
145
|
+
case 6:
|
|
146
|
+
return '[prejšnjo] [soboto] [ob] LT';
|
|
147
|
+
case 1:
|
|
148
|
+
case 2:
|
|
149
|
+
case 4:
|
|
150
|
+
case 5:
|
|
151
|
+
return '[prejšnji] dddd [ob] LT';
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
sameElse: 'L',
|
|
155
|
+
},
|
|
156
|
+
relativeTime: {
|
|
157
|
+
future: 'čez %s',
|
|
158
|
+
past: 'pred %s',
|
|
159
|
+
s: processRelativeTime,
|
|
160
|
+
ss: processRelativeTime,
|
|
161
|
+
m: processRelativeTime,
|
|
162
|
+
mm: processRelativeTime,
|
|
163
|
+
h: processRelativeTime,
|
|
164
|
+
hh: processRelativeTime,
|
|
165
|
+
d: processRelativeTime,
|
|
166
|
+
dd: processRelativeTime,
|
|
167
|
+
M: processRelativeTime,
|
|
168
|
+
MM: processRelativeTime,
|
|
169
|
+
y: processRelativeTime,
|
|
170
|
+
yy: processRelativeTime,
|
|
171
|
+
},
|
|
172
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
173
|
+
ordinal: '%d.',
|
|
174
|
+
week: {
|
|
175
|
+
dow: 1, // Monday is the first day of the week.
|
|
176
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
return sl;
|
|
181
|
+
|
|
182
|
+
})));
|
package/locale/sq.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Albanian [sq]
|
|
3
|
+
//! author : Flakërim Ismani : https://github.com/flakerimi
|
|
4
|
+
//! author : Menelion Elensúle : https://github.com/Oire
|
|
5
|
+
//! author : Oerd Cukalla : https://github.com/oerd
|
|
6
|
+
|
|
7
|
+
;(function (global, factory) {
|
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
9
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
10
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
11
|
+
factory(global.moment)
|
|
12
|
+
}(this, (function (moment) { 'use strict';
|
|
13
|
+
|
|
14
|
+
//! moment.js locale configuration
|
|
15
|
+
|
|
16
|
+
var sq = moment.defineLocale('sq', {
|
|
17
|
+
months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
|
|
18
|
+
'_'
|
|
19
|
+
),
|
|
20
|
+
monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
|
|
21
|
+
weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
|
|
22
|
+
'_'
|
|
23
|
+
),
|
|
24
|
+
weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
|
|
25
|
+
weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
|
|
26
|
+
weekdaysParseExact: true,
|
|
27
|
+
meridiemParse: /PD|MD/,
|
|
28
|
+
isPM: function (input) {
|
|
29
|
+
return input.charAt(0) === 'M';
|
|
30
|
+
},
|
|
31
|
+
meridiem: function (hours, minutes, isLower) {
|
|
32
|
+
return hours < 12 ? 'PD' : 'MD';
|
|
33
|
+
},
|
|
34
|
+
longDateFormat: {
|
|
35
|
+
LT: 'HH:mm',
|
|
36
|
+
LTS: 'HH:mm:ss',
|
|
37
|
+
L: 'DD/MM/YYYY',
|
|
38
|
+
LL: 'D MMMM YYYY',
|
|
39
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
40
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
41
|
+
},
|
|
42
|
+
calendar: {
|
|
43
|
+
sameDay: '[Sot në] LT',
|
|
44
|
+
nextDay: '[Nesër në] LT',
|
|
45
|
+
nextWeek: 'dddd [në] LT',
|
|
46
|
+
lastDay: '[Dje në] LT',
|
|
47
|
+
lastWeek: 'dddd [e kaluar në] LT',
|
|
48
|
+
sameElse: 'L',
|
|
49
|
+
},
|
|
50
|
+
relativeTime: {
|
|
51
|
+
future: 'në %s',
|
|
52
|
+
past: '%s më parë',
|
|
53
|
+
s: 'disa sekonda',
|
|
54
|
+
ss: '%d sekonda',
|
|
55
|
+
m: 'një minutë',
|
|
56
|
+
mm: '%d minuta',
|
|
57
|
+
h: 'një orë',
|
|
58
|
+
hh: '%d orë',
|
|
59
|
+
d: 'një ditë',
|
|
60
|
+
dd: '%d ditë',
|
|
61
|
+
M: 'një muaj',
|
|
62
|
+
MM: '%d muaj',
|
|
63
|
+
y: 'një vit',
|
|
64
|
+
yy: '%d vite',
|
|
65
|
+
},
|
|
66
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
67
|
+
ordinal: '%d.',
|
|
68
|
+
week: {
|
|
69
|
+
dow: 1, // Monday is the first day of the week.
|
|
70
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
return sq;
|
|
75
|
+
|
|
76
|
+
})));
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Serbian Cyrillic [sr-cyrl]
|
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
|
4
|
+
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
|
5
|
+
|
|
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
|
+
//! moment.js locale configuration
|
|
14
|
+
|
|
15
|
+
var translator = {
|
|
16
|
+
words: {
|
|
17
|
+
//Different grammatical cases
|
|
18
|
+
ss: ['секунда', 'секунде', 'секунди'],
|
|
19
|
+
m: ['један минут', 'једног минута'],
|
|
20
|
+
mm: ['минут', 'минута', 'минута'],
|
|
21
|
+
h: ['један сат', 'једног сата'],
|
|
22
|
+
hh: ['сат', 'сата', 'сати'],
|
|
23
|
+
d: ['један дан', 'једног дана'],
|
|
24
|
+
dd: ['дан', 'дана', 'дана'],
|
|
25
|
+
M: ['један месец', 'једног месеца'],
|
|
26
|
+
MM: ['месец', 'месеца', 'месеци'],
|
|
27
|
+
y: ['једну годину', 'једне године'],
|
|
28
|
+
yy: ['годину', 'године', 'година'],
|
|
29
|
+
},
|
|
30
|
+
correctGrammaticalCase: function (number, wordKey) {
|
|
31
|
+
if (
|
|
32
|
+
number % 10 >= 1 &&
|
|
33
|
+
number % 10 <= 4 &&
|
|
34
|
+
(number % 100 < 10 || number % 100 >= 20)
|
|
35
|
+
) {
|
|
36
|
+
return number % 10 === 1 ? wordKey[0] : wordKey[1];
|
|
37
|
+
}
|
|
38
|
+
return wordKey[2];
|
|
39
|
+
},
|
|
40
|
+
translate: function (number, withoutSuffix, key, isFuture) {
|
|
41
|
+
var wordKey = translator.words[key],
|
|
42
|
+
word;
|
|
43
|
+
|
|
44
|
+
if (key.length === 1) {
|
|
45
|
+
// Nominativ
|
|
46
|
+
if (key === 'y' && withoutSuffix) return 'једна година';
|
|
47
|
+
return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
word = translator.correctGrammaticalCase(number, wordKey);
|
|
51
|
+
// Nominativ
|
|
52
|
+
if (key === 'yy' && withoutSuffix && word === 'годину') {
|
|
53
|
+
return number + ' година';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return number + ' ' + word;
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var srCyrl = moment.defineLocale('sr-cyrl', {
|
|
61
|
+
months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
|
|
62
|
+
'_'
|
|
63
|
+
),
|
|
64
|
+
monthsShort:
|
|
65
|
+
'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
|
|
66
|
+
monthsParseExact: true,
|
|
67
|
+
weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
|
|
68
|
+
weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
|
|
69
|
+
weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
|
|
70
|
+
weekdaysParseExact: true,
|
|
71
|
+
longDateFormat: {
|
|
72
|
+
LT: 'H:mm',
|
|
73
|
+
LTS: 'H:mm:ss',
|
|
74
|
+
L: 'D. M. YYYY.',
|
|
75
|
+
LL: 'D. MMMM YYYY.',
|
|
76
|
+
LLL: 'D. MMMM YYYY. H:mm',
|
|
77
|
+
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
|
78
|
+
},
|
|
79
|
+
calendar: {
|
|
80
|
+
sameDay: '[данас у] LT',
|
|
81
|
+
nextDay: '[сутра у] LT',
|
|
82
|
+
nextWeek: function () {
|
|
83
|
+
switch (this.day()) {
|
|
84
|
+
case 0:
|
|
85
|
+
return '[у] [недељу] [у] LT';
|
|
86
|
+
case 3:
|
|
87
|
+
return '[у] [среду] [у] LT';
|
|
88
|
+
case 6:
|
|
89
|
+
return '[у] [суботу] [у] LT';
|
|
90
|
+
case 1:
|
|
91
|
+
case 2:
|
|
92
|
+
case 4:
|
|
93
|
+
case 5:
|
|
94
|
+
return '[у] dddd [у] LT';
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
lastDay: '[јуче у] LT',
|
|
98
|
+
lastWeek: function () {
|
|
99
|
+
var lastWeekDays = [
|
|
100
|
+
'[прошле] [недеље] [у] LT',
|
|
101
|
+
'[прошлог] [понедељка] [у] LT',
|
|
102
|
+
'[прошлог] [уторка] [у] LT',
|
|
103
|
+
'[прошле] [среде] [у] LT',
|
|
104
|
+
'[прошлог] [четвртка] [у] LT',
|
|
105
|
+
'[прошлог] [петка] [у] LT',
|
|
106
|
+
'[прошле] [суботе] [у] LT',
|
|
107
|
+
];
|
|
108
|
+
return lastWeekDays[this.day()];
|
|
109
|
+
},
|
|
110
|
+
sameElse: 'L',
|
|
111
|
+
},
|
|
112
|
+
relativeTime: {
|
|
113
|
+
future: 'за %s',
|
|
114
|
+
past: 'пре %s',
|
|
115
|
+
s: 'неколико секунди',
|
|
116
|
+
ss: translator.translate,
|
|
117
|
+
m: translator.translate,
|
|
118
|
+
mm: translator.translate,
|
|
119
|
+
h: translator.translate,
|
|
120
|
+
hh: translator.translate,
|
|
121
|
+
d: translator.translate,
|
|
122
|
+
dd: translator.translate,
|
|
123
|
+
M: translator.translate,
|
|
124
|
+
MM: translator.translate,
|
|
125
|
+
y: translator.translate,
|
|
126
|
+
yy: translator.translate,
|
|
127
|
+
},
|
|
128
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
129
|
+
ordinal: '%d.',
|
|
130
|
+
week: {
|
|
131
|
+
dow: 1, // Monday is the first day of the week.
|
|
132
|
+
doy: 7, // The week that contains Jan 1st is the first week of the year.
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
return srCyrl;
|
|
137
|
+
|
|
138
|
+
})));
|
package/locale/sr.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Serbian [sr]
|
|
3
|
+
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
|
|
4
|
+
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
|
|
5
|
+
|
|
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
|
+
//! moment.js locale configuration
|
|
14
|
+
|
|
15
|
+
var translator = {
|
|
16
|
+
words: {
|
|
17
|
+
//Different grammatical cases
|
|
18
|
+
ss: ['sekunda', 'sekunde', 'sekundi'],
|
|
19
|
+
m: ['jedan minut', 'jednog minuta'],
|
|
20
|
+
mm: ['minut', 'minuta', 'minuta'],
|
|
21
|
+
h: ['jedan sat', 'jednog sata'],
|
|
22
|
+
hh: ['sat', 'sata', 'sati'],
|
|
23
|
+
d: ['jedan dan', 'jednog dana'],
|
|
24
|
+
dd: ['dan', 'dana', 'dana'],
|
|
25
|
+
M: ['jedan mesec', 'jednog meseca'],
|
|
26
|
+
MM: ['mesec', 'meseca', 'meseci'],
|
|
27
|
+
y: ['jednu godinu', 'jedne godine'],
|
|
28
|
+
yy: ['godinu', 'godine', 'godina'],
|
|
29
|
+
},
|
|
30
|
+
correctGrammaticalCase: function (number, wordKey) {
|
|
31
|
+
if (
|
|
32
|
+
number % 10 >= 1 &&
|
|
33
|
+
number % 10 <= 4 &&
|
|
34
|
+
(number % 100 < 10 || number % 100 >= 20)
|
|
35
|
+
) {
|
|
36
|
+
return number % 10 === 1 ? wordKey[0] : wordKey[1];
|
|
37
|
+
}
|
|
38
|
+
return wordKey[2];
|
|
39
|
+
},
|
|
40
|
+
translate: function (number, withoutSuffix, key, isFuture) {
|
|
41
|
+
var wordKey = translator.words[key],
|
|
42
|
+
word;
|
|
43
|
+
|
|
44
|
+
if (key.length === 1) {
|
|
45
|
+
// Nominativ
|
|
46
|
+
if (key === 'y' && withoutSuffix) return 'jedna godina';
|
|
47
|
+
return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
word = translator.correctGrammaticalCase(number, wordKey);
|
|
51
|
+
// Nominativ
|
|
52
|
+
if (key === 'yy' && withoutSuffix && word === 'godinu') {
|
|
53
|
+
return number + ' godina';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return number + ' ' + word;
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var sr = moment.defineLocale('sr', {
|
|
61
|
+
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
|
|
62
|
+
'_'
|
|
63
|
+
),
|
|
64
|
+
monthsShort:
|
|
65
|
+
'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
|
|
66
|
+
monthsParseExact: true,
|
|
67
|
+
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
|
|
68
|
+
'_'
|
|
69
|
+
),
|
|
70
|
+
weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
|
|
71
|
+
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
|
72
|
+
weekdaysParseExact: true,
|
|
73
|
+
longDateFormat: {
|
|
74
|
+
LT: 'H:mm',
|
|
75
|
+
LTS: 'H:mm:ss',
|
|
76
|
+
L: 'D. M. YYYY.',
|
|
77
|
+
LL: 'D. MMMM YYYY.',
|
|
78
|
+
LLL: 'D. MMMM YYYY. H:mm',
|
|
79
|
+
LLLL: 'dddd, D. MMMM YYYY. H:mm',
|
|
80
|
+
},
|
|
81
|
+
calendar: {
|
|
82
|
+
sameDay: '[danas u] LT',
|
|
83
|
+
nextDay: '[sutra u] LT',
|
|
84
|
+
nextWeek: function () {
|
|
85
|
+
switch (this.day()) {
|
|
86
|
+
case 0:
|
|
87
|
+
return '[u] [nedelju] [u] LT';
|
|
88
|
+
case 3:
|
|
89
|
+
return '[u] [sredu] [u] LT';
|
|
90
|
+
case 6:
|
|
91
|
+
return '[u] [subotu] [u] LT';
|
|
92
|
+
case 1:
|
|
93
|
+
case 2:
|
|
94
|
+
case 4:
|
|
95
|
+
case 5:
|
|
96
|
+
return '[u] dddd [u] LT';
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
lastDay: '[juče u] LT',
|
|
100
|
+
lastWeek: function () {
|
|
101
|
+
var lastWeekDays = [
|
|
102
|
+
'[prošle] [nedelje] [u] LT',
|
|
103
|
+
'[prošlog] [ponedeljka] [u] LT',
|
|
104
|
+
'[prošlog] [utorka] [u] LT',
|
|
105
|
+
'[prošle] [srede] [u] LT',
|
|
106
|
+
'[prošlog] [četvrtka] [u] LT',
|
|
107
|
+
'[prošlog] [petka] [u] LT',
|
|
108
|
+
'[prošle] [subote] [u] LT',
|
|
109
|
+
];
|
|
110
|
+
return lastWeekDays[this.day()];
|
|
111
|
+
},
|
|
112
|
+
sameElse: 'L',
|
|
113
|
+
},
|
|
114
|
+
relativeTime: {
|
|
115
|
+
future: 'za %s',
|
|
116
|
+
past: 'pre %s',
|
|
117
|
+
s: 'nekoliko sekundi',
|
|
118
|
+
ss: translator.translate,
|
|
119
|
+
m: translator.translate,
|
|
120
|
+
mm: translator.translate,
|
|
121
|
+
h: translator.translate,
|
|
122
|
+
hh: translator.translate,
|
|
123
|
+
d: translator.translate,
|
|
124
|
+
dd: translator.translate,
|
|
125
|
+
M: translator.translate,
|
|
126
|
+
MM: translator.translate,
|
|
127
|
+
y: translator.translate,
|
|
128
|
+
yy: translator.translate,
|
|
129
|
+
},
|
|
130
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
131
|
+
ordinal: '%d.',
|
|
132
|
+
week: {
|
|
133
|
+
dow: 1, // Monday is the first day of the week.
|
|
134
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
return sr;
|
|
139
|
+
|
|
140
|
+
})));
|
package/locale/ss.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : siSwati [ss]
|
|
3
|
+
//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
|
|
4
|
+
|
|
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
|
+
//! moment.js locale configuration
|
|
13
|
+
|
|
14
|
+
var ss = moment.defineLocale('ss', {
|
|
15
|
+
months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
|
|
16
|
+
'_'
|
|
17
|
+
),
|
|
18
|
+
monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
|
|
19
|
+
weekdays:
|
|
20
|
+
'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
|
|
21
|
+
'_'
|
|
22
|
+
),
|
|
23
|
+
weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
|
|
24
|
+
weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
|
|
25
|
+
weekdaysParseExact: true,
|
|
26
|
+
longDateFormat: {
|
|
27
|
+
LT: 'h:mm A',
|
|
28
|
+
LTS: 'h:mm:ss A',
|
|
29
|
+
L: 'DD/MM/YYYY',
|
|
30
|
+
LL: 'D MMMM YYYY',
|
|
31
|
+
LLL: 'D MMMM YYYY h:mm A',
|
|
32
|
+
LLLL: 'dddd, D MMMM YYYY h:mm A',
|
|
33
|
+
},
|
|
34
|
+
calendar: {
|
|
35
|
+
sameDay: '[Namuhla nga] LT',
|
|
36
|
+
nextDay: '[Kusasa nga] LT',
|
|
37
|
+
nextWeek: 'dddd [nga] LT',
|
|
38
|
+
lastDay: '[Itolo nga] LT',
|
|
39
|
+
lastWeek: 'dddd [leliphelile] [nga] LT',
|
|
40
|
+
sameElse: 'L',
|
|
41
|
+
},
|
|
42
|
+
relativeTime: {
|
|
43
|
+
future: 'nga %s',
|
|
44
|
+
past: 'wenteka nga %s',
|
|
45
|
+
s: 'emizuzwana lomcane',
|
|
46
|
+
ss: '%d mzuzwana',
|
|
47
|
+
m: 'umzuzu',
|
|
48
|
+
mm: '%d emizuzu',
|
|
49
|
+
h: 'lihora',
|
|
50
|
+
hh: '%d emahora',
|
|
51
|
+
d: 'lilanga',
|
|
52
|
+
dd: '%d emalanga',
|
|
53
|
+
M: 'inyanga',
|
|
54
|
+
MM: '%d tinyanga',
|
|
55
|
+
y: 'umnyaka',
|
|
56
|
+
yy: '%d iminyaka',
|
|
57
|
+
},
|
|
58
|
+
meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
|
|
59
|
+
meridiem: function (hours, minutes, isLower) {
|
|
60
|
+
if (hours < 11) {
|
|
61
|
+
return 'ekuseni';
|
|
62
|
+
} else if (hours < 15) {
|
|
63
|
+
return 'emini';
|
|
64
|
+
} else if (hours < 19) {
|
|
65
|
+
return 'entsambama';
|
|
66
|
+
} else {
|
|
67
|
+
return 'ebusuku';
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
meridiemHour: function (hour, meridiem) {
|
|
71
|
+
if (hour === 12) {
|
|
72
|
+
hour = 0;
|
|
73
|
+
}
|
|
74
|
+
if (meridiem === 'ekuseni') {
|
|
75
|
+
return hour;
|
|
76
|
+
} else if (meridiem === 'emini') {
|
|
77
|
+
return hour >= 11 ? hour : hour + 12;
|
|
78
|
+
} else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
|
|
79
|
+
if (hour === 0) {
|
|
80
|
+
return 0;
|
|
81
|
+
}
|
|
82
|
+
return hour + 12;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
86
|
+
ordinal: '%d',
|
|
87
|
+
week: {
|
|
88
|
+
dow: 1, // Monday is the first day of the week.
|
|
89
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
return ss;
|
|
94
|
+
|
|
95
|
+
})));
|