effective_bootstrap 0.4.8 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,76 @@
|
|
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
|
+
|
12
|
+
var months = [
|
13
|
+
'Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'
|
14
|
+
];
|
15
|
+
|
16
|
+
var monthsShort = ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'];
|
17
|
+
|
18
|
+
var weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'];
|
19
|
+
|
20
|
+
var weekdaysShort = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'];
|
21
|
+
|
22
|
+
var weekdaysMin = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'];
|
23
|
+
|
24
|
+
var ga = moment.defineLocale('ga', {
|
25
|
+
months: months,
|
26
|
+
monthsShort: monthsShort,
|
27
|
+
monthsParseExact: true,
|
28
|
+
weekdays: weekdays,
|
29
|
+
weekdaysShort: weekdaysShort,
|
30
|
+
weekdaysMin: weekdaysMin,
|
31
|
+
longDateFormat: {
|
32
|
+
LT: 'HH:mm',
|
33
|
+
LTS: 'HH:mm:ss',
|
34
|
+
L: 'DD/MM/YYYY',
|
35
|
+
LL: 'D MMMM YYYY',
|
36
|
+
LLL: 'D MMMM YYYY HH:mm',
|
37
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
38
|
+
},
|
39
|
+
calendar: {
|
40
|
+
sameDay: '[Inniu ag] LT',
|
41
|
+
nextDay: '[Amárach ag] LT',
|
42
|
+
nextWeek: 'dddd [ag] LT',
|
43
|
+
lastDay: '[Inné aig] LT',
|
44
|
+
lastWeek: 'dddd [seo caite] [ag] LT',
|
45
|
+
sameElse: 'L'
|
46
|
+
},
|
47
|
+
relativeTime: {
|
48
|
+
future: 'i %s',
|
49
|
+
past: '%s ó shin',
|
50
|
+
s: 'cúpla soicind',
|
51
|
+
ss: '%d soicind',
|
52
|
+
m: 'nóiméad',
|
53
|
+
mm: '%d nóiméad',
|
54
|
+
h: 'uair an chloig',
|
55
|
+
hh: '%d uair an chloig',
|
56
|
+
d: 'lá',
|
57
|
+
dd: '%d lá',
|
58
|
+
M: 'mí',
|
59
|
+
MM: '%d mí',
|
60
|
+
y: 'bliain',
|
61
|
+
yy: '%d bliain'
|
62
|
+
},
|
63
|
+
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
|
64
|
+
ordinal: function (number) {
|
65
|
+
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
|
66
|
+
return number + output;
|
67
|
+
},
|
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 ga;
|
75
|
+
|
76
|
+
})));
|
@@ -0,0 +1,75 @@
|
|
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 months = [
|
12
|
+
'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
|
13
|
+
];
|
14
|
+
|
15
|
+
var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
|
16
|
+
|
17
|
+
var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
|
18
|
+
|
19
|
+
var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
|
20
|
+
|
21
|
+
var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
|
22
|
+
|
23
|
+
var gd = moment.defineLocale('gd', {
|
24
|
+
months : months,
|
25
|
+
monthsShort : monthsShort,
|
26
|
+
monthsParseExact : true,
|
27
|
+
weekdays : weekdays,
|
28
|
+
weekdaysShort : weekdaysShort,
|
29
|
+
weekdaysMin : weekdaysMin,
|
30
|
+
longDateFormat : {
|
31
|
+
LT : 'HH:mm',
|
32
|
+
LTS : 'HH:mm:ss',
|
33
|
+
L : 'DD/MM/YYYY',
|
34
|
+
LL : 'D MMMM YYYY',
|
35
|
+
LLL : 'D MMMM YYYY HH:mm',
|
36
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
37
|
+
},
|
38
|
+
calendar : {
|
39
|
+
sameDay : '[An-diugh aig] LT',
|
40
|
+
nextDay : '[A-màireach aig] LT',
|
41
|
+
nextWeek : 'dddd [aig] LT',
|
42
|
+
lastDay : '[An-dè aig] LT',
|
43
|
+
lastWeek : 'dddd [seo chaidh] [aig] LT',
|
44
|
+
sameElse : 'L'
|
45
|
+
},
|
46
|
+
relativeTime : {
|
47
|
+
future : 'ann an %s',
|
48
|
+
past : 'bho chionn %s',
|
49
|
+
s : 'beagan diogan',
|
50
|
+
ss : '%d diogan',
|
51
|
+
m : 'mionaid',
|
52
|
+
mm : '%d mionaidean',
|
53
|
+
h : 'uair',
|
54
|
+
hh : '%d uairean',
|
55
|
+
d : 'latha',
|
56
|
+
dd : '%d latha',
|
57
|
+
M : 'mìos',
|
58
|
+
MM : '%d mìosan',
|
59
|
+
y : 'bliadhna',
|
60
|
+
yy : '%d bliadhna'
|
61
|
+
},
|
62
|
+
dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
|
63
|
+
ordinal : function (number) {
|
64
|
+
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
|
65
|
+
return number + output;
|
66
|
+
},
|
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 gd;
|
74
|
+
|
75
|
+
})));
|
@@ -0,0 +1,76 @@
|
|
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 gl = moment.defineLocale('gl', {
|
12
|
+
months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
|
13
|
+
monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
|
14
|
+
monthsParseExact: true,
|
15
|
+
weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
16
|
+
weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
17
|
+
weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
18
|
+
weekdaysParseExact : true,
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'H:mm',
|
21
|
+
LTS : 'H:mm:ss',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D [de] MMMM [de] YYYY',
|
24
|
+
LLL : 'D [de] MMMM [de] YYYY H:mm',
|
25
|
+
LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : function () {
|
29
|
+
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
30
|
+
},
|
31
|
+
nextDay : function () {
|
32
|
+
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
|
33
|
+
},
|
34
|
+
nextWeek : function () {
|
35
|
+
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
36
|
+
},
|
37
|
+
lastDay : function () {
|
38
|
+
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
|
39
|
+
},
|
40
|
+
lastWeek : function () {
|
41
|
+
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
42
|
+
},
|
43
|
+
sameElse : 'L'
|
44
|
+
},
|
45
|
+
relativeTime : {
|
46
|
+
future : function (str) {
|
47
|
+
if (str.indexOf('un') === 0) {
|
48
|
+
return 'n' + str;
|
49
|
+
}
|
50
|
+
return 'en ' + str;
|
51
|
+
},
|
52
|
+
past : 'hai %s',
|
53
|
+
s : 'uns segundos',
|
54
|
+
ss : '%d segundos',
|
55
|
+
m : 'un minuto',
|
56
|
+
mm : '%d minutos',
|
57
|
+
h : 'unha hora',
|
58
|
+
hh : '%d horas',
|
59
|
+
d : 'un día',
|
60
|
+
dd : '%d días',
|
61
|
+
M : 'un mes',
|
62
|
+
MM : '%d meses',
|
63
|
+
y : 'un ano',
|
64
|
+
yy : '%d anos'
|
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 gl;
|
75
|
+
|
76
|
+
})));
|
@@ -0,0 +1,122 @@
|
|
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
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
12
|
+
var format = {
|
13
|
+
's': ['thodde secondanim', 'thodde second'],
|
14
|
+
'ss': [number + ' secondanim', number + ' second'],
|
15
|
+
'm': ['eka mintan', 'ek minute'],
|
16
|
+
'mm': [number + ' mintanim', number + ' mintam'],
|
17
|
+
'h': ['eka voran', 'ek vor'],
|
18
|
+
'hh': [number + ' voranim', number + ' voram'],
|
19
|
+
'd': ['eka disan', 'ek dis'],
|
20
|
+
'dd': [number + ' disanim', number + ' dis'],
|
21
|
+
'M': ['eka mhoinean', 'ek mhoino'],
|
22
|
+
'MM': [number + ' mhoineanim', number + ' mhoine'],
|
23
|
+
'y': ['eka vorsan', 'ek voros'],
|
24
|
+
'yy': [number + ' vorsanim', number + ' vorsam']
|
25
|
+
};
|
26
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
27
|
+
}
|
28
|
+
|
29
|
+
var gomLatn = moment.defineLocale('gom-latn', {
|
30
|
+
months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
|
31
|
+
monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
|
32
|
+
monthsParseExact : true,
|
33
|
+
weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
|
34
|
+
weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
|
35
|
+
weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
|
36
|
+
weekdaysParseExact : true,
|
37
|
+
longDateFormat : {
|
38
|
+
LT : 'A h:mm [vazta]',
|
39
|
+
LTS : 'A h:mm:ss [vazta]',
|
40
|
+
L : 'DD-MM-YYYY',
|
41
|
+
LL : 'D MMMM YYYY',
|
42
|
+
LLL : 'D MMMM YYYY A h:mm [vazta]',
|
43
|
+
LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
|
44
|
+
llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
|
45
|
+
},
|
46
|
+
calendar : {
|
47
|
+
sameDay: '[Aiz] LT',
|
48
|
+
nextDay: '[Faleam] LT',
|
49
|
+
nextWeek: '[Ieta to] dddd[,] LT',
|
50
|
+
lastDay: '[Kal] LT',
|
51
|
+
lastWeek: '[Fatlo] dddd[,] LT',
|
52
|
+
sameElse: 'L'
|
53
|
+
},
|
54
|
+
relativeTime : {
|
55
|
+
future : '%s',
|
56
|
+
past : '%s adim',
|
57
|
+
s : processRelativeTime,
|
58
|
+
ss : processRelativeTime,
|
59
|
+
m : processRelativeTime,
|
60
|
+
mm : processRelativeTime,
|
61
|
+
h : processRelativeTime,
|
62
|
+
hh : processRelativeTime,
|
63
|
+
d : processRelativeTime,
|
64
|
+
dd : processRelativeTime,
|
65
|
+
M : processRelativeTime,
|
66
|
+
MM : processRelativeTime,
|
67
|
+
y : processRelativeTime,
|
68
|
+
yy : processRelativeTime
|
69
|
+
},
|
70
|
+
dayOfMonthOrdinalParse : /\d{1,2}(er)/,
|
71
|
+
ordinal : function (number, period) {
|
72
|
+
switch (period) {
|
73
|
+
// the ordinal 'er' only applies to day of the month
|
74
|
+
case 'D':
|
75
|
+
return number + 'er';
|
76
|
+
default:
|
77
|
+
case 'M':
|
78
|
+
case 'Q':
|
79
|
+
case 'DDD':
|
80
|
+
case 'd':
|
81
|
+
case 'w':
|
82
|
+
case 'W':
|
83
|
+
return number;
|
84
|
+
}
|
85
|
+
},
|
86
|
+
week : {
|
87
|
+
dow : 1, // Monday is the first day of the week.
|
88
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
89
|
+
},
|
90
|
+
meridiemParse: /rati|sokalli|donparam|sanje/,
|
91
|
+
meridiemHour : function (hour, meridiem) {
|
92
|
+
if (hour === 12) {
|
93
|
+
hour = 0;
|
94
|
+
}
|
95
|
+
if (meridiem === 'rati') {
|
96
|
+
return hour < 4 ? hour : hour + 12;
|
97
|
+
} else if (meridiem === 'sokalli') {
|
98
|
+
return hour;
|
99
|
+
} else if (meridiem === 'donparam') {
|
100
|
+
return hour > 12 ? hour : hour + 12;
|
101
|
+
} else if (meridiem === 'sanje') {
|
102
|
+
return hour + 12;
|
103
|
+
}
|
104
|
+
},
|
105
|
+
meridiem : function (hour, minute, isLower) {
|
106
|
+
if (hour < 4) {
|
107
|
+
return 'rati';
|
108
|
+
} else if (hour < 12) {
|
109
|
+
return 'sokalli';
|
110
|
+
} else if (hour < 16) {
|
111
|
+
return 'donparam';
|
112
|
+
} else if (hour < 20) {
|
113
|
+
return 'sanje';
|
114
|
+
} else {
|
115
|
+
return 'rati';
|
116
|
+
}
|
117
|
+
}
|
118
|
+
});
|
119
|
+
|
120
|
+
return gomLatn;
|
121
|
+
|
122
|
+
})));
|
@@ -0,0 +1,123 @@
|
|
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 symbolMap = {
|
12
|
+
'1': '૧',
|
13
|
+
'2': '૨',
|
14
|
+
'3': '૩',
|
15
|
+
'4': '૪',
|
16
|
+
'5': '૫',
|
17
|
+
'6': '૬',
|
18
|
+
'7': '૭',
|
19
|
+
'8': '૮',
|
20
|
+
'9': '૯',
|
21
|
+
'0': '૦'
|
22
|
+
},
|
23
|
+
numberMap = {
|
24
|
+
'૧': '1',
|
25
|
+
'૨': '2',
|
26
|
+
'૩': '3',
|
27
|
+
'૪': '4',
|
28
|
+
'૫': '5',
|
29
|
+
'૬': '6',
|
30
|
+
'૭': '7',
|
31
|
+
'૮': '8',
|
32
|
+
'૯': '9',
|
33
|
+
'૦': '0'
|
34
|
+
};
|
35
|
+
|
36
|
+
var gu = moment.defineLocale('gu', {
|
37
|
+
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
|
38
|
+
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
|
39
|
+
monthsParseExact: true,
|
40
|
+
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
|
41
|
+
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
|
42
|
+
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
|
43
|
+
longDateFormat: {
|
44
|
+
LT: 'A h:mm વાગ્યે',
|
45
|
+
LTS: 'A h:mm:ss વાગ્યે',
|
46
|
+
L: 'DD/MM/YYYY',
|
47
|
+
LL: 'D MMMM YYYY',
|
48
|
+
LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
|
49
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
|
50
|
+
},
|
51
|
+
calendar: {
|
52
|
+
sameDay: '[આજ] LT',
|
53
|
+
nextDay: '[કાલે] LT',
|
54
|
+
nextWeek: 'dddd, LT',
|
55
|
+
lastDay: '[ગઇકાલે] LT',
|
56
|
+
lastWeek: '[પાછલા] dddd, LT',
|
57
|
+
sameElse: 'L'
|
58
|
+
},
|
59
|
+
relativeTime: {
|
60
|
+
future: '%s મા',
|
61
|
+
past: '%s પેહલા',
|
62
|
+
s: 'અમુક પળો',
|
63
|
+
ss: '%d સેકંડ',
|
64
|
+
m: 'એક મિનિટ',
|
65
|
+
mm: '%d મિનિટ',
|
66
|
+
h: 'એક કલાક',
|
67
|
+
hh: '%d કલાક',
|
68
|
+
d: 'એક દિવસ',
|
69
|
+
dd: '%d દિવસ',
|
70
|
+
M: 'એક મહિનો',
|
71
|
+
MM: '%d મહિનો',
|
72
|
+
y: 'એક વર્ષ',
|
73
|
+
yy: '%d વર્ષ'
|
74
|
+
},
|
75
|
+
preparse: function (string) {
|
76
|
+
return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
|
77
|
+
return numberMap[match];
|
78
|
+
});
|
79
|
+
},
|
80
|
+
postformat: function (string) {
|
81
|
+
return string.replace(/\d/g, function (match) {
|
82
|
+
return symbolMap[match];
|
83
|
+
});
|
84
|
+
},
|
85
|
+
// Gujarati notation for meridiems are quite fuzzy in practice. While there exists
|
86
|
+
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
|
87
|
+
meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
|
88
|
+
meridiemHour: function (hour, meridiem) {
|
89
|
+
if (hour === 12) {
|
90
|
+
hour = 0;
|
91
|
+
}
|
92
|
+
if (meridiem === 'રાત') {
|
93
|
+
return hour < 4 ? hour : hour + 12;
|
94
|
+
} else if (meridiem === 'સવાર') {
|
95
|
+
return hour;
|
96
|
+
} else if (meridiem === 'બપોર') {
|
97
|
+
return hour >= 10 ? hour : hour + 12;
|
98
|
+
} else if (meridiem === 'સાંજ') {
|
99
|
+
return hour + 12;
|
100
|
+
}
|
101
|
+
},
|
102
|
+
meridiem: function (hour, minute, isLower) {
|
103
|
+
if (hour < 4) {
|
104
|
+
return 'રાત';
|
105
|
+
} else if (hour < 10) {
|
106
|
+
return 'સવાર';
|
107
|
+
} else if (hour < 17) {
|
108
|
+
return 'બપોર';
|
109
|
+
} else if (hour < 20) {
|
110
|
+
return 'સાંજ';
|
111
|
+
} else {
|
112
|
+
return 'રાત';
|
113
|
+
}
|
114
|
+
},
|
115
|
+
week: {
|
116
|
+
dow: 0, // Sunday is the first day of the week.
|
117
|
+
doy: 6 // The week that contains Jan 6th is the first week of the year.
|
118
|
+
}
|
119
|
+
});
|
120
|
+
|
121
|
+
return gu;
|
122
|
+
|
123
|
+
})));
|