bootstrap3-datetimepicker-rails 3.0.0.2 → 3.0.2.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 +9 -6
- data/lib/bootstrap3-datetimepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-datetimepicker.js +476 -346
- data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +1 -105
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +6 -5
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +2 -1
- metadata +8 -69
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +0 -86
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +0 -107
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +0 -139
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.by.js +0 -153
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +0 -155
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +0 -71
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +0 -79
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +0 -62
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +0 -63
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +0 -65
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +0 -97
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +0 -103
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +0 -54
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +0 -71
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +0 -77
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +0 -105
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +0 -140
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +0 -98
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +0 -67
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +0 -124
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +0 -108
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +0 -118
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +0 -77
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +0 -64
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +0 -104
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +0 -57
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +0 -105
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +0 -67
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +0 -98
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +0 -163
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +0 -156
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +0 -144
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +0 -57
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +0 -63
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +0 -93
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +0 -157
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +0 -62
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +0 -108
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +0 -84
@@ -1,107 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : breton (br)
|
3
|
-
// author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
|
4
|
-
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory(window.moment); // Browser global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
15
|
-
var format = {
|
16
|
-
'mm': "munutenn",
|
17
|
-
'MM': "miz",
|
18
|
-
'dd': "devezh"
|
19
|
-
};
|
20
|
-
return number + ' ' + mutation(format[key], number);
|
21
|
-
}
|
22
|
-
|
23
|
-
function specialMutationForYears(number) {
|
24
|
-
switch (lastNumber(number)) {
|
25
|
-
case 1:
|
26
|
-
case 3:
|
27
|
-
case 4:
|
28
|
-
case 5:
|
29
|
-
case 9:
|
30
|
-
return number + ' bloaz';
|
31
|
-
default:
|
32
|
-
return number + ' vloaz';
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
function lastNumber(number) {
|
37
|
-
if (number > 9) {
|
38
|
-
return lastNumber(number % 10);
|
39
|
-
}
|
40
|
-
return number;
|
41
|
-
}
|
42
|
-
|
43
|
-
function mutation(text, number) {
|
44
|
-
if (number === 2) {
|
45
|
-
return softMutation(text);
|
46
|
-
}
|
47
|
-
return text;
|
48
|
-
}
|
49
|
-
|
50
|
-
function softMutation(text) {
|
51
|
-
var mutationTable = {
|
52
|
-
'm': 'v',
|
53
|
-
'b': 'v',
|
54
|
-
'd': 'z'
|
55
|
-
};
|
56
|
-
if (mutationTable[text.charAt(0)] === undefined) {
|
57
|
-
return text;
|
58
|
-
}
|
59
|
-
return mutationTable[text.charAt(0)] + text.substring(1);
|
60
|
-
}
|
61
|
-
|
62
|
-
return moment.lang('br', {
|
63
|
-
months : "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),
|
64
|
-
monthsShort : "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),
|
65
|
-
weekdays : "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),
|
66
|
-
weekdaysShort : "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),
|
67
|
-
weekdaysMin : "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),
|
68
|
-
longDateFormat : {
|
69
|
-
LT : "h[e]mm A",
|
70
|
-
L : "DD/MM/YYYY",
|
71
|
-
LL : "D [a viz] MMMM YYYY",
|
72
|
-
LLL : "D [a viz] MMMM YYYY LT",
|
73
|
-
LLLL : "dddd, D [a viz] MMMM YYYY LT"
|
74
|
-
},
|
75
|
-
calendar : {
|
76
|
-
sameDay : '[Hiziv da] LT',
|
77
|
-
nextDay : '[Warc\'hoazh da] LT',
|
78
|
-
nextWeek : 'dddd [da] LT',
|
79
|
-
lastDay : '[Dec\'h da] LT',
|
80
|
-
lastWeek : 'dddd [paset da] LT',
|
81
|
-
sameElse : 'L'
|
82
|
-
},
|
83
|
-
relativeTime : {
|
84
|
-
future : "a-benn %s",
|
85
|
-
past : "%s 'zo",
|
86
|
-
s : "un nebeud segondennoù",
|
87
|
-
m : "ur vunutenn",
|
88
|
-
mm : relativeTimeWithMutation,
|
89
|
-
h : "un eur",
|
90
|
-
hh : "%d eur",
|
91
|
-
d : "un devezh",
|
92
|
-
dd : relativeTimeWithMutation,
|
93
|
-
M : "ur miz",
|
94
|
-
MM : relativeTimeWithMutation,
|
95
|
-
y : "ur bloaz",
|
96
|
-
yy : specialMutationForYears
|
97
|
-
},
|
98
|
-
ordinal : function (number) {
|
99
|
-
var output = (number === 1) ? 'añ' : 'vet';
|
100
|
-
return number + output;
|
101
|
-
},
|
102
|
-
week : {
|
103
|
-
dow : 1, // Monday is the first day of the week.
|
104
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
105
|
-
}
|
106
|
-
});
|
107
|
-
}));
|
@@ -1,139 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : bosnian (bs)
|
3
|
-
// author : Nedim Cholich : https://github.com/frontyard
|
4
|
-
// based on (hr) translation by Bojan Marković
|
5
|
-
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory(window.moment); // Browser global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
|
16
|
-
function translate(number, withoutSuffix, key) {
|
17
|
-
var result = number + " ";
|
18
|
-
switch (key) {
|
19
|
-
case 'm':
|
20
|
-
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
21
|
-
case 'mm':
|
22
|
-
if (number === 1) {
|
23
|
-
result += 'minuta';
|
24
|
-
} else if (number === 2 || number === 3 || number === 4) {
|
25
|
-
result += 'minute';
|
26
|
-
} else {
|
27
|
-
result += 'minuta';
|
28
|
-
}
|
29
|
-
return result;
|
30
|
-
case 'h':
|
31
|
-
return withoutSuffix ? 'jedan sat' : 'jednog sata';
|
32
|
-
case 'hh':
|
33
|
-
if (number === 1) {
|
34
|
-
result += 'sat';
|
35
|
-
} else if (number === 2 || number === 3 || number === 4) {
|
36
|
-
result += 'sata';
|
37
|
-
} else {
|
38
|
-
result += 'sati';
|
39
|
-
}
|
40
|
-
return result;
|
41
|
-
case 'dd':
|
42
|
-
if (number === 1) {
|
43
|
-
result += 'dan';
|
44
|
-
} else {
|
45
|
-
result += 'dana';
|
46
|
-
}
|
47
|
-
return result;
|
48
|
-
case 'MM':
|
49
|
-
if (number === 1) {
|
50
|
-
result += 'mjesec';
|
51
|
-
} else if (number === 2 || number === 3 || number === 4) {
|
52
|
-
result += 'mjeseca';
|
53
|
-
} else {
|
54
|
-
result += 'mjeseci';
|
55
|
-
}
|
56
|
-
return result;
|
57
|
-
case 'yy':
|
58
|
-
if (number === 1) {
|
59
|
-
result += 'godina';
|
60
|
-
} else if (number === 2 || number === 3 || number === 4) {
|
61
|
-
result += 'godine';
|
62
|
-
} else {
|
63
|
-
result += 'godina';
|
64
|
-
}
|
65
|
-
return result;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
return moment.lang('bs', {
|
70
|
-
months : "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"),
|
71
|
-
monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),
|
72
|
-
weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
|
73
|
-
weekdaysShort : "ned._pon._uto._sri._čet._pet._sub.".split("_"),
|
74
|
-
weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"),
|
75
|
-
longDateFormat : {
|
76
|
-
LT : "H:mm",
|
77
|
-
L : "DD. MM. YYYY",
|
78
|
-
LL : "D. MMMM YYYY",
|
79
|
-
LLL : "D. MMMM YYYY LT",
|
80
|
-
LLLL : "dddd, D. MMMM YYYY LT"
|
81
|
-
},
|
82
|
-
calendar : {
|
83
|
-
sameDay : '[danas u] LT',
|
84
|
-
nextDay : '[sutra u] LT',
|
85
|
-
|
86
|
-
nextWeek : function () {
|
87
|
-
switch (this.day()) {
|
88
|
-
case 0:
|
89
|
-
return '[u] [nedjelju] [u] LT';
|
90
|
-
case 3:
|
91
|
-
return '[u] [srijedu] [u] LT';
|
92
|
-
case 6:
|
93
|
-
return '[u] [subotu] [u] LT';
|
94
|
-
case 1:
|
95
|
-
case 2:
|
96
|
-
case 4:
|
97
|
-
case 5:
|
98
|
-
return '[u] dddd [u] LT';
|
99
|
-
}
|
100
|
-
},
|
101
|
-
lastDay : '[jučer u] LT',
|
102
|
-
lastWeek : function () {
|
103
|
-
switch (this.day()) {
|
104
|
-
case 0:
|
105
|
-
case 3:
|
106
|
-
return '[prošlu] dddd [u] LT';
|
107
|
-
case 6:
|
108
|
-
return '[prošle] [subote] [u] LT';
|
109
|
-
case 1:
|
110
|
-
case 2:
|
111
|
-
case 4:
|
112
|
-
case 5:
|
113
|
-
return '[prošli] dddd [u] LT';
|
114
|
-
}
|
115
|
-
},
|
116
|
-
sameElse : 'L'
|
117
|
-
},
|
118
|
-
relativeTime : {
|
119
|
-
future : "za %s",
|
120
|
-
past : "prije %s",
|
121
|
-
s : "par sekundi",
|
122
|
-
m : translate,
|
123
|
-
mm : translate,
|
124
|
-
h : translate,
|
125
|
-
hh : translate,
|
126
|
-
d : "dan",
|
127
|
-
dd : translate,
|
128
|
-
M : "mjesec",
|
129
|
-
MM : translate,
|
130
|
-
y : "godinu",
|
131
|
-
yy : translate
|
132
|
-
},
|
133
|
-
ordinal : '%d.',
|
134
|
-
week : {
|
135
|
-
dow : 1, // Monday is the first day of the week.
|
136
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
137
|
-
}
|
138
|
-
});
|
139
|
-
}));
|
@@ -1,153 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : belarusian (by)
|
3
|
-
// author : Dmitry Demidov : https://github.com/demidov91
|
4
|
-
// Author : Menelion Elensúle : https://github.com/Oire
|
5
|
-
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory(window.moment); // Browser global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
function plural(word, num) {
|
16
|
-
var forms = word.split('_');
|
17
|
-
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
|
18
|
-
}
|
19
|
-
|
20
|
-
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
21
|
-
var format = {
|
22
|
-
'mm': 'хвіліна_хвіліны_хвілін',
|
23
|
-
'hh': 'гадзіна_гадзіны_гадзін',
|
24
|
-
'dd': 'дзень_дня_дней',
|
25
|
-
'MM': 'месяц_месяца_месяцаў',
|
26
|
-
'yy': 'год_года_лет'
|
27
|
-
};
|
28
|
-
if (key === 'm') {
|
29
|
-
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
30
|
-
}
|
31
|
-
else if (key === 'h') {
|
32
|
-
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
33
|
-
}
|
34
|
-
else {
|
35
|
-
return number + ' ' + plural(format[key], +number);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
function monthsCaseReplace(m, format) {
|
40
|
-
var months = {
|
41
|
-
'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
|
42
|
-
'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
|
43
|
-
},
|
44
|
-
|
45
|
-
nounCase = (/D[oD]? *MMMM?/).test(format) ?
|
46
|
-
'accusative' :
|
47
|
-
'nominative';
|
48
|
-
|
49
|
-
return months[nounCase][m.month()];
|
50
|
-
}
|
51
|
-
|
52
|
-
function weekdaysCaseReplace(m, format) {
|
53
|
-
var weekdays = {
|
54
|
-
'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
55
|
-
'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
|
56
|
-
},
|
57
|
-
|
58
|
-
nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
|
59
|
-
'accusative' :
|
60
|
-
'nominative';
|
61
|
-
|
62
|
-
return weekdays[nounCase][m.day()];
|
63
|
-
}
|
64
|
-
|
65
|
-
return moment.lang('by', {
|
66
|
-
months : monthsCaseReplace,
|
67
|
-
monthsShort : 'сту_лют_сак_кра_тра_чэр_ліп_жні_вер_кас_ліс_сне'.split('_'),
|
68
|
-
weekdays : weekdaysCaseReplace,
|
69
|
-
weekdaysShort : "нд_пн_ат_ср_чц_пт_сб".split("_"),
|
70
|
-
weekdaysMin : "нд_пн_ат_ср_чц_пт_сб".split("_"),
|
71
|
-
longDateFormat : {
|
72
|
-
LT : "HH:mm",
|
73
|
-
L : "DD.MM.YYYY",
|
74
|
-
LL : "D MMMM YYYY г.",
|
75
|
-
LLL : "D MMMM YYYY г., LT",
|
76
|
-
LLLL : "dddd, D MMMM YYYY г., LT"
|
77
|
-
},
|
78
|
-
calendar : {
|
79
|
-
sameDay: '[Сёння ў] LT',
|
80
|
-
nextDay: '[Заўтра ў] LT',
|
81
|
-
lastDay: '[Учора ў] LT',
|
82
|
-
nextWeek: function () {
|
83
|
-
if (this.day() === 1 || this.day() === 2 || this.day() === 4){
|
84
|
-
return '[У] dddd [у] LT';
|
85
|
-
}
|
86
|
-
return '[У] dddd [ў] LT';
|
87
|
-
},
|
88
|
-
lastWeek: function () {
|
89
|
-
switch (this.day()) {
|
90
|
-
case 0:
|
91
|
-
case 3:
|
92
|
-
case 5:
|
93
|
-
case 6:
|
94
|
-
return '[У мінулую] dddd [ў] LT';
|
95
|
-
case 1:
|
96
|
-
case 2:
|
97
|
-
case 4:
|
98
|
-
return '[У мінулы] dddd [у] LT';
|
99
|
-
}
|
100
|
-
},
|
101
|
-
sameElse: 'L'
|
102
|
-
},
|
103
|
-
relativeTime : {
|
104
|
-
future : "праз %s",
|
105
|
-
past : "%s таму",
|
106
|
-
s : "некалькі секунд",
|
107
|
-
m : relativeTimeWithPlural,
|
108
|
-
mm : relativeTimeWithPlural,
|
109
|
-
h : "гадзіну",
|
110
|
-
hh : relativeTimeWithPlural,
|
111
|
-
d : "дзень",
|
112
|
-
dd : relativeTimeWithPlural,
|
113
|
-
M : "месяц",
|
114
|
-
MM : relativeTimeWithPlural,
|
115
|
-
y : "год",
|
116
|
-
yy : relativeTimeWithPlural
|
117
|
-
},
|
118
|
-
|
119
|
-
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
120
|
-
|
121
|
-
meridiem : function (hour, minute, isLower) {
|
122
|
-
if (hour < 4) {
|
123
|
-
return "ночы";
|
124
|
-
} else if (hour < 12) {
|
125
|
-
return "раніцы";
|
126
|
-
} else if (hour < 17) {
|
127
|
-
return "дня";
|
128
|
-
} else {
|
129
|
-
return "вечара";
|
130
|
-
}
|
131
|
-
},
|
132
|
-
|
133
|
-
ordinal: function (number, period) {
|
134
|
-
switch (period) {
|
135
|
-
case 'M':
|
136
|
-
case 'd':
|
137
|
-
case 'DDD':
|
138
|
-
case 'w':
|
139
|
-
case 'W':
|
140
|
-
return number + '-ы';
|
141
|
-
case 'D':
|
142
|
-
return number + '-га';
|
143
|
-
default:
|
144
|
-
return number;
|
145
|
-
}
|
146
|
-
},
|
147
|
-
|
148
|
-
week : {
|
149
|
-
dow : 1, // Monday is the first day of the week.
|
150
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
151
|
-
}
|
152
|
-
});
|
153
|
-
}));
|
@@ -1,66 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : catalan (ca)
|
3
|
-
// author : Juan G. Hurtado : https://github.com/juanghurtado
|
4
|
-
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory(window.moment); // Browser global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.lang('ca', {
|
15
|
-
months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),
|
16
|
-
monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"),
|
17
|
-
weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),
|
18
|
-
weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),
|
19
|
-
weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
|
20
|
-
longDateFormat : {
|
21
|
-
LT : "H:mm",
|
22
|
-
L : "DD/MM/YYYY",
|
23
|
-
LL : "D MMMM YYYY",
|
24
|
-
LLL : "D MMMM YYYY LT",
|
25
|
-
LLLL : "dddd D MMMM YYYY LT"
|
26
|
-
},
|
27
|
-
calendar : {
|
28
|
-
sameDay : function () {
|
29
|
-
return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
30
|
-
},
|
31
|
-
nextDay : function () {
|
32
|
-
return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
33
|
-
},
|
34
|
-
nextWeek : function () {
|
35
|
-
return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
36
|
-
},
|
37
|
-
lastDay : function () {
|
38
|
-
return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
39
|
-
},
|
40
|
-
lastWeek : function () {
|
41
|
-
return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
42
|
-
},
|
43
|
-
sameElse : 'L'
|
44
|
-
},
|
45
|
-
relativeTime : {
|
46
|
-
future : "en %s",
|
47
|
-
past : "fa %s",
|
48
|
-
s : "uns segons",
|
49
|
-
m : "un minut",
|
50
|
-
mm : "%d minuts",
|
51
|
-
h : "una hora",
|
52
|
-
hh : "%d hores",
|
53
|
-
d : "un dia",
|
54
|
-
dd : "%d dies",
|
55
|
-
M : "un mes",
|
56
|
-
MM : "%d mesos",
|
57
|
-
y : "un any",
|
58
|
-
yy : "%d anys"
|
59
|
-
},
|
60
|
-
ordinal : '%dº',
|
61
|
-
week : {
|
62
|
-
dow : 1, // Monday is the first day of the week.
|
63
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
64
|
-
}
|
65
|
-
});
|
66
|
-
}));
|