bootstrap3-datetimepicker-rails 2.1.20
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +22 -0
- data/README.md +67 -0
- data/lib/bootstrap3-datetimepicker-rails.rb +8 -0
- data/lib/bootstrap3-datetimepicker-rails/version.rb +5 -0
- data/vendor/assets/javascripts/bootstrap-datetimepicker.js +1084 -0
- data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +28 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +86 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +107 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +139 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +66 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +155 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +59 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +71 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +79 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +62 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +59 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +63 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +65 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +66 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +60 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +60 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +97 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +103 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +54 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +58 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +71 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +77 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +105 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +140 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +98 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +67 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +124 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +59 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +58 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +108 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +118 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +77 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +64 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +104 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +66 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +57 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +105 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +67 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +98 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +60 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +56 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +163 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +156 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +144 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +57 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +63 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +58 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +93 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +55 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +55 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +157 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +55 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +62 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +108 -0
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +84 -0
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +174 -0
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +8 -0
- metadata +163 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : japanese (ja)
|
3
|
+
// author : LI Long : https://github.com/baryon
|
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('ja', {
|
15
|
+
months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
16
|
+
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
17
|
+
weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
|
18
|
+
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
|
19
|
+
weekdaysMin : "日_月_火_水_木_金_土".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "Ah時m分",
|
22
|
+
L : "YYYY/MM/DD",
|
23
|
+
LL : "YYYY年M月D日",
|
24
|
+
LLL : "YYYY年M月D日LT",
|
25
|
+
LLLL : "YYYY年M月D日LT dddd"
|
26
|
+
},
|
27
|
+
meridiem : function (hour, minute, isLower) {
|
28
|
+
if (hour < 12) {
|
29
|
+
return "午前";
|
30
|
+
} else {
|
31
|
+
return "午後";
|
32
|
+
}
|
33
|
+
},
|
34
|
+
calendar : {
|
35
|
+
sameDay : '[今日] LT',
|
36
|
+
nextDay : '[明日] LT',
|
37
|
+
nextWeek : '[来週]dddd LT',
|
38
|
+
lastDay : '[昨日] LT',
|
39
|
+
lastWeek : '[前週]dddd LT',
|
40
|
+
sameElse : 'L'
|
41
|
+
},
|
42
|
+
relativeTime : {
|
43
|
+
future : "%s後",
|
44
|
+
past : "%s前",
|
45
|
+
s : "数秒",
|
46
|
+
m : "1分",
|
47
|
+
mm : "%d分",
|
48
|
+
h : "1時間",
|
49
|
+
hh : "%d時間",
|
50
|
+
d : "1日",
|
51
|
+
dd : "%d日",
|
52
|
+
M : "1ヶ月",
|
53
|
+
MM : "%dヶ月",
|
54
|
+
y : "1年",
|
55
|
+
yy : "%d年"
|
56
|
+
}
|
57
|
+
});
|
58
|
+
}));
|
@@ -0,0 +1,108 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Georgian (ka)
|
3
|
+
// author : Irakli Janiashvili : https://github.com/irakli-janiashvili
|
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
|
+
|
15
|
+
function monthsCaseReplace(m, format) {
|
16
|
+
var months = {
|
17
|
+
'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
|
18
|
+
'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
|
19
|
+
},
|
20
|
+
|
21
|
+
nounCase = (/D[oD] *MMMM?/).test(format) ?
|
22
|
+
'accusative' :
|
23
|
+
'nominative';
|
24
|
+
|
25
|
+
return months[nounCase][m.month()];
|
26
|
+
}
|
27
|
+
|
28
|
+
function weekdaysCaseReplace(m, format) {
|
29
|
+
var weekdays = {
|
30
|
+
'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
|
31
|
+
'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
|
32
|
+
},
|
33
|
+
|
34
|
+
nounCase = (/(წინა|შემდეგ)/).test(format) ?
|
35
|
+
'accusative' :
|
36
|
+
'nominative';
|
37
|
+
|
38
|
+
return weekdays[nounCase][m.day()];
|
39
|
+
}
|
40
|
+
|
41
|
+
return moment.lang('ka', {
|
42
|
+
months : monthsCaseReplace,
|
43
|
+
monthsShort : "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),
|
44
|
+
weekdays : weekdaysCaseReplace,
|
45
|
+
weekdaysShort : "კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),
|
46
|
+
weekdaysMin : "კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),
|
47
|
+
longDateFormat : {
|
48
|
+
LT : "h:mm A",
|
49
|
+
L : "DD/MM/YYYY",
|
50
|
+
LL : "D MMMM YYYY",
|
51
|
+
LLL : "D MMMM YYYY LT",
|
52
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
53
|
+
},
|
54
|
+
calendar : {
|
55
|
+
sameDay : '[დღეს] LT[-ზე]',
|
56
|
+
nextDay : '[ხვალ] LT[-ზე]',
|
57
|
+
lastDay : '[გუშინ] LT[-ზე]',
|
58
|
+
nextWeek : '[შემდეგ] dddd LT[-ზე]',
|
59
|
+
lastWeek : '[წინა] dddd LT-ზე',
|
60
|
+
sameElse : 'L'
|
61
|
+
},
|
62
|
+
relativeTime : {
|
63
|
+
future : function (s) {
|
64
|
+
return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
|
65
|
+
s.replace(/ი$/, "ში") :
|
66
|
+
s + "ში";
|
67
|
+
},
|
68
|
+
past : function (s) {
|
69
|
+
if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
|
70
|
+
return s.replace(/(ი|ე)$/, "ის წინ");
|
71
|
+
}
|
72
|
+
if ((/წელი/).test(s)) {
|
73
|
+
return s.replace(/წელი$/, "წლის წინ");
|
74
|
+
}
|
75
|
+
},
|
76
|
+
s : "რამდენიმე წამი",
|
77
|
+
m : "წუთი",
|
78
|
+
mm : "%d წუთი",
|
79
|
+
h : "საათი",
|
80
|
+
hh : "%d საათი",
|
81
|
+
d : "დღე",
|
82
|
+
dd : "%d დღე",
|
83
|
+
M : "თვე",
|
84
|
+
MM : "%d თვე",
|
85
|
+
y : "წელი",
|
86
|
+
yy : "%d წელი"
|
87
|
+
},
|
88
|
+
ordinal : function (number) {
|
89
|
+
if (number === 0) {
|
90
|
+
return number;
|
91
|
+
}
|
92
|
+
|
93
|
+
if (number === 1) {
|
94
|
+
return number + "-ლი";
|
95
|
+
}
|
96
|
+
|
97
|
+
if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
|
98
|
+
return "მე-" + number;
|
99
|
+
}
|
100
|
+
|
101
|
+
return number + "-ე";
|
102
|
+
},
|
103
|
+
week : {
|
104
|
+
dow : 1,
|
105
|
+
doy : 7
|
106
|
+
}
|
107
|
+
});
|
108
|
+
}));
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : korean (ko)
|
3
|
+
// author : Kyungwook, Park : https://github.com/kyungw00k
|
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('ko', {
|
15
|
+
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
16
|
+
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
17
|
+
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
18
|
+
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
19
|
+
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "A h시 mm분",
|
22
|
+
L : "YYYY.MM.DD",
|
23
|
+
LL : "YYYY년 MMMM D일",
|
24
|
+
LLL : "YYYY년 MMMM D일 LT",
|
25
|
+
LLLL : "YYYY년 MMMM D일 dddd LT"
|
26
|
+
},
|
27
|
+
meridiem : function (hour, minute, isUpper) {
|
28
|
+
return hour < 12 ? '오전' : '오후';
|
29
|
+
},
|
30
|
+
calendar : {
|
31
|
+
sameDay : '오늘 LT',
|
32
|
+
nextDay : '내일 LT',
|
33
|
+
nextWeek : 'dddd LT',
|
34
|
+
lastDay : '어제 LT',
|
35
|
+
lastWeek : '지난주 dddd LT',
|
36
|
+
sameElse : 'L'
|
37
|
+
},
|
38
|
+
relativeTime : {
|
39
|
+
future : "%s 후",
|
40
|
+
past : "%s 전",
|
41
|
+
s : "몇초",
|
42
|
+
ss : "%d초",
|
43
|
+
m : "일분",
|
44
|
+
mm : "%d분",
|
45
|
+
h : "한시간",
|
46
|
+
hh : "%d시간",
|
47
|
+
d : "하루",
|
48
|
+
dd : "%d일",
|
49
|
+
M : "한달",
|
50
|
+
MM : "%d달",
|
51
|
+
y : "일년",
|
52
|
+
yy : "%d년"
|
53
|
+
},
|
54
|
+
ordinal : '%d일'
|
55
|
+
});
|
56
|
+
}));
|
@@ -0,0 +1,118 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Lithuanian (lt)
|
3
|
+
// author : Mindaugas Mozūras : https://github.com/mmozuras
|
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
|
+
var units = {
|
15
|
+
"m" : "minutė_minutės_minutę",
|
16
|
+
"mm": "minutės_minučių_minutes",
|
17
|
+
"h" : "valanda_valandos_valandą",
|
18
|
+
"hh": "valandos_valandų_valandas",
|
19
|
+
"d" : "diena_dienos_dieną",
|
20
|
+
"dd": "dienos_dienų_dienas",
|
21
|
+
"M" : "mėnuo_mėnesio_mėnesį",
|
22
|
+
"MM": "mėnesiai_mėnesių_mėnesius",
|
23
|
+
"y" : "metai_metų_metus",
|
24
|
+
"yy": "metai_metų_metus"
|
25
|
+
},
|
26
|
+
weekDays = "pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis_sekmadienis".split("_");
|
27
|
+
|
28
|
+
function translateSeconds(number, withoutSuffix, key, isFuture) {
|
29
|
+
if (withoutSuffix) {
|
30
|
+
return "kelios sekundės";
|
31
|
+
} else {
|
32
|
+
return isFuture ? "kelių sekundžių" : "kelias sekundes";
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
function translateSingular(number, withoutSuffix, key, isFuture) {
|
37
|
+
return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
|
38
|
+
}
|
39
|
+
|
40
|
+
function special(number) {
|
41
|
+
return number % 10 === 0 || (number > 10 && number < 20);
|
42
|
+
}
|
43
|
+
|
44
|
+
function forms(key) {
|
45
|
+
return units[key].split("_");
|
46
|
+
}
|
47
|
+
|
48
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
49
|
+
var result = number + " ";
|
50
|
+
if (number === 1) {
|
51
|
+
return result + translateSingular(number, withoutSuffix, key[0], isFuture);
|
52
|
+
} else if (withoutSuffix) {
|
53
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[0]);
|
54
|
+
} else {
|
55
|
+
if (isFuture) {
|
56
|
+
return result + forms(key)[1];
|
57
|
+
} else {
|
58
|
+
return result + (special(number) ? forms(key)[1] : forms(key)[2]);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
function relativeWeekDay(moment, format) {
|
64
|
+
var nominative = format.indexOf('dddd LT') === -1,
|
65
|
+
weekDay = weekDays[moment.weekday()];
|
66
|
+
|
67
|
+
return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į";
|
68
|
+
}
|
69
|
+
|
70
|
+
return moment.lang("lt", {
|
71
|
+
months : "sausio_vasario_kovo_balandžio_gegužės_biržėlio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),
|
72
|
+
monthsShort : "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),
|
73
|
+
weekdays : relativeWeekDay,
|
74
|
+
weekdaysShort : "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),
|
75
|
+
weekdaysMin : "S_P_A_T_K_Pn_Š".split("_"),
|
76
|
+
longDateFormat : {
|
77
|
+
LT : "HH:mm",
|
78
|
+
L : "YYYY-MM-DD",
|
79
|
+
LL : "YYYY [m.] MMMM D [d.]",
|
80
|
+
LLL : "YYYY [m.] MMMM D [d.], LT [val.]",
|
81
|
+
LLLL : "YYYY [m.] MMMM D [d.], dddd, LT [val.]",
|
82
|
+
l : "YYYY-MM-DD",
|
83
|
+
ll : "YYYY [m.] MMMM D [d.]",
|
84
|
+
lll : "YYYY [m.] MMMM D [d.], LT [val.]",
|
85
|
+
llll : "YYYY [m.] MMMM D [d.], ddd, LT [val.]"
|
86
|
+
},
|
87
|
+
calendar : {
|
88
|
+
sameDay : "[Šiandien] LT",
|
89
|
+
nextDay : "[Rytoj] LT",
|
90
|
+
nextWeek : "dddd LT",
|
91
|
+
lastDay : "[Vakar] LT",
|
92
|
+
lastWeek : "[Praėjusį] dddd LT",
|
93
|
+
sameElse : "L"
|
94
|
+
},
|
95
|
+
relativeTime : {
|
96
|
+
future : "po %s",
|
97
|
+
past : "prieš %s",
|
98
|
+
s : translateSeconds,
|
99
|
+
m : translateSingular,
|
100
|
+
mm : translate,
|
101
|
+
h : translateSingular,
|
102
|
+
hh : translate,
|
103
|
+
d : translateSingular,
|
104
|
+
dd : translate,
|
105
|
+
M : translateSingular,
|
106
|
+
MM : translate,
|
107
|
+
y : translateSingular,
|
108
|
+
yy : translate
|
109
|
+
},
|
110
|
+
ordinal : function (number) {
|
111
|
+
return number + '-oji';
|
112
|
+
},
|
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
|
+
}));
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : latvian (lv)
|
3
|
+
// author : Kristaps Karlsons : https://github.com/skakri
|
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
|
+
var units = {
|
15
|
+
'mm': 'minūti_minūtes_minūte_minūtes',
|
16
|
+
'hh': 'stundu_stundas_stunda_stundas',
|
17
|
+
'dd': 'dienu_dienas_diena_dienas',
|
18
|
+
'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
|
19
|
+
'yy': 'gadu_gadus_gads_gadi'
|
20
|
+
};
|
21
|
+
|
22
|
+
function format(word, number, withoutSuffix) {
|
23
|
+
var forms = word.split('_');
|
24
|
+
if (withoutSuffix) {
|
25
|
+
return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
|
26
|
+
} else {
|
27
|
+
return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
32
|
+
return number + ' ' + format(units[key], number, withoutSuffix);
|
33
|
+
}
|
34
|
+
|
35
|
+
return moment.lang('lv', {
|
36
|
+
months : "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),
|
37
|
+
monthsShort : "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),
|
38
|
+
weekdays : "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),
|
39
|
+
weekdaysShort : "Sv_P_O_T_C_Pk_S".split("_"),
|
40
|
+
weekdaysMin : "Sv_P_O_T_C_Pk_S".split("_"),
|
41
|
+
longDateFormat : {
|
42
|
+
LT : "HH:mm",
|
43
|
+
L : "DD.MM.YYYY",
|
44
|
+
LL : "YYYY. [gada] D. MMMM",
|
45
|
+
LLL : "YYYY. [gada] D. MMMM, LT",
|
46
|
+
LLLL : "YYYY. [gada] D. MMMM, dddd, LT"
|
47
|
+
},
|
48
|
+
calendar : {
|
49
|
+
sameDay : '[Šodien pulksten] LT',
|
50
|
+
nextDay : '[Rīt pulksten] LT',
|
51
|
+
nextWeek : 'dddd [pulksten] LT',
|
52
|
+
lastDay : '[Vakar pulksten] LT',
|
53
|
+
lastWeek : '[Pagājušā] dddd [pulksten] LT',
|
54
|
+
sameElse : 'L'
|
55
|
+
},
|
56
|
+
relativeTime : {
|
57
|
+
future : "%s vēlāk",
|
58
|
+
past : "%s agrāk",
|
59
|
+
s : "dažas sekundes",
|
60
|
+
m : "minūti",
|
61
|
+
mm : relativeTimeWithPlural,
|
62
|
+
h : "stundu",
|
63
|
+
hh : relativeTimeWithPlural,
|
64
|
+
d : "dienu",
|
65
|
+
dd : relativeTimeWithPlural,
|
66
|
+
M : "mēnesi",
|
67
|
+
MM : relativeTimeWithPlural,
|
68
|
+
y : "gadu",
|
69
|
+
yy : relativeTimeWithPlural
|
70
|
+
},
|
71
|
+
ordinal : '%d.',
|
72
|
+
week : {
|
73
|
+
dow : 1, // Monday is the first day of the week.
|
74
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
75
|
+
}
|
76
|
+
});
|
77
|
+
}));
|
@@ -0,0 +1,64 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : malayalam (ml)
|
3
|
+
// author : Floyd Pink : https://github.com/floydpink
|
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('ml', {
|
15
|
+
months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split("_"),
|
16
|
+
monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split("_"),
|
17
|
+
weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split("_"),
|
18
|
+
weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split("_"),
|
19
|
+
weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "A 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 : '[ഇന്ന്] LT',
|
29
|
+
nextDay : '[നാളെ] LT',
|
30
|
+
nextWeek : 'dddd, LT',
|
31
|
+
lastDay : '[ഇന്നലെ] LT',
|
32
|
+
lastWeek : '[കഴിഞ്ഞ] dddd, LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "%s കഴിഞ്ഞ്",
|
37
|
+
past : "%s മുൻപ്",
|
38
|
+
s : "അൽപ നിമിഷങ്ങൾ",
|
39
|
+
m : "ഒരു മിനിറ്റ്",
|
40
|
+
mm : "%d മിനിറ്റ്",
|
41
|
+
h : "ഒരു മണിക്കൂർ",
|
42
|
+
hh : "%d മണിക്കൂർ",
|
43
|
+
d : "ഒരു ദിവസം",
|
44
|
+
dd : "%d ദിവസം",
|
45
|
+
M : "ഒരു മാസം",
|
46
|
+
MM : "%d മാസം",
|
47
|
+
y : "ഒരു വർഷം",
|
48
|
+
yy : "%d വർഷം"
|
49
|
+
},
|
50
|
+
meridiem : function (hour, minute, isLower) {
|
51
|
+
if (hour < 4) {
|
52
|
+
return "രാത്രി";
|
53
|
+
} else if (hour < 12) {
|
54
|
+
return "രാവിലെ";
|
55
|
+
} else if (hour < 17) {
|
56
|
+
return "ഉച്ച കഴിഞ്ഞ്";
|
57
|
+
} else if (hour < 20) {
|
58
|
+
return "വൈകുന്നേരം";
|
59
|
+
} else {
|
60
|
+
return "രാത്രി";
|
61
|
+
}
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}));
|