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,115 @@
|
|
|
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 suffixes = {
|
|
12
|
+
0: '-ум',
|
|
13
|
+
1: '-ум',
|
|
14
|
+
2: '-юм',
|
|
15
|
+
3: '-юм',
|
|
16
|
+
4: '-ум',
|
|
17
|
+
5: '-ум',
|
|
18
|
+
6: '-ум',
|
|
19
|
+
7: '-ум',
|
|
20
|
+
8: '-ум',
|
|
21
|
+
9: '-ум',
|
|
22
|
+
10: '-ум',
|
|
23
|
+
12: '-ум',
|
|
24
|
+
13: '-ум',
|
|
25
|
+
20: '-ум',
|
|
26
|
+
30: '-юм',
|
|
27
|
+
40: '-ум',
|
|
28
|
+
50: '-ум',
|
|
29
|
+
60: '-ум',
|
|
30
|
+
70: '-ум',
|
|
31
|
+
80: '-ум',
|
|
32
|
+
90: '-ум',
|
|
33
|
+
100: '-ум'
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var tg = moment.defineLocale('tg', {
|
|
37
|
+
months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
|
|
38
|
+
monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
|
|
39
|
+
weekdays : 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
|
|
40
|
+
weekdaysShort : 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
|
|
41
|
+
weekdaysMin : 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
|
|
42
|
+
longDateFormat : {
|
|
43
|
+
LT : 'HH:mm',
|
|
44
|
+
LTS : 'HH:mm:ss',
|
|
45
|
+
L : 'DD/MM/YYYY',
|
|
46
|
+
LL : 'D MMMM YYYY',
|
|
47
|
+
LLL : 'D MMMM YYYY HH:mm',
|
|
48
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
|
49
|
+
},
|
|
50
|
+
calendar : {
|
|
51
|
+
sameDay : '[Имрӯз соати] LT',
|
|
52
|
+
nextDay : '[Пагоҳ соати] LT',
|
|
53
|
+
lastDay : '[Дирӯз соати] LT',
|
|
54
|
+
nextWeek : 'dddd[и] [ҳафтаи оянда соати] LT',
|
|
55
|
+
lastWeek : 'dddd[и] [ҳафтаи гузашта соати] LT',
|
|
56
|
+
sameElse : 'L'
|
|
57
|
+
},
|
|
58
|
+
relativeTime : {
|
|
59
|
+
future : 'баъди %s',
|
|
60
|
+
past : '%s пеш',
|
|
61
|
+
s : 'якчанд сония',
|
|
62
|
+
m : 'як дақиқа',
|
|
63
|
+
mm : '%d дақиқа',
|
|
64
|
+
h : 'як соат',
|
|
65
|
+
hh : '%d соат',
|
|
66
|
+
d : 'як рӯз',
|
|
67
|
+
dd : '%d рӯз',
|
|
68
|
+
M : 'як моҳ',
|
|
69
|
+
MM : '%d моҳ',
|
|
70
|
+
y : 'як сол',
|
|
71
|
+
yy : '%d сол'
|
|
72
|
+
},
|
|
73
|
+
meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
|
|
74
|
+
meridiemHour: function (hour, meridiem) {
|
|
75
|
+
if (hour === 12) {
|
|
76
|
+
hour = 0;
|
|
77
|
+
}
|
|
78
|
+
if (meridiem === 'шаб') {
|
|
79
|
+
return hour < 4 ? hour : hour + 12;
|
|
80
|
+
} else if (meridiem === 'субҳ') {
|
|
81
|
+
return hour;
|
|
82
|
+
} else if (meridiem === 'рӯз') {
|
|
83
|
+
return hour >= 11 ? hour : hour + 12;
|
|
84
|
+
} else if (meridiem === 'бегоҳ') {
|
|
85
|
+
return hour + 12;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
meridiem: function (hour, minute, isLower) {
|
|
89
|
+
if (hour < 4) {
|
|
90
|
+
return 'шаб';
|
|
91
|
+
} else if (hour < 11) {
|
|
92
|
+
return 'субҳ';
|
|
93
|
+
} else if (hour < 16) {
|
|
94
|
+
return 'рӯз';
|
|
95
|
+
} else if (hour < 19) {
|
|
96
|
+
return 'бегоҳ';
|
|
97
|
+
} else {
|
|
98
|
+
return 'шаб';
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
|
|
102
|
+
ordinal: function (number) {
|
|
103
|
+
var a = number % 10,
|
|
104
|
+
b = number >= 100 ? 100 : null;
|
|
105
|
+
return number + (suffixes[number] || suffixes[a] || suffixes[b]);
|
|
106
|
+
},
|
|
107
|
+
week : {
|
|
108
|
+
dow : 1, // Monday is the first day of the week.
|
|
109
|
+
doy : 7 // The week that contains Jan 1th is the first week of the year.
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
return tg;
|
|
114
|
+
|
|
115
|
+
})));
|
|
@@ -0,0 +1,66 @@
|
|
|
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 th = moment.defineLocale('th', {
|
|
12
|
+
months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
|
|
13
|
+
monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
|
|
14
|
+
monthsParseExact: true,
|
|
15
|
+
weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
|
|
16
|
+
weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
|
|
17
|
+
weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
|
|
18
|
+
weekdaysParseExact : true,
|
|
19
|
+
longDateFormat : {
|
|
20
|
+
LT : 'H:mm',
|
|
21
|
+
LTS : 'H:mm:ss',
|
|
22
|
+
L : 'DD/MM/YYYY',
|
|
23
|
+
LL : 'D MMMM YYYY',
|
|
24
|
+
LLL : 'D MMMM YYYY เวลา H:mm',
|
|
25
|
+
LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
|
|
26
|
+
},
|
|
27
|
+
meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
|
|
28
|
+
isPM: function (input) {
|
|
29
|
+
return input === 'หลังเที่ยง';
|
|
30
|
+
},
|
|
31
|
+
meridiem : function (hour, minute, isLower) {
|
|
32
|
+
if (hour < 12) {
|
|
33
|
+
return 'ก่อนเที่ยง';
|
|
34
|
+
} else {
|
|
35
|
+
return 'หลังเที่ยง';
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
calendar : {
|
|
39
|
+
sameDay : '[วันนี้ เวลา] LT',
|
|
40
|
+
nextDay : '[พรุ่งนี้ เวลา] LT',
|
|
41
|
+
nextWeek : 'dddd[หน้า เวลา] LT',
|
|
42
|
+
lastDay : '[เมื่อวานนี้ เวลา] LT',
|
|
43
|
+
lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
|
|
44
|
+
sameElse : 'L'
|
|
45
|
+
},
|
|
46
|
+
relativeTime : {
|
|
47
|
+
future : 'อีก %s',
|
|
48
|
+
past : '%sที่แล้ว',
|
|
49
|
+
s : 'ไม่กี่วินาที',
|
|
50
|
+
ss : '%d วินาที',
|
|
51
|
+
m : '1 นาที',
|
|
52
|
+
mm : '%d นาที',
|
|
53
|
+
h : '1 ชั่วโมง',
|
|
54
|
+
hh : '%d ชั่วโมง',
|
|
55
|
+
d : '1 วัน',
|
|
56
|
+
dd : '%d วัน',
|
|
57
|
+
M : '1 เดือน',
|
|
58
|
+
MM : '%d เดือน',
|
|
59
|
+
y : '1 ปี',
|
|
60
|
+
yy : '%d ปี'
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
return th;
|
|
65
|
+
|
|
66
|
+
})));
|
|
@@ -0,0 +1,61 @@
|
|
|
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 tlPh = moment.defineLocale('tl-ph', {
|
|
12
|
+
months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
|
|
13
|
+
monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
|
|
14
|
+
weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
|
|
15
|
+
weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
|
|
16
|
+
weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
|
|
17
|
+
longDateFormat : {
|
|
18
|
+
LT : 'HH:mm',
|
|
19
|
+
LTS : 'HH:mm:ss',
|
|
20
|
+
L : 'MM/D/YYYY',
|
|
21
|
+
LL : 'MMMM D, YYYY',
|
|
22
|
+
LLL : 'MMMM D, YYYY HH:mm',
|
|
23
|
+
LLLL : 'dddd, MMMM DD, YYYY HH:mm'
|
|
24
|
+
},
|
|
25
|
+
calendar : {
|
|
26
|
+
sameDay: 'LT [ngayong araw]',
|
|
27
|
+
nextDay: '[Bukas ng] LT',
|
|
28
|
+
nextWeek: 'LT [sa susunod na] dddd',
|
|
29
|
+
lastDay: 'LT [kahapon]',
|
|
30
|
+
lastWeek: 'LT [noong nakaraang] dddd',
|
|
31
|
+
sameElse: 'L'
|
|
32
|
+
},
|
|
33
|
+
relativeTime : {
|
|
34
|
+
future : 'sa loob ng %s',
|
|
35
|
+
past : '%s ang nakalipas',
|
|
36
|
+
s : 'ilang segundo',
|
|
37
|
+
ss : '%d segundo',
|
|
38
|
+
m : 'isang minuto',
|
|
39
|
+
mm : '%d minuto',
|
|
40
|
+
h : 'isang oras',
|
|
41
|
+
hh : '%d oras',
|
|
42
|
+
d : 'isang araw',
|
|
43
|
+
dd : '%d araw',
|
|
44
|
+
M : 'isang buwan',
|
|
45
|
+
MM : '%d buwan',
|
|
46
|
+
y : 'isang taon',
|
|
47
|
+
yy : '%d taon'
|
|
48
|
+
},
|
|
49
|
+
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
50
|
+
ordinal : function (number) {
|
|
51
|
+
return number;
|
|
52
|
+
},
|
|
53
|
+
week : {
|
|
54
|
+
dow : 1, // Monday is the first day of the week.
|
|
55
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return tlPh;
|
|
60
|
+
|
|
61
|
+
})));
|
|
@@ -0,0 +1,121 @@
|
|
|
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 numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
|
|
12
|
+
|
|
13
|
+
function translateFuture(output) {
|
|
14
|
+
var time = output;
|
|
15
|
+
time = (output.indexOf('jaj') !== -1) ?
|
|
16
|
+
time.slice(0, -3) + 'leS' :
|
|
17
|
+
(output.indexOf('jar') !== -1) ?
|
|
18
|
+
time.slice(0, -3) + 'waQ' :
|
|
19
|
+
(output.indexOf('DIS') !== -1) ?
|
|
20
|
+
time.slice(0, -3) + 'nem' :
|
|
21
|
+
time + ' pIq';
|
|
22
|
+
return time;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function translatePast(output) {
|
|
26
|
+
var time = output;
|
|
27
|
+
time = (output.indexOf('jaj') !== -1) ?
|
|
28
|
+
time.slice(0, -3) + 'Hu’' :
|
|
29
|
+
(output.indexOf('jar') !== -1) ?
|
|
30
|
+
time.slice(0, -3) + 'wen' :
|
|
31
|
+
(output.indexOf('DIS') !== -1) ?
|
|
32
|
+
time.slice(0, -3) + 'ben' :
|
|
33
|
+
time + ' ret';
|
|
34
|
+
return time;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function translate(number, withoutSuffix, string, isFuture) {
|
|
38
|
+
var numberNoun = numberAsNoun(number);
|
|
39
|
+
switch (string) {
|
|
40
|
+
case 'ss':
|
|
41
|
+
return numberNoun + ' lup';
|
|
42
|
+
case 'mm':
|
|
43
|
+
return numberNoun + ' tup';
|
|
44
|
+
case 'hh':
|
|
45
|
+
return numberNoun + ' rep';
|
|
46
|
+
case 'dd':
|
|
47
|
+
return numberNoun + ' jaj';
|
|
48
|
+
case 'MM':
|
|
49
|
+
return numberNoun + ' jar';
|
|
50
|
+
case 'yy':
|
|
51
|
+
return numberNoun + ' DIS';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function numberAsNoun(number) {
|
|
56
|
+
var hundred = Math.floor((number % 1000) / 100),
|
|
57
|
+
ten = Math.floor((number % 100) / 10),
|
|
58
|
+
one = number % 10,
|
|
59
|
+
word = '';
|
|
60
|
+
if (hundred > 0) {
|
|
61
|
+
word += numbersNouns[hundred] + 'vatlh';
|
|
62
|
+
}
|
|
63
|
+
if (ten > 0) {
|
|
64
|
+
word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
|
|
65
|
+
}
|
|
66
|
+
if (one > 0) {
|
|
67
|
+
word += ((word !== '') ? ' ' : '') + numbersNouns[one];
|
|
68
|
+
}
|
|
69
|
+
return (word === '') ? 'pagh' : word;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
var tlh = moment.defineLocale('tlh', {
|
|
73
|
+
months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
|
|
74
|
+
monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
|
|
75
|
+
monthsParseExact : true,
|
|
76
|
+
weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
|
|
77
|
+
weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
|
|
78
|
+
weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
|
|
79
|
+
longDateFormat : {
|
|
80
|
+
LT : 'HH:mm',
|
|
81
|
+
LTS : 'HH:mm:ss',
|
|
82
|
+
L : 'DD.MM.YYYY',
|
|
83
|
+
LL : 'D MMMM YYYY',
|
|
84
|
+
LLL : 'D MMMM YYYY HH:mm',
|
|
85
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
|
86
|
+
},
|
|
87
|
+
calendar : {
|
|
88
|
+
sameDay: '[DaHjaj] LT',
|
|
89
|
+
nextDay: '[wa’leS] LT',
|
|
90
|
+
nextWeek: 'LLL',
|
|
91
|
+
lastDay: '[wa’Hu’] LT',
|
|
92
|
+
lastWeek: 'LLL',
|
|
93
|
+
sameElse: 'L'
|
|
94
|
+
},
|
|
95
|
+
relativeTime : {
|
|
96
|
+
future : translateFuture,
|
|
97
|
+
past : translatePast,
|
|
98
|
+
s : 'puS lup',
|
|
99
|
+
ss : translate,
|
|
100
|
+
m : 'wa’ tup',
|
|
101
|
+
mm : translate,
|
|
102
|
+
h : 'wa’ rep',
|
|
103
|
+
hh : translate,
|
|
104
|
+
d : 'wa’ jaj',
|
|
105
|
+
dd : translate,
|
|
106
|
+
M : 'wa’ jar',
|
|
107
|
+
MM : translate,
|
|
108
|
+
y : 'wa’ DIS',
|
|
109
|
+
yy : translate
|
|
110
|
+
},
|
|
111
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
112
|
+
ordinal : '%d.',
|
|
113
|
+
week : {
|
|
114
|
+
dow : 1, // Monday is the first day of the week.
|
|
115
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
return tlh;
|
|
120
|
+
|
|
121
|
+
})));
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
;(function (global, factory) {
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
4
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
5
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
6
|
+
factory(global.moment)
|
|
7
|
+
}(this, (function (moment) { 'use strict';
|
|
8
|
+
|
|
9
|
+
var suffixes = {
|
|
10
|
+
1: '\'inci',
|
|
11
|
+
5: '\'inci',
|
|
12
|
+
8: '\'inci',
|
|
13
|
+
70: '\'inci',
|
|
14
|
+
80: '\'inci',
|
|
15
|
+
2: '\'nci',
|
|
16
|
+
7: '\'nci',
|
|
17
|
+
20: '\'nci',
|
|
18
|
+
50: '\'nci',
|
|
19
|
+
3: '\'üncü',
|
|
20
|
+
4: '\'üncü',
|
|
21
|
+
100: '\'üncü',
|
|
22
|
+
6: '\'ncı',
|
|
23
|
+
9: '\'uncu',
|
|
24
|
+
10: '\'uncu',
|
|
25
|
+
30: '\'uncu',
|
|
26
|
+
60: '\'ıncı',
|
|
27
|
+
90: '\'ıncı'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var tr = moment.defineLocale('tr', {
|
|
31
|
+
months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
|
|
32
|
+
monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
|
|
33
|
+
weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
|
|
34
|
+
weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
|
|
35
|
+
weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
|
|
36
|
+
longDateFormat : {
|
|
37
|
+
LT : 'HH:mm',
|
|
38
|
+
LTS : 'HH:mm:ss',
|
|
39
|
+
L : 'DD.MM.YYYY',
|
|
40
|
+
LL : 'D MMMM YYYY',
|
|
41
|
+
LLL : 'D MMMM YYYY HH:mm',
|
|
42
|
+
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
|
43
|
+
},
|
|
44
|
+
calendar : {
|
|
45
|
+
sameDay : '[bugün saat] LT',
|
|
46
|
+
nextDay : '[yarın saat] LT',
|
|
47
|
+
nextWeek : '[gelecek] dddd [saat] LT',
|
|
48
|
+
lastDay : '[dün] LT',
|
|
49
|
+
lastWeek : '[geçen] dddd [saat] LT',
|
|
50
|
+
sameElse : 'L'
|
|
51
|
+
},
|
|
52
|
+
relativeTime : {
|
|
53
|
+
future : '%s sonra',
|
|
54
|
+
past : '%s önce',
|
|
55
|
+
s : 'birkaç saniye',
|
|
56
|
+
ss : '%d saniye',
|
|
57
|
+
m : 'bir dakika',
|
|
58
|
+
mm : '%d dakika',
|
|
59
|
+
h : 'bir saat',
|
|
60
|
+
hh : '%d saat',
|
|
61
|
+
d : 'bir gün',
|
|
62
|
+
dd : '%d gün',
|
|
63
|
+
M : 'bir ay',
|
|
64
|
+
MM : '%d ay',
|
|
65
|
+
y : 'bir yıl',
|
|
66
|
+
yy : '%d yıl'
|
|
67
|
+
},
|
|
68
|
+
ordinal: function (number, period) {
|
|
69
|
+
switch (period) {
|
|
70
|
+
case 'd':
|
|
71
|
+
case 'D':
|
|
72
|
+
case 'Do':
|
|
73
|
+
case 'DD':
|
|
74
|
+
return number;
|
|
75
|
+
default:
|
|
76
|
+
if (number === 0) { // special case for zero
|
|
77
|
+
return number + '\'ıncı';
|
|
78
|
+
}
|
|
79
|
+
var a = number % 10,
|
|
80
|
+
b = number % 100 - a,
|
|
81
|
+
c = number >= 100 ? 100 : null;
|
|
82
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
week : {
|
|
86
|
+
dow : 1, // Monday is the first day of the week.
|
|
87
|
+
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
return tr;
|
|
92
|
+
|
|
93
|
+
})));
|