effective_bootstrap 0.4.8 → 0.5.0
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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/assets/javascripts/effective_date/input.js +1 -1
- data/app/assets/javascripts/effective_datetime/input.js +1 -1
- data/app/assets/javascripts/effective_time/input.js +1 -1
- data/app/assets/javascripts/moment/locale/af.js +72 -0
- data/app/assets/javascripts/moment/locale/ar-dz.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-kw.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-ly.js +121 -0
- data/app/assets/javascripts/moment/locale/ar-ma.js +58 -0
- data/app/assets/javascripts/moment/locale/ar-sa.js +103 -0
- data/app/assets/javascripts/moment/locale/ar-tn.js +58 -0
- data/app/assets/javascripts/moment/locale/ar.js +134 -0
- data/app/assets/javascripts/moment/locale/az.js +104 -0
- data/app/assets/javascripts/moment/locale/be.js +131 -0
- data/app/assets/javascripts/moment/locale/bg.js +89 -0
- data/app/assets/javascripts/moment/locale/bm.js +57 -0
- data/app/assets/javascripts/moment/locale/bn.js +118 -0
- data/app/assets/javascripts/moment/locale/bo.js +118 -0
- data/app/assets/javascripts/moment/locale/br.js +107 -0
- data/app/assets/javascripts/moment/locale/bs.js +150 -0
- data/app/assets/javascripts/moment/locale/ca.js +87 -0
- data/app/assets/javascripts/moment/locale/cs.js +171 -0
- data/app/assets/javascripts/moment/locale/cv.js +62 -0
- data/app/assets/javascripts/moment/locale/cy.js +79 -0
- data/app/assets/javascripts/moment/locale/da.js +59 -0
- data/app/assets/javascripts/moment/locale/de-at.js +75 -0
- data/app/assets/javascripts/moment/locale/de-ch.js +75 -0
- data/app/assets/javascripts/moment/locale/de.js +75 -0
- data/app/assets/javascripts/moment/locale/dv.js +98 -0
- data/app/assets/javascripts/moment/locale/el.js +99 -0
- data/app/assets/javascripts/moment/locale/en-SG.js +66 -0
- data/app/assets/javascripts/moment/locale/en-au.js +66 -0
- data/app/assets/javascripts/moment/locale/en-ca.js +62 -0
- data/app/assets/javascripts/moment/locale/en-gb.js +66 -0
- data/app/assets/javascripts/moment/locale/en-ie.js +66 -0
- data/app/assets/javascripts/moment/locale/en-il.js +61 -0
- data/app/assets/javascripts/moment/locale/en-nz.js +66 -0
- data/app/assets/javascripts/moment/locale/eo.js +70 -0
- data/app/assets/javascripts/moment/locale/es-do.js +91 -0
- data/app/assets/javascripts/moment/locale/es-us.js +91 -0
- data/app/assets/javascripts/moment/locale/es.js +91 -0
- data/app/assets/javascripts/moment/locale/et.js +79 -0
- data/app/assets/javascripts/moment/locale/eu.js +65 -0
- data/app/assets/javascripts/moment/locale/fa.js +105 -0
- data/app/assets/javascripts/moment/locale/fi.js +108 -0
- data/app/assets/javascripts/moment/locale/fo.js +59 -0
- data/app/assets/javascripts/moment/locale/fr-ca.js +73 -0
- data/app/assets/javascripts/moment/locale/fr-ch.js +77 -0
- data/app/assets/javascripts/moment/locale/fr.js +82 -0
- data/app/assets/javascripts/moment/locale/fy.js +74 -0
- data/app/assets/javascripts/moment/locale/ga.js +76 -0
- data/app/assets/javascripts/moment/locale/gd.js +75 -0
- data/app/assets/javascripts/moment/locale/gl.js +76 -0
- data/app/assets/javascripts/moment/locale/gom-latn.js +122 -0
- data/app/assets/javascripts/moment/locale/gu.js +123 -0
- data/app/assets/javascripts/moment/locale/he.js +96 -0
- data/app/assets/javascripts/moment/locale/hi.js +123 -0
- data/app/assets/javascripts/moment/locale/hr.js +153 -0
- data/app/assets/javascripts/moment/locale/hu.js +109 -0
- data/app/assets/javascripts/moment/locale/hy-am.js +94 -0
- data/app/assets/javascripts/moment/locale/id.js +81 -0
- data/app/assets/javascripts/moment/locale/is.js +131 -0
- data/app/assets/javascripts/moment/locale/it-ch.js +68 -0
- data/app/assets/javascripts/moment/locale/it.js +68 -0
- data/app/assets/javascripts/moment/locale/ja.js +91 -0
- data/app/assets/javascripts/moment/locale/jv.js +81 -0
- data/app/assets/javascripts/moment/locale/ka.js +88 -0
- data/app/assets/javascripts/moment/locale/kk.js +86 -0
- data/app/assets/javascripts/moment/locale/km.js +109 -0
- data/app/assets/javascripts/moment/locale/kn.js +125 -0
- data/app/assets/javascripts/moment/locale/ko.js +80 -0
- data/app/assets/javascripts/moment/locale/ku.js +118 -0
- data/app/assets/javascripts/moment/locale/ky.js +86 -0
- data/app/assets/javascripts/moment/locale/lb.js +135 -0
- data/app/assets/javascripts/moment/locale/lo.js +69 -0
- data/app/assets/javascripts/moment/locale/lt.js +117 -0
- data/app/assets/javascripts/moment/locale/lv.js +96 -0
- data/app/assets/javascripts/moment/locale/me.js +111 -0
- data/app/assets/javascripts/moment/locale/mi.js +63 -0
- data/app/assets/javascripts/moment/locale/mk.js +89 -0
- data/app/assets/javascripts/moment/locale/ml.js +80 -0
- data/app/assets/javascripts/moment/locale/mn.js +103 -0
- data/app/assets/javascripts/moment/locale/mr.js +159 -0
- data/app/assets/javascripts/moment/locale/ms-my.js +81 -0
- data/app/assets/javascripts/moment/locale/ms.js +81 -0
- data/app/assets/javascripts/moment/locale/mt.js +59 -0
- data/app/assets/javascripts/moment/locale/my.js +92 -0
- data/app/assets/javascripts/moment/locale/nb.js +61 -0
- data/app/assets/javascripts/moment/locale/ne.js +122 -0
- data/app/assets/javascripts/moment/locale/nl-be.js +86 -0
- data/app/assets/javascripts/moment/locale/nl.js +86 -0
- data/app/assets/javascripts/moment/locale/nn.js +59 -0
- data/app/assets/javascripts/moment/locale/pa-in.js +123 -0
- data/app/assets/javascripts/moment/locale/pl.js +125 -0
- data/app/assets/javascripts/moment/locale/pt-br.js +60 -0
- data/app/assets/javascripts/moment/locale/pt.js +64 -0
- data/app/assets/javascripts/moment/locale/ro.js +74 -0
- data/app/assets/javascripts/moment/locale/ru.js +181 -0
- data/app/assets/javascripts/moment/locale/sd.js +97 -0
- data/app/assets/javascripts/moment/locale/se.js +59 -0
- data/app/assets/javascripts/moment/locale/si.js +70 -0
- data/app/assets/javascripts/moment/locale/sk.js +155 -0
- data/app/assets/javascripts/moment/locale/sl.js +172 -0
- data/app/assets/javascripts/moment/locale/sq.js +67 -0
- data/app/assets/javascripts/moment/locale/sr-cyrl.js +110 -0
- data/app/assets/javascripts/moment/locale/sr.js +110 -0
- data/app/assets/javascripts/moment/locale/ss.js +87 -0
- data/app/assets/javascripts/moment/locale/sv.js +68 -0
- data/app/assets/javascripts/moment/locale/sw.js +58 -0
- data/app/assets/javascripts/moment/locale/ta.js +128 -0
- data/app/assets/javascripts/moment/locale/te.js +88 -0
- data/app/assets/javascripts/moment/locale/tet.js +66 -0
- data/app/assets/javascripts/moment/locale/tg.js +115 -0
- data/app/assets/javascripts/moment/locale/th.js +66 -0
- data/app/assets/javascripts/moment/locale/tl-ph.js +61 -0
- data/app/assets/javascripts/moment/locale/tlh.js +121 -0
- data/app/assets/javascripts/moment/locale/tr.js +93 -0
- data/app/assets/javascripts/moment/locale/tzl.js +90 -0
- data/app/assets/javascripts/moment/locale/tzm-latn.js +57 -0
- data/app/assets/javascripts/moment/locale/tzm.js +57 -0
- data/app/assets/javascripts/moment/locale/ug-cn.js +118 -0
- data/app/assets/javascripts/moment/locale/uk.js +153 -0
- data/app/assets/javascripts/moment/locale/ur.js +97 -0
- data/app/assets/javascripts/moment/locale/uz-latn.js +57 -0
- data/app/assets/javascripts/moment/locale/uz.js +57 -0
- data/app/assets/javascripts/moment/locale/vi.js +78 -0
- data/app/assets/javascripts/moment/locale/x-pseudo.js +67 -0
- data/app/assets/javascripts/moment/locale/yo.js +59 -0
- data/app/assets/javascripts/moment/locale/zh-cn.js +109 -0
- data/app/assets/javascripts/moment/locale/zh-hk.js +102 -0
- data/app/assets/javascripts/moment/locale/zh-tw.js +102 -0
- data/app/assets/javascripts/moment/moment.js +4603 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +129 -2
- data/app/assets/javascripts/effective_datetime/moment.js +0 -4535
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
|
|
3
|
+
;(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
5
|
+
&& typeof require === 'function' ? 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 units = {
|
|
12
|
+
'ss' : 'sekundė_sekundžių_sekundes',
|
|
13
|
+
'm' : 'minutė_minutės_minutę',
|
|
14
|
+
'mm': 'minutės_minučių_minutes',
|
|
15
|
+
'h' : 'valanda_valandos_valandą',
|
|
16
|
+
'hh': 'valandos_valandų_valandas',
|
|
17
|
+
'd' : 'diena_dienos_dieną',
|
|
18
|
+
'dd': 'dienos_dienų_dienas',
|
|
19
|
+
'M' : 'mėnuo_mėnesio_mėnesį',
|
|
20
|
+
'MM': 'mėnesiai_mėnesių_mėnesius',
|
|
21
|
+
'y' : 'metai_metų_metus',
|
|
22
|
+
'yy': 'metai_metų_metus'
|
|
23
|
+
};
|
|
24
|
+
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
|
25
|
+
if (withoutSuffix) {
|
|
26
|
+
return 'kelios sekundės';
|
|
27
|
+
} else {
|
|
28
|
+
return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function translateSingular(number, withoutSuffix, key, isFuture) {
|
|
32
|
+
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
|
33
|
+
}
|
|
34
|
+
function special(number) {
|
|
35
|
+
return number % 10 === 0 || (number > 10 && number < 20);
|
|
36
|
+
}
|
|
37
|
+
function forms(key) {
|
|
38
|
+
return units[key].split('_');
|
|
39
|
+
}
|
|
40
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
|
41
|
+
var result = number + ' ';
|
|
42
|
+
if (number === 1) {
|
|
43
|
+
return result + translateSingular(number, withoutSuffix, key[0], isFuture);
|
|
44
|
+
} else if (withoutSuffix) {
|
|
45
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
|
46
|
+
} else {
|
|
47
|
+
if (isFuture) {
|
|
48
|
+
return result + forms(key)[1];
|
|
49
|
+
} else {
|
|
50
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
var lt = moment.defineLocale('lt', {
|
|
55
|
+
months : {
|
|
56
|
+
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
|
|
57
|
+
standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
|
|
58
|
+
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
|
|
59
|
+
},
|
|
60
|
+
monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
|
|
61
|
+
weekdays : {
|
|
62
|
+
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
|
|
63
|
+
standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
|
|
64
|
+
isFormat: /dddd HH:mm/
|
|
65
|
+
},
|
|
66
|
+
weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
|
|
67
|
+
weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
|
|
68
|
+
weekdaysParseExact : true,
|
|
69
|
+
longDateFormat : {
|
|
70
|
+
LT : 'HH:mm',
|
|
71
|
+
LTS : 'HH:mm:ss',
|
|
72
|
+
L : 'YYYY-MM-DD',
|
|
73
|
+
LL : 'YYYY [m.] MMMM D [d.]',
|
|
74
|
+
LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
|
75
|
+
LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
|
|
76
|
+
l : 'YYYY-MM-DD',
|
|
77
|
+
ll : 'YYYY [m.] MMMM D [d.]',
|
|
78
|
+
lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
|
|
79
|
+
llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
|
|
80
|
+
},
|
|
81
|
+
calendar : {
|
|
82
|
+
sameDay : '[Šiandien] LT',
|
|
83
|
+
nextDay : '[Rytoj] LT',
|
|
84
|
+
nextWeek : 'dddd LT',
|
|
85
|
+
lastDay : '[Vakar] LT',
|
|
86
|
+
lastWeek : '[Praėjusį] dddd LT',
|
|
87
|
+
sameElse : 'L'
|
|
88
|
+
},
|
|
89
|
+
relativeTime : {
|
|
90
|
+
future : 'po %s',
|
|
91
|
+
past : 'prieš %s',
|
|
92
|
+
s : translateSeconds,
|
|
93
|
+
ss : translate,
|
|
94
|
+
m : translateSingular,
|
|
95
|
+
mm : translate,
|
|
96
|
+
h : translateSingular,
|
|
97
|
+
hh : translate,
|
|
98
|
+
d : translateSingular,
|
|
99
|
+
dd : translate,
|
|
100
|
+
M : translateSingular,
|
|
101
|
+
MM : translate,
|
|
102
|
+
y : translateSingular,
|
|
103
|
+
yy : translate
|
|
104
|
+
},
|
|
105
|
+
dayOfMonthOrdinalParse: /\d{1,2}-oji/,
|
|
106
|
+
ordinal : function (number) {
|
|
107
|
+
return number + '-oji';
|
|
108
|
+
},
|
|
109
|
+
week : {
|
|
110
|
+
dow : 1, // Monday is the first day of the week.
|
|
111
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
return lt;
|
|
116
|
+
|
|
117
|
+
})));
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
|
|
3
|
+
;(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
5
|
+
&& typeof require === 'function' ? 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 units = {
|
|
12
|
+
'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
|
|
13
|
+
'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
|
14
|
+
'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
|
15
|
+
'h': 'stundas_stundām_stunda_stundas'.split('_'),
|
|
16
|
+
'hh': 'stundas_stundām_stunda_stundas'.split('_'),
|
|
17
|
+
'd': 'dienas_dienām_diena_dienas'.split('_'),
|
|
18
|
+
'dd': 'dienas_dienām_diena_dienas'.split('_'),
|
|
19
|
+
'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
|
20
|
+
'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
|
21
|
+
'y': 'gada_gadiem_gads_gadi'.split('_'),
|
|
22
|
+
'yy': 'gada_gadiem_gads_gadi'.split('_')
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
|
|
26
|
+
*/
|
|
27
|
+
function format(forms, number, withoutSuffix) {
|
|
28
|
+
if (withoutSuffix) {
|
|
29
|
+
// E.g. "21 minūte", "3 minūtes".
|
|
30
|
+
return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
|
|
31
|
+
} else {
|
|
32
|
+
// E.g. "21 minūtes" as in "pēc 21 minūtes".
|
|
33
|
+
// E.g. "3 minūtēm" as in "pēc 3 minūtēm".
|
|
34
|
+
return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
|
38
|
+
return number + ' ' + format(units[key], number, withoutSuffix);
|
|
39
|
+
}
|
|
40
|
+
function relativeTimeWithSingular(number, withoutSuffix, key) {
|
|
41
|
+
return format(units[key], number, withoutSuffix);
|
|
42
|
+
}
|
|
43
|
+
function relativeSeconds(number, withoutSuffix) {
|
|
44
|
+
return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var lv = moment.defineLocale('lv', {
|
|
48
|
+
months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
|
|
49
|
+
monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
|
|
50
|
+
weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
|
|
51
|
+
weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
|
|
52
|
+
weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
|
|
53
|
+
weekdaysParseExact : true,
|
|
54
|
+
longDateFormat : {
|
|
55
|
+
LT : 'HH:mm',
|
|
56
|
+
LTS : 'HH:mm:ss',
|
|
57
|
+
L : 'DD.MM.YYYY.',
|
|
58
|
+
LL : 'YYYY. [gada] D. MMMM',
|
|
59
|
+
LLL : 'YYYY. [gada] D. MMMM, HH:mm',
|
|
60
|
+
LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
|
|
61
|
+
},
|
|
62
|
+
calendar : {
|
|
63
|
+
sameDay : '[Šodien pulksten] LT',
|
|
64
|
+
nextDay : '[Rīt pulksten] LT',
|
|
65
|
+
nextWeek : 'dddd [pulksten] LT',
|
|
66
|
+
lastDay : '[Vakar pulksten] LT',
|
|
67
|
+
lastWeek : '[Pagājušā] dddd [pulksten] LT',
|
|
68
|
+
sameElse : 'L'
|
|
69
|
+
},
|
|
70
|
+
relativeTime : {
|
|
71
|
+
future : 'pēc %s',
|
|
72
|
+
past : 'pirms %s',
|
|
73
|
+
s : relativeSeconds,
|
|
74
|
+
ss : relativeTimeWithPlural,
|
|
75
|
+
m : relativeTimeWithSingular,
|
|
76
|
+
mm : relativeTimeWithPlural,
|
|
77
|
+
h : relativeTimeWithSingular,
|
|
78
|
+
hh : relativeTimeWithPlural,
|
|
79
|
+
d : relativeTimeWithSingular,
|
|
80
|
+
dd : relativeTimeWithPlural,
|
|
81
|
+
M : relativeTimeWithSingular,
|
|
82
|
+
MM : relativeTimeWithPlural,
|
|
83
|
+
y : relativeTimeWithSingular,
|
|
84
|
+
yy : relativeTimeWithPlural
|
|
85
|
+
},
|
|
86
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
87
|
+
ordinal : '%d.',
|
|
88
|
+
week : {
|
|
89
|
+
dow : 1, // Monday is the first day of the week.
|
|
90
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
return lv;
|
|
95
|
+
|
|
96
|
+
})));
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
|
|
3
|
+
;(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
5
|
+
&& typeof require === 'function' ? 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 translator = {
|
|
12
|
+
words: { //Different grammatical cases
|
|
13
|
+
ss: ['sekund', 'sekunda', 'sekundi'],
|
|
14
|
+
m: ['jedan minut', 'jednog minuta'],
|
|
15
|
+
mm: ['minut', 'minuta', 'minuta'],
|
|
16
|
+
h: ['jedan sat', 'jednog sata'],
|
|
17
|
+
hh: ['sat', 'sata', 'sati'],
|
|
18
|
+
dd: ['dan', 'dana', 'dana'],
|
|
19
|
+
MM: ['mjesec', 'mjeseca', 'mjeseci'],
|
|
20
|
+
yy: ['godina', 'godine', 'godina']
|
|
21
|
+
},
|
|
22
|
+
correctGrammaticalCase: function (number, wordKey) {
|
|
23
|
+
return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
|
|
24
|
+
},
|
|
25
|
+
translate: function (number, withoutSuffix, key) {
|
|
26
|
+
var wordKey = translator.words[key];
|
|
27
|
+
if (key.length === 1) {
|
|
28
|
+
return withoutSuffix ? wordKey[0] : wordKey[1];
|
|
29
|
+
} else {
|
|
30
|
+
return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var me = moment.defineLocale('me', {
|
|
36
|
+
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
|
|
37
|
+
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
|
|
38
|
+
monthsParseExact : true,
|
|
39
|
+
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
|
40
|
+
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
|
41
|
+
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
|
42
|
+
weekdaysParseExact : true,
|
|
43
|
+
longDateFormat: {
|
|
44
|
+
LT: 'H:mm',
|
|
45
|
+
LTS : 'H:mm:ss',
|
|
46
|
+
L: 'DD.MM.YYYY',
|
|
47
|
+
LL: 'D. MMMM YYYY',
|
|
48
|
+
LLL: 'D. MMMM YYYY H:mm',
|
|
49
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
|
50
|
+
},
|
|
51
|
+
calendar: {
|
|
52
|
+
sameDay: '[danas u] LT',
|
|
53
|
+
nextDay: '[sjutra u] LT',
|
|
54
|
+
|
|
55
|
+
nextWeek: function () {
|
|
56
|
+
switch (this.day()) {
|
|
57
|
+
case 0:
|
|
58
|
+
return '[u] [nedjelju] [u] LT';
|
|
59
|
+
case 3:
|
|
60
|
+
return '[u] [srijedu] [u] LT';
|
|
61
|
+
case 6:
|
|
62
|
+
return '[u] [subotu] [u] LT';
|
|
63
|
+
case 1:
|
|
64
|
+
case 2:
|
|
65
|
+
case 4:
|
|
66
|
+
case 5:
|
|
67
|
+
return '[u] dddd [u] LT';
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
lastDay : '[juče u] LT',
|
|
71
|
+
lastWeek : function () {
|
|
72
|
+
var lastWeekDays = [
|
|
73
|
+
'[prošle] [nedjelje] [u] LT',
|
|
74
|
+
'[prošlog] [ponedjeljka] [u] LT',
|
|
75
|
+
'[prošlog] [utorka] [u] LT',
|
|
76
|
+
'[prošle] [srijede] [u] LT',
|
|
77
|
+
'[prošlog] [četvrtka] [u] LT',
|
|
78
|
+
'[prošlog] [petka] [u] LT',
|
|
79
|
+
'[prošle] [subote] [u] LT'
|
|
80
|
+
];
|
|
81
|
+
return lastWeekDays[this.day()];
|
|
82
|
+
},
|
|
83
|
+
sameElse : 'L'
|
|
84
|
+
},
|
|
85
|
+
relativeTime : {
|
|
86
|
+
future : 'za %s',
|
|
87
|
+
past : 'prije %s',
|
|
88
|
+
s : 'nekoliko sekundi',
|
|
89
|
+
ss : translator.translate,
|
|
90
|
+
m : translator.translate,
|
|
91
|
+
mm : translator.translate,
|
|
92
|
+
h : translator.translate,
|
|
93
|
+
hh : translator.translate,
|
|
94
|
+
d : 'dan',
|
|
95
|
+
dd : translator.translate,
|
|
96
|
+
M : 'mjesec',
|
|
97
|
+
MM : translator.translate,
|
|
98
|
+
y : 'godinu',
|
|
99
|
+
yy : translator.translate
|
|
100
|
+
},
|
|
101
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
102
|
+
ordinal : '%d.',
|
|
103
|
+
week : {
|
|
104
|
+
dow : 1, // Monday is the first day of the week.
|
|
105
|
+
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
return me;
|
|
110
|
+
|
|
111
|
+
})));
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
|
|
3
|
+
;(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
5
|
+
&& typeof require === 'function' ? 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 mi = moment.defineLocale('mi', {
|
|
12
|
+
months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
|
|
13
|
+
monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
|
|
14
|
+
monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
15
|
+
monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
16
|
+
monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
17
|
+
monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
|
|
18
|
+
weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
|
|
19
|
+
weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
|
20
|
+
weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
|
21
|
+
longDateFormat: {
|
|
22
|
+
LT: 'HH:mm',
|
|
23
|
+
LTS: 'HH:mm:ss',
|
|
24
|
+
L: 'DD/MM/YYYY',
|
|
25
|
+
LL: 'D MMMM YYYY',
|
|
26
|
+
LLL: 'D MMMM YYYY [i] HH:mm',
|
|
27
|
+
LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
|
|
28
|
+
},
|
|
29
|
+
calendar: {
|
|
30
|
+
sameDay: '[i teie mahana, i] LT',
|
|
31
|
+
nextDay: '[apopo i] LT',
|
|
32
|
+
nextWeek: 'dddd [i] LT',
|
|
33
|
+
lastDay: '[inanahi i] LT',
|
|
34
|
+
lastWeek: 'dddd [whakamutunga i] LT',
|
|
35
|
+
sameElse: 'L'
|
|
36
|
+
},
|
|
37
|
+
relativeTime: {
|
|
38
|
+
future: 'i roto i %s',
|
|
39
|
+
past: '%s i mua',
|
|
40
|
+
s: 'te hēkona ruarua',
|
|
41
|
+
ss: '%d hēkona',
|
|
42
|
+
m: 'he meneti',
|
|
43
|
+
mm: '%d meneti',
|
|
44
|
+
h: 'te haora',
|
|
45
|
+
hh: '%d haora',
|
|
46
|
+
d: 'he ra',
|
|
47
|
+
dd: '%d ra',
|
|
48
|
+
M: 'he marama',
|
|
49
|
+
MM: '%d marama',
|
|
50
|
+
y: 'he tau',
|
|
51
|
+
yy: '%d tau'
|
|
52
|
+
},
|
|
53
|
+
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
54
|
+
ordinal: '%dº',
|
|
55
|
+
week : {
|
|
56
|
+
dow : 1, // Monday is the first day of the week.
|
|
57
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return mi;
|
|
62
|
+
|
|
63
|
+
})));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
|
|
3
|
+
;(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
5
|
+
&& typeof require === 'function' ? 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 mk = moment.defineLocale('mk', {
|
|
12
|
+
months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
|
|
13
|
+
monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
|
|
14
|
+
weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
|
|
15
|
+
weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
|
|
16
|
+
weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
|
|
17
|
+
longDateFormat : {
|
|
18
|
+
LT : 'H:mm',
|
|
19
|
+
LTS : 'H:mm:ss',
|
|
20
|
+
L : 'D.MM.YYYY',
|
|
21
|
+
LL : 'D MMMM YYYY',
|
|
22
|
+
LLL : 'D MMMM YYYY H:mm',
|
|
23
|
+
LLLL : 'dddd, D MMMM YYYY H:mm'
|
|
24
|
+
},
|
|
25
|
+
calendar : {
|
|
26
|
+
sameDay : '[Денес во] LT',
|
|
27
|
+
nextDay : '[Утре во] LT',
|
|
28
|
+
nextWeek : '[Во] dddd [во] LT',
|
|
29
|
+
lastDay : '[Вчера во] LT',
|
|
30
|
+
lastWeek : function () {
|
|
31
|
+
switch (this.day()) {
|
|
32
|
+
case 0:
|
|
33
|
+
case 3:
|
|
34
|
+
case 6:
|
|
35
|
+
return '[Изминатата] dddd [во] LT';
|
|
36
|
+
case 1:
|
|
37
|
+
case 2:
|
|
38
|
+
case 4:
|
|
39
|
+
case 5:
|
|
40
|
+
return '[Изминатиот] dddd [во] LT';
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
sameElse : 'L'
|
|
44
|
+
},
|
|
45
|
+
relativeTime : {
|
|
46
|
+
future : 'после %s',
|
|
47
|
+
past : 'пред %s',
|
|
48
|
+
s : 'неколку секунди',
|
|
49
|
+
ss : '%d секунди',
|
|
50
|
+
m : 'минута',
|
|
51
|
+
mm : '%d минути',
|
|
52
|
+
h : 'час',
|
|
53
|
+
hh : '%d часа',
|
|
54
|
+
d : 'ден',
|
|
55
|
+
dd : '%d дена',
|
|
56
|
+
M : 'месец',
|
|
57
|
+
MM : '%d месеци',
|
|
58
|
+
y : 'година',
|
|
59
|
+
yy : '%d години'
|
|
60
|
+
},
|
|
61
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
|
|
62
|
+
ordinal : function (number) {
|
|
63
|
+
var lastDigit = number % 10,
|
|
64
|
+
last2Digits = number % 100;
|
|
65
|
+
if (number === 0) {
|
|
66
|
+
return number + '-ев';
|
|
67
|
+
} else if (last2Digits === 0) {
|
|
68
|
+
return number + '-ен';
|
|
69
|
+
} else if (last2Digits > 10 && last2Digits < 20) {
|
|
70
|
+
return number + '-ти';
|
|
71
|
+
} else if (lastDigit === 1) {
|
|
72
|
+
return number + '-ви';
|
|
73
|
+
} else if (lastDigit === 2) {
|
|
74
|
+
return number + '-ри';
|
|
75
|
+
} else if (lastDigit === 7 || lastDigit === 8) {
|
|
76
|
+
return number + '-ми';
|
|
77
|
+
} else {
|
|
78
|
+
return number + '-ти';
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
week : {
|
|
82
|
+
dow : 1, // Monday is the first day of the week.
|
|
83
|
+
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
return mk;
|
|
88
|
+
|
|
89
|
+
})));
|