js_stack 1.10.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +6 -6
- data/js_stack.gemspec +0 -1
- data/lib/js_stack/version.rb +1 -1
- data/lib/js_stack.rb +0 -1
- data/vendor/assets/javascripts/js_stack/base/backbone/1.2.3.js +1894 -0
- data/vendor/assets/javascripts/js_stack/base/backbone.js +1 -1
- data/vendor/assets/javascripts/js_stack/base/marionette/{2.4.1.js → 2.4.3.js} +265 -138
- data/vendor/assets/javascripts/js_stack/base/marionette.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/backbone/stickit/{0.9.0.js → 0.9.2.js} +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/backbone.stickit.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/moment/2.10.6.js +3195 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/af.js +72 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-ma.js +58 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-sa.js +102 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-tn.js +56 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar.js +135 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/az.js +103 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/be.js +146 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bg.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bn.js +112 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bo.js +109 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/br.js +106 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bs.js +140 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ca.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cs.js +156 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cv.js +62 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cy.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/da.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de-at.js +75 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de.js +74 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/el.js +93 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-au.js +65 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-ca.js +62 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-gb.js +66 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eo.js +72 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/es.js +78 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/et.js +79 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eu.js +63 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fa.js +104 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fi.js +106 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fo.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr-ca.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr.js +61 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fy.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/gl.js +74 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/he.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hi.js +122 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hr.js +139 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hu.js +108 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hy-am.js +110 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/id.js +82 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/is.js +126 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/it.js +69 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ja.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/jv.js +82 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ka.js +102 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/km.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ko.js +67 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lb.js +133 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lt.js +124 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lv.js +95 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/me.js +108 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mk.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ml.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mr.js +120 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms-my.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms.js +81 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/my.js +92 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nb.js +60 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ne.js +122 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nl.js +70 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nn.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pl.js +104 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt-br.js +59 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt.js +63 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ro.js +73 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ru.js +163 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/si.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sk.js +157 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sl.js +159 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sq.js +68 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr-cyrl.js +107 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr.js +107 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sv.js +66 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ta.js +94 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/th.js +64 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tl-ph.js +61 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tr.js +89 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzl.js +84 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm-latn.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uk.js +152 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uz.js +57 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/vi.js +65 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-cn.js +126 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-tw.js +100 -0
- data/vendor/assets/javascripts/js_stack/plugins/moment.js +1 -1
- data/vendor/assets/javascripts/js_stack/plugins/underscore/string/3.2.2.js +1186 -0
- data/vendor/assets/javascripts/js_stack/plugins/underscore.string.js +1 -1
- metadata +93 -20
@@ -0,0 +1,156 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : czech (cs)
|
3
|
+
//! author : petrbela : https://github.com/petrbela
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
13
|
+
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
|
14
|
+
function plural(n) {
|
15
|
+
return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
|
16
|
+
}
|
17
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
18
|
+
var result = number + ' ';
|
19
|
+
switch (key) {
|
20
|
+
case 's': // a few seconds / in a few seconds / a few seconds ago
|
21
|
+
return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
|
22
|
+
case 'm': // a minute / in a minute / a minute ago
|
23
|
+
return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
|
24
|
+
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
25
|
+
if (withoutSuffix || isFuture) {
|
26
|
+
return result + (plural(number) ? 'minuty' : 'minut');
|
27
|
+
} else {
|
28
|
+
return result + 'minutami';
|
29
|
+
}
|
30
|
+
break;
|
31
|
+
case 'h': // an hour / in an hour / an hour ago
|
32
|
+
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
33
|
+
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
34
|
+
if (withoutSuffix || isFuture) {
|
35
|
+
return result + (plural(number) ? 'hodiny' : 'hodin');
|
36
|
+
} else {
|
37
|
+
return result + 'hodinami';
|
38
|
+
}
|
39
|
+
break;
|
40
|
+
case 'd': // a day / in a day / a day ago
|
41
|
+
return (withoutSuffix || isFuture) ? 'den' : 'dnem';
|
42
|
+
case 'dd': // 9 days / in 9 days / 9 days ago
|
43
|
+
if (withoutSuffix || isFuture) {
|
44
|
+
return result + (plural(number) ? 'dny' : 'dní');
|
45
|
+
} else {
|
46
|
+
return result + 'dny';
|
47
|
+
}
|
48
|
+
break;
|
49
|
+
case 'M': // a month / in a month / a month ago
|
50
|
+
return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
|
51
|
+
case 'MM': // 9 months / in 9 months / 9 months ago
|
52
|
+
if (withoutSuffix || isFuture) {
|
53
|
+
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
54
|
+
} else {
|
55
|
+
return result + 'měsíci';
|
56
|
+
}
|
57
|
+
break;
|
58
|
+
case 'y': // a year / in a year / a year ago
|
59
|
+
return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
|
60
|
+
case 'yy': // 9 years / in 9 years / 9 years ago
|
61
|
+
if (withoutSuffix || isFuture) {
|
62
|
+
return result + (plural(number) ? 'roky' : 'let');
|
63
|
+
} else {
|
64
|
+
return result + 'lety';
|
65
|
+
}
|
66
|
+
break;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
var cs = moment.defineLocale('cs', {
|
71
|
+
months : months,
|
72
|
+
monthsShort : monthsShort,
|
73
|
+
monthsParse : (function (months, monthsShort) {
|
74
|
+
var i, _monthsParse = [];
|
75
|
+
for (i = 0; i < 12; i++) {
|
76
|
+
// use custom parser to solve problem with July (červenec)
|
77
|
+
_monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
|
78
|
+
}
|
79
|
+
return _monthsParse;
|
80
|
+
}(months, monthsShort)),
|
81
|
+
weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
82
|
+
weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
|
83
|
+
weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
|
84
|
+
longDateFormat : {
|
85
|
+
LT: 'H:mm',
|
86
|
+
LTS : 'H:mm:ss',
|
87
|
+
L : 'DD.MM.YYYY',
|
88
|
+
LL : 'D. MMMM YYYY',
|
89
|
+
LLL : 'D. MMMM YYYY H:mm',
|
90
|
+
LLLL : 'dddd D. MMMM YYYY H:mm'
|
91
|
+
},
|
92
|
+
calendar : {
|
93
|
+
sameDay: '[dnes v] LT',
|
94
|
+
nextDay: '[zítra v] LT',
|
95
|
+
nextWeek: function () {
|
96
|
+
switch (this.day()) {
|
97
|
+
case 0:
|
98
|
+
return '[v neděli v] LT';
|
99
|
+
case 1:
|
100
|
+
case 2:
|
101
|
+
return '[v] dddd [v] LT';
|
102
|
+
case 3:
|
103
|
+
return '[ve středu v] LT';
|
104
|
+
case 4:
|
105
|
+
return '[ve čtvrtek v] LT';
|
106
|
+
case 5:
|
107
|
+
return '[v pátek v] LT';
|
108
|
+
case 6:
|
109
|
+
return '[v sobotu v] LT';
|
110
|
+
}
|
111
|
+
},
|
112
|
+
lastDay: '[včera v] LT',
|
113
|
+
lastWeek: function () {
|
114
|
+
switch (this.day()) {
|
115
|
+
case 0:
|
116
|
+
return '[minulou neděli v] LT';
|
117
|
+
case 1:
|
118
|
+
case 2:
|
119
|
+
return '[minulé] dddd [v] LT';
|
120
|
+
case 3:
|
121
|
+
return '[minulou středu v] LT';
|
122
|
+
case 4:
|
123
|
+
case 5:
|
124
|
+
return '[minulý] dddd [v] LT';
|
125
|
+
case 6:
|
126
|
+
return '[minulou sobotu v] LT';
|
127
|
+
}
|
128
|
+
},
|
129
|
+
sameElse: 'L'
|
130
|
+
},
|
131
|
+
relativeTime : {
|
132
|
+
future : 'za %s',
|
133
|
+
past : 'před %s',
|
134
|
+
s : translate,
|
135
|
+
m : translate,
|
136
|
+
mm : translate,
|
137
|
+
h : translate,
|
138
|
+
hh : translate,
|
139
|
+
d : translate,
|
140
|
+
dd : translate,
|
141
|
+
M : translate,
|
142
|
+
MM : translate,
|
143
|
+
y : translate,
|
144
|
+
yy : translate
|
145
|
+
},
|
146
|
+
ordinalParse : /\d{1,2}\./,
|
147
|
+
ordinal : '%d.',
|
148
|
+
week : {
|
149
|
+
dow : 1, // Monday is the first day of the week.
|
150
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
151
|
+
}
|
152
|
+
});
|
153
|
+
|
154
|
+
return cs;
|
155
|
+
|
156
|
+
}));
|
@@ -0,0 +1,62 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : chuvash (cv)
|
3
|
+
//! author : Anatoly Mironov : https://github.com/mirontoli
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var cv = moment.defineLocale('cv', {
|
13
|
+
months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
|
14
|
+
monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
15
|
+
weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
|
16
|
+
weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
17
|
+
weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
20
|
+
LTS : 'HH:mm:ss',
|
21
|
+
L : 'DD-MM-YYYY',
|
22
|
+
LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
23
|
+
LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
24
|
+
LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay: '[Паян] LT [сехетре]',
|
28
|
+
nextDay: '[Ыран] LT [сехетре]',
|
29
|
+
lastDay: '[Ӗнер] LT [сехетре]',
|
30
|
+
nextWeek: '[Ҫитес] dddd LT [сехетре]',
|
31
|
+
lastWeek: '[Иртнӗ] dddd LT [сехетре]',
|
32
|
+
sameElse: 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : function (output) {
|
36
|
+
var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
|
37
|
+
return output + affix;
|
38
|
+
},
|
39
|
+
past : '%s каялла',
|
40
|
+
s : 'пӗр-ик ҫеккунт',
|
41
|
+
m : 'пӗр минут',
|
42
|
+
mm : '%d минут',
|
43
|
+
h : 'пӗр сехет',
|
44
|
+
hh : '%d сехет',
|
45
|
+
d : 'пӗр кун',
|
46
|
+
dd : '%d кун',
|
47
|
+
M : 'пӗр уйӑх',
|
48
|
+
MM : '%d уйӑх',
|
49
|
+
y : 'пӗр ҫул',
|
50
|
+
yy : '%d ҫул'
|
51
|
+
},
|
52
|
+
ordinalParse: /\d{1,2}-мӗш/,
|
53
|
+
ordinal : '%d-мӗш',
|
54
|
+
week : {
|
55
|
+
dow : 1, // Monday is the first day of the week.
|
56
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
57
|
+
}
|
58
|
+
});
|
59
|
+
|
60
|
+
return cv;
|
61
|
+
|
62
|
+
}));
|
@@ -0,0 +1,78 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Welsh (cy)
|
3
|
+
//! author : Robert Allen
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var cy = moment.defineLocale('cy', {
|
13
|
+
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
|
14
|
+
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
|
15
|
+
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
|
16
|
+
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
|
17
|
+
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
|
18
|
+
// time formats are the same as en-gb
|
19
|
+
longDateFormat: {
|
20
|
+
LT: 'HH:mm',
|
21
|
+
LTS : 'HH:mm:ss',
|
22
|
+
L: 'DD/MM/YYYY',
|
23
|
+
LL: 'D MMMM YYYY',
|
24
|
+
LLL: 'D MMMM YYYY HH:mm',
|
25
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
26
|
+
},
|
27
|
+
calendar: {
|
28
|
+
sameDay: '[Heddiw am] LT',
|
29
|
+
nextDay: '[Yfory am] LT',
|
30
|
+
nextWeek: 'dddd [am] LT',
|
31
|
+
lastDay: '[Ddoe am] LT',
|
32
|
+
lastWeek: 'dddd [diwethaf am] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime: {
|
36
|
+
future: 'mewn %s',
|
37
|
+
past: '%s yn ôl',
|
38
|
+
s: 'ychydig eiliadau',
|
39
|
+
m: 'munud',
|
40
|
+
mm: '%d munud',
|
41
|
+
h: 'awr',
|
42
|
+
hh: '%d awr',
|
43
|
+
d: 'diwrnod',
|
44
|
+
dd: '%d diwrnod',
|
45
|
+
M: 'mis',
|
46
|
+
MM: '%d mis',
|
47
|
+
y: 'blwyddyn',
|
48
|
+
yy: '%d flynedd'
|
49
|
+
},
|
50
|
+
ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
|
51
|
+
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
|
52
|
+
ordinal: function (number) {
|
53
|
+
var b = number,
|
54
|
+
output = '',
|
55
|
+
lookup = [
|
56
|
+
'', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
|
57
|
+
'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
|
58
|
+
];
|
59
|
+
if (b > 20) {
|
60
|
+
if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
|
61
|
+
output = 'fed'; // not 30ain, 70ain or 90ain
|
62
|
+
} else {
|
63
|
+
output = 'ain';
|
64
|
+
}
|
65
|
+
} else if (b > 0) {
|
66
|
+
output = lookup[b];
|
67
|
+
}
|
68
|
+
return number + output;
|
69
|
+
},
|
70
|
+
week : {
|
71
|
+
dow : 1, // Monday is the first day of the week.
|
72
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
73
|
+
}
|
74
|
+
});
|
75
|
+
|
76
|
+
return cy;
|
77
|
+
|
78
|
+
}));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : danish (da)
|
3
|
+
//! author : Ulrik Nielsen : https://github.com/mrbase
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var da = moment.defineLocale('da', {
|
13
|
+
months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
|
14
|
+
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
15
|
+
weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
16
|
+
weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
|
17
|
+
weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
18
|
+
longDateFormat : {
|
19
|
+
LT : 'HH:mm',
|
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.] D. MMMM YYYY HH:mm'
|
25
|
+
},
|
26
|
+
calendar : {
|
27
|
+
sameDay : '[I dag kl.] LT',
|
28
|
+
nextDay : '[I morgen kl.] LT',
|
29
|
+
nextWeek : 'dddd [kl.] LT',
|
30
|
+
lastDay : '[I går kl.] LT',
|
31
|
+
lastWeek : '[sidste] dddd [kl] LT',
|
32
|
+
sameElse : 'L'
|
33
|
+
},
|
34
|
+
relativeTime : {
|
35
|
+
future : 'om %s',
|
36
|
+
past : '%s siden',
|
37
|
+
s : 'få sekunder',
|
38
|
+
m : 'et minut',
|
39
|
+
mm : '%d minutter',
|
40
|
+
h : 'en time',
|
41
|
+
hh : '%d timer',
|
42
|
+
d : 'en dag',
|
43
|
+
dd : '%d dage',
|
44
|
+
M : 'en måned',
|
45
|
+
MM : '%d måneder',
|
46
|
+
y : 'et år',
|
47
|
+
yy : '%d år'
|
48
|
+
},
|
49
|
+
ordinalParse: /\d{1,2}\./,
|
50
|
+
ordinal : '%d.',
|
51
|
+
week : {
|
52
|
+
dow : 1, // Monday is the first day of the week.
|
53
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
54
|
+
}
|
55
|
+
});
|
56
|
+
|
57
|
+
return da;
|
58
|
+
|
59
|
+
}));
|
@@ -0,0 +1,75 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : austrian german (de-at)
|
3
|
+
//! author : lluchs : https://github.com/lluchs
|
4
|
+
//! author: Menelion Elensúle: https://github.com/Oire
|
5
|
+
//! author : Martin Groller : https://github.com/MadMG
|
6
|
+
|
7
|
+
(function (global, factory) {
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
9
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
10
|
+
factory(global.moment)
|
11
|
+
}(this, function (moment) { 'use strict';
|
12
|
+
|
13
|
+
|
14
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
15
|
+
var format = {
|
16
|
+
'm': ['eine Minute', 'einer Minute'],
|
17
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
18
|
+
'd': ['ein Tag', 'einem Tag'],
|
19
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
20
|
+
'M': ['ein Monat', 'einem Monat'],
|
21
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
22
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
23
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
24
|
+
};
|
25
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
26
|
+
}
|
27
|
+
|
28
|
+
var de_at = moment.defineLocale('de-at', {
|
29
|
+
months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
30
|
+
monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
31
|
+
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
32
|
+
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
33
|
+
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
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: '[Heute um] LT [Uhr]',
|
44
|
+
sameElse: 'L',
|
45
|
+
nextDay: '[Morgen um] LT [Uhr]',
|
46
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
47
|
+
lastDay: '[Gestern um] LT [Uhr]',
|
48
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
49
|
+
},
|
50
|
+
relativeTime : {
|
51
|
+
future : 'in %s',
|
52
|
+
past : 'vor %s',
|
53
|
+
s : 'ein paar Sekunden',
|
54
|
+
m : processRelativeTime,
|
55
|
+
mm : '%d Minuten',
|
56
|
+
h : processRelativeTime,
|
57
|
+
hh : '%d Stunden',
|
58
|
+
d : processRelativeTime,
|
59
|
+
dd : processRelativeTime,
|
60
|
+
M : processRelativeTime,
|
61
|
+
MM : processRelativeTime,
|
62
|
+
y : processRelativeTime,
|
63
|
+
yy : processRelativeTime
|
64
|
+
},
|
65
|
+
ordinalParse: /\d{1,2}\./,
|
66
|
+
ordinal : '%d.',
|
67
|
+
week : {
|
68
|
+
dow : 1, // Monday is the first day of the week.
|
69
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
70
|
+
}
|
71
|
+
});
|
72
|
+
|
73
|
+
return de_at;
|
74
|
+
|
75
|
+
}));
|
@@ -0,0 +1,74 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : german (de)
|
3
|
+
//! author : lluchs : https://github.com/lluchs
|
4
|
+
//! author: Menelion Elensúle: https://github.com/Oire
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
12
|
+
|
13
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
14
|
+
var format = {
|
15
|
+
'm': ['eine Minute', 'einer Minute'],
|
16
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
17
|
+
'd': ['ein Tag', 'einem Tag'],
|
18
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
19
|
+
'M': ['ein Monat', 'einem Monat'],
|
20
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
21
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
22
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
23
|
+
};
|
24
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
25
|
+
}
|
26
|
+
|
27
|
+
var de = moment.defineLocale('de', {
|
28
|
+
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
29
|
+
monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
30
|
+
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
31
|
+
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
32
|
+
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
33
|
+
longDateFormat : {
|
34
|
+
LT: 'HH:mm',
|
35
|
+
LTS: 'HH:mm:ss',
|
36
|
+
L : 'DD.MM.YYYY',
|
37
|
+
LL : 'D. MMMM YYYY',
|
38
|
+
LLL : 'D. MMMM YYYY HH:mm',
|
39
|
+
LLLL : 'dddd, D. MMMM YYYY HH:mm'
|
40
|
+
},
|
41
|
+
calendar : {
|
42
|
+
sameDay: '[Heute um] LT [Uhr]',
|
43
|
+
sameElse: 'L',
|
44
|
+
nextDay: '[Morgen um] LT [Uhr]',
|
45
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
46
|
+
lastDay: '[Gestern um] LT [Uhr]',
|
47
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
48
|
+
},
|
49
|
+
relativeTime : {
|
50
|
+
future : 'in %s',
|
51
|
+
past : 'vor %s',
|
52
|
+
s : 'ein paar Sekunden',
|
53
|
+
m : processRelativeTime,
|
54
|
+
mm : '%d Minuten',
|
55
|
+
h : processRelativeTime,
|
56
|
+
hh : '%d Stunden',
|
57
|
+
d : processRelativeTime,
|
58
|
+
dd : processRelativeTime,
|
59
|
+
M : processRelativeTime,
|
60
|
+
MM : processRelativeTime,
|
61
|
+
y : processRelativeTime,
|
62
|
+
yy : processRelativeTime
|
63
|
+
},
|
64
|
+
ordinalParse: /\d{1,2}\./,
|
65
|
+
ordinal : '%d.',
|
66
|
+
week : {
|
67
|
+
dow : 1, // Monday is the first day of the week.
|
68
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
69
|
+
}
|
70
|
+
});
|
71
|
+
|
72
|
+
return de;
|
73
|
+
|
74
|
+
}));
|
@@ -0,0 +1,93 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : modern greek (el)
|
3
|
+
//! author : Aggelos Karalias : https://github.com/mehiel
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var el = moment.defineLocale('el', {
|
13
|
+
monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
|
14
|
+
monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
|
15
|
+
months : function (momentToFormat, format) {
|
16
|
+
if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
|
17
|
+
return this._monthsGenitiveEl[momentToFormat.month()];
|
18
|
+
} else {
|
19
|
+
return this._monthsNominativeEl[momentToFormat.month()];
|
20
|
+
}
|
21
|
+
},
|
22
|
+
monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
|
23
|
+
weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
|
24
|
+
weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
|
25
|
+
weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
|
26
|
+
meridiem : function (hours, minutes, isLower) {
|
27
|
+
if (hours > 11) {
|
28
|
+
return isLower ? 'μμ' : 'ΜΜ';
|
29
|
+
} else {
|
30
|
+
return isLower ? 'πμ' : 'ΠΜ';
|
31
|
+
}
|
32
|
+
},
|
33
|
+
isPM : function (input) {
|
34
|
+
return ((input + '').toLowerCase()[0] === 'μ');
|
35
|
+
},
|
36
|
+
meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
|
37
|
+
longDateFormat : {
|
38
|
+
LT : 'h:mm A',
|
39
|
+
LTS : 'h:mm:ss A',
|
40
|
+
L : 'DD/MM/YYYY',
|
41
|
+
LL : 'D MMMM YYYY',
|
42
|
+
LLL : 'D MMMM YYYY h:mm A',
|
43
|
+
LLLL : 'dddd, D MMMM YYYY h:mm A'
|
44
|
+
},
|
45
|
+
calendarEl : {
|
46
|
+
sameDay : '[Σήμερα {}] LT',
|
47
|
+
nextDay : '[Αύριο {}] LT',
|
48
|
+
nextWeek : 'dddd [{}] LT',
|
49
|
+
lastDay : '[Χθες {}] LT',
|
50
|
+
lastWeek : function () {
|
51
|
+
switch (this.day()) {
|
52
|
+
case 6:
|
53
|
+
return '[το προηγούμενο] dddd [{}] LT';
|
54
|
+
default:
|
55
|
+
return '[την προηγούμενη] dddd [{}] LT';
|
56
|
+
}
|
57
|
+
},
|
58
|
+
sameElse : 'L'
|
59
|
+
},
|
60
|
+
calendar : function (key, mom) {
|
61
|
+
var output = this._calendarEl[key],
|
62
|
+
hours = mom && mom.hours();
|
63
|
+
if (typeof output === 'function') {
|
64
|
+
output = output.apply(mom);
|
65
|
+
}
|
66
|
+
return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
|
67
|
+
},
|
68
|
+
relativeTime : {
|
69
|
+
future : 'σε %s',
|
70
|
+
past : '%s πριν',
|
71
|
+
s : 'λίγα δευτερόλεπτα',
|
72
|
+
m : 'ένα λεπτό',
|
73
|
+
mm : '%d λεπτά',
|
74
|
+
h : 'μία ώρα',
|
75
|
+
hh : '%d ώρες',
|
76
|
+
d : 'μία μέρα',
|
77
|
+
dd : '%d μέρες',
|
78
|
+
M : 'ένας μήνας',
|
79
|
+
MM : '%d μήνες',
|
80
|
+
y : 'ένας χρόνος',
|
81
|
+
yy : '%d χρόνια'
|
82
|
+
},
|
83
|
+
ordinalParse: /\d{1,2}η/,
|
84
|
+
ordinal: '%dη',
|
85
|
+
week : {
|
86
|
+
dow : 1, // Monday is the first day of the week.
|
87
|
+
doy : 4 // The week that contains Jan 4st is the first week of the year.
|
88
|
+
}
|
89
|
+
});
|
90
|
+
|
91
|
+
return el;
|
92
|
+
|
93
|
+
}));
|
@@ -0,0 +1,65 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : australian english (en-au)
|
3
|
+
|
4
|
+
(function (global, factory) {
|
5
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
6
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
7
|
+
factory(global.moment)
|
8
|
+
}(this, function (moment) { 'use strict';
|
9
|
+
|
10
|
+
|
11
|
+
var en_au = moment.defineLocale('en-au', {
|
12
|
+
months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
13
|
+
monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
14
|
+
weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
15
|
+
weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
16
|
+
weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
17
|
+
longDateFormat : {
|
18
|
+
LT : 'h:mm A',
|
19
|
+
LTS : 'h:mm:ss A',
|
20
|
+
L : 'DD/MM/YYYY',
|
21
|
+
LL : 'D MMMM YYYY',
|
22
|
+
LLL : 'D MMMM YYYY h:mm A',
|
23
|
+
LLLL : 'dddd, D MMMM YYYY h:mm A'
|
24
|
+
},
|
25
|
+
calendar : {
|
26
|
+
sameDay : '[Today at] LT',
|
27
|
+
nextDay : '[Tomorrow at] LT',
|
28
|
+
nextWeek : 'dddd [at] LT',
|
29
|
+
lastDay : '[Yesterday at] LT',
|
30
|
+
lastWeek : '[Last] dddd [at] LT',
|
31
|
+
sameElse : 'L'
|
32
|
+
},
|
33
|
+
relativeTime : {
|
34
|
+
future : 'in %s',
|
35
|
+
past : '%s ago',
|
36
|
+
s : 'a few seconds',
|
37
|
+
m : 'a minute',
|
38
|
+
mm : '%d minutes',
|
39
|
+
h : 'an hour',
|
40
|
+
hh : '%d hours',
|
41
|
+
d : 'a day',
|
42
|
+
dd : '%d days',
|
43
|
+
M : 'a month',
|
44
|
+
MM : '%d months',
|
45
|
+
y : 'a year',
|
46
|
+
yy : '%d years'
|
47
|
+
},
|
48
|
+
ordinalParse: /\d{1,2}(st|nd|rd|th)/,
|
49
|
+
ordinal : function (number) {
|
50
|
+
var b = number % 10,
|
51
|
+
output = (~~(number % 100 / 10) === 1) ? 'th' :
|
52
|
+
(b === 1) ? 'st' :
|
53
|
+
(b === 2) ? 'nd' :
|
54
|
+
(b === 3) ? 'rd' : 'th';
|
55
|
+
return number + output;
|
56
|
+
},
|
57
|
+
week : {
|
58
|
+
dow : 1, // Monday is the first day of the week.
|
59
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
60
|
+
}
|
61
|
+
});
|
62
|
+
|
63
|
+
return en_au;
|
64
|
+
|
65
|
+
}));
|