bootstrap3-datetimepicker-rails 3.0.0.2 → 3.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/lib/bootstrap3-datetimepicker-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-datetimepicker.js +476 -346
  5. data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +1 -105
  6. data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +6 -5
  7. data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +2 -1
  8. metadata +8 -69
  9. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +0 -56
  10. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +0 -56
  11. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +0 -86
  12. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +0 -107
  13. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +0 -139
  14. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.by.js +0 -153
  15. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +0 -66
  16. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +0 -155
  17. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +0 -59
  18. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +0 -56
  19. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +0 -71
  20. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +0 -79
  21. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +0 -62
  22. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +0 -59
  23. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +0 -63
  24. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +0 -65
  25. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +0 -66
  26. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +0 -60
  27. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +0 -60
  28. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +0 -97
  29. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +0 -103
  30. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +0 -54
  31. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +0 -58
  32. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +0 -71
  33. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +0 -77
  34. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +0 -105
  35. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +0 -140
  36. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +0 -98
  37. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +0 -67
  38. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +0 -124
  39. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +0 -59
  40. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +0 -58
  41. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +0 -108
  42. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +0 -56
  43. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +0 -118
  44. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +0 -77
  45. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +0 -64
  46. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +0 -104
  47. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +0 -66
  48. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +0 -57
  49. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +0 -105
  50. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +0 -67
  51. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +0 -56
  52. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +0 -98
  53. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +0 -56
  54. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +0 -60
  55. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +0 -56
  56. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +0 -163
  57. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +0 -156
  58. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +0 -144
  59. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +0 -57
  60. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +0 -63
  61. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +0 -58
  62. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +0 -93
  63. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +0 -55
  64. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +0 -55
  65. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +0 -157
  66. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +0 -55
  67. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +0 -62
  68. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +0 -108
  69. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +0 -84
@@ -1,55 +0,0 @@
1
- // moment.js language configuration
2
- // language : Morocco Central Atlas Tamaziɣt (tzm)
3
- // author : Abdel Said : https://github.com/abdelsaid
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('tzm', {
15
- months : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
16
- monthsShort : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
17
- weekdays : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
18
- weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
19
- weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
20
- longDateFormat : {
21
- LT : "HH: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 oⵙⵙⴰⵏ",
45
- M : "ⴰⵢoⵓⵔ",
46
- MM : "%d ⵉⵢⵢⵉⵔⵏ",
47
- y : "ⴰⵙⴳⴰⵙ",
48
- yy : "%d ⵉⵙⴳⴰⵙⵏ"
49
- },
50
- week : {
51
- dow : 6, // Saturday is the first day of the week.
52
- doy : 12 // The week that contains Jan 1st is the first week of the year.
53
- }
54
- });
55
- }));
@@ -1,157 +0,0 @@
1
- // moment.js language configuration
2
- // language : ukrainian (uk)
3
- // author : zemlanin : https://github.com/zemlanin
4
- // Author : Menelion Elensúle : https://github.com/Oire
5
-
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory(window.moment); // Browser global
13
- }
14
- }(function (moment) {
15
- function plural(word, num) {
16
- var forms = word.split('_');
17
- return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
18
- }
19
-
20
- function relativeTimeWithPlural(number, withoutSuffix, key) {
21
- var format = {
22
- 'mm': 'хвилина_хвилини_хвилин',
23
- 'hh': 'година_години_годин',
24
- 'dd': 'день_дні_днів',
25
- 'MM': 'місяць_місяці_місяців',
26
- 'yy': 'рік_роки_років'
27
- };
28
- if (key === 'm') {
29
- return withoutSuffix ? 'хвилина' : 'хвилину';
30
- }
31
- else if (key === 'h') {
32
- return withoutSuffix ? 'година' : 'годину';
33
- }
34
- else {
35
- return number + ' ' + plural(format[key], +number);
36
- }
37
- }
38
-
39
- function monthsCaseReplace(m, format) {
40
- var months = {
41
- 'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
42
- 'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
43
- },
44
-
45
- nounCase = (/D[oD]? *MMMM?/).test(format) ?
46
- 'accusative' :
47
- 'nominative';
48
-
49
- return months[nounCase][m.month()];
50
- }
51
-
52
- function weekdaysCaseReplace(m, format) {
53
- var weekdays = {
54
- 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
55
- 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
56
- 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
57
- },
58
-
59
- nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
60
- 'accusative' :
61
- ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
62
- 'genitive' :
63
- 'nominative');
64
-
65
- return weekdays[nounCase][m.day()];
66
- }
67
-
68
- function processHoursFunction(str) {
69
- return function () {
70
- return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
71
- };
72
- }
73
-
74
- return moment.lang('uk', {
75
- months : monthsCaseReplace,
76
- monthsShort : "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),
77
- weekdays : weekdaysCaseReplace,
78
- weekdaysShort : "нд_пн_вт_ср_чт_пт_сб".split("_"),
79
- weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
80
- longDateFormat : {
81
- LT : "HH:mm",
82
- L : "DD.MM.YYYY",
83
- LL : "D MMMM YYYY р.",
84
- LLL : "D MMMM YYYY р., LT",
85
- LLLL : "dddd, D MMMM YYYY р., LT"
86
- },
87
- calendar : {
88
- sameDay: processHoursFunction('[Сьогодні '),
89
- nextDay: processHoursFunction('[Завтра '),
90
- lastDay: processHoursFunction('[Вчора '),
91
- nextWeek: processHoursFunction('[У] dddd ['),
92
- lastWeek: function () {
93
- switch (this.day()) {
94
- case 0:
95
- case 3:
96
- case 5:
97
- case 6:
98
- return processHoursFunction('[Минулої] dddd [').call(this);
99
- case 1:
100
- case 2:
101
- case 4:
102
- return processHoursFunction('[Минулого] dddd [').call(this);
103
- }
104
- },
105
- sameElse: 'L'
106
- },
107
- relativeTime : {
108
- future : "за %s",
109
- past : "%s тому",
110
- s : "декілька секунд",
111
- m : relativeTimeWithPlural,
112
- mm : relativeTimeWithPlural,
113
- h : "годину",
114
- hh : relativeTimeWithPlural,
115
- d : "день",
116
- dd : relativeTimeWithPlural,
117
- M : "місяць",
118
- MM : relativeTimeWithPlural,
119
- y : "рік",
120
- yy : relativeTimeWithPlural
121
- },
122
-
123
- // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
124
-
125
- meridiem : function (hour, minute, isLower) {
126
- if (hour < 4) {
127
- return "ночі";
128
- } else if (hour < 12) {
129
- return "ранку";
130
- } else if (hour < 17) {
131
- return "дня";
132
- } else {
133
- return "вечора";
134
- }
135
- },
136
-
137
- ordinal: function (number, period) {
138
- switch (period) {
139
- case 'M':
140
- case 'd':
141
- case 'DDD':
142
- case 'w':
143
- case 'W':
144
- return number + '-й';
145
- case 'D':
146
- return number + '-го';
147
- default:
148
- return number;
149
- }
150
- },
151
-
152
- week : {
153
- dow : 1, // Monday is the first day of the week.
154
- doy : 7 // The week that contains Jan 1st is the first week of the year.
155
- }
156
- });
157
- }));
@@ -1,55 +0,0 @@
1
- // moment.js language configuration
2
- // language : uzbek
3
- // author : Sardor Muminov : https://github.com/muminoff
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('uz', {
15
- months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),
16
- monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
17
- weekdays : "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),
18
- weekdaysShort : "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),
19
- weekdaysMin : "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),
20
- longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM YYYY",
24
- LLL : "D MMMM YYYY LT",
25
- LLLL : "D MMMM YYYY, dddd 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
- week : {
51
- dow : 1, // Monday is the first day of the week.
52
- doy : 7 // The week that contains Jan 4th is the first week of the year.
53
- }
54
- });
55
- }));
@@ -1,62 +0,0 @@
1
- // moment.js language configuration
2
- // language : vietnamese (vn)
3
- // author : Bang Nguyen : https://github.com/bangnk
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('vn', {
15
- months : "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),
16
- monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
17
- weekdays : "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),
18
- weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"),
19
- weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"),
20
- longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM [năm] YYYY",
24
- LLL : "D MMMM [năm] YYYY LT",
25
- LLLL : "dddd, D MMMM [năm] YYYY LT",
26
- l : "DD/M/YYYY",
27
- ll : "D MMM YYYY",
28
- lll : "D MMM YYYY LT",
29
- llll : "ddd, D MMM YYYY LT"
30
- },
31
- calendar : {
32
- sameDay: "[Hôm nay lúc] LT",
33
- nextDay: '[Ngày mai lúc] LT',
34
- nextWeek: 'dddd [tuần tới lúc] LT',
35
- lastDay: '[Hôm qua lúc] LT',
36
- lastWeek: 'dddd [tuần rồi lúc] LT',
37
- sameElse: 'L'
38
- },
39
- relativeTime : {
40
- future : "%s tới",
41
- past : "%s trước",
42
- s : "vài giây",
43
- m : "một phút",
44
- mm : "%d phút",
45
- h : "một giờ",
46
- hh : "%d giờ",
47
- d : "một ngày",
48
- dd : "%d ngày",
49
- M : "một tháng",
50
- MM : "%d tháng",
51
- y : "một năm",
52
- yy : "%d năm"
53
- },
54
- ordinal : function (number) {
55
- return number;
56
- },
57
- week : {
58
- dow : 1, // Monday is the first day of the week.
59
- doy : 4 // The week that contains Jan 4th is the first week of the year.
60
- }
61
- });
62
- }));
@@ -1,108 +0,0 @@
1
- // moment.js language configuration
2
- // language : chinese
3
- // author : suupic : https://github.com/suupic
4
- // author : Zeno Zeng : https://github.com/zenozeng
5
-
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory(window.moment); // Browser global
13
- }
14
- }(function (moment) {
15
- return moment.lang('zh-cn', {
16
- months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
17
- monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
18
- weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
19
- weekdaysShort : "周日_周一_周二_周三_周四_周五_周六".split("_"),
20
- weekdaysMin : "日_一_二_三_四_五_六".split("_"),
21
- longDateFormat : {
22
- LT : "Ah点mm",
23
- L : "YYYY年MMMD日",
24
- LL : "YYYY年MMMD日",
25
- LLL : "YYYY年MMMD日LT",
26
- LLLL : "YYYY年MMMD日ddddLT",
27
- l : "YYYY年MMMD日",
28
- ll : "YYYY年MMMD日",
29
- lll : "YYYY年MMMD日LT",
30
- llll : "YYYY年MMMD日ddddLT"
31
- },
32
- meridiem : function (hour, minute, isLower) {
33
- var hm = hour * 100 + minute;
34
- if (hm < 600) {
35
- return "凌晨";
36
- } else if (hm < 900) {
37
- return "早上";
38
- } else if (hm < 1130) {
39
- return "上午";
40
- } else if (hm < 1230) {
41
- return "中午";
42
- } else if (hm < 1800) {
43
- return "下午";
44
- } else {
45
- return "晚上";
46
- }
47
- },
48
- calendar : {
49
- sameDay : function () {
50
- return this.minutes() === 0 ? "[今天]Ah[点整]" : "[今天]LT";
51
- },
52
- nextDay : function () {
53
- return this.minutes() === 0 ? "[明天]Ah[点整]" : "[明天]LT";
54
- },
55
- lastDay : function () {
56
- return this.minutes() === 0 ? "[昨天]Ah[点整]" : "[昨天]LT";
57
- },
58
- nextWeek : function () {
59
- var startOfWeek, prefix;
60
- startOfWeek = moment().startOf('week');
61
- prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
62
- return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
63
- },
64
- lastWeek : function () {
65
- var startOfWeek, prefix;
66
- startOfWeek = moment().startOf('week');
67
- prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
68
- return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
69
- },
70
- sameElse : 'L'
71
- },
72
- ordinal : function (number, period) {
73
- switch (period) {
74
- case "d":
75
- case "D":
76
- case "DDD":
77
- return number + "日";
78
- case "M":
79
- return number + "月";
80
- case "w":
81
- case "W":
82
- return number + "周";
83
- default:
84
- return number;
85
- }
86
- },
87
- relativeTime : {
88
- future : "%s内",
89
- past : "%s前",
90
- s : "几秒",
91
- m : "1分钟",
92
- mm : "%d分钟",
93
- h : "1小时",
94
- hh : "%d小时",
95
- d : "1天",
96
- dd : "%d天",
97
- M : "1个月",
98
- MM : "%d个月",
99
- y : "1年",
100
- yy : "%d年"
101
- },
102
- week : {
103
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
104
- dow : 1, // Monday is the first day of the week.
105
- doy : 4 // The week that contains Jan 4th is the first week of the year.
106
- }
107
- });
108
- }));
@@ -1,84 +0,0 @@
1
- // moment.js language configuration
2
- // language : traditional chinese (zh-tw)
3
- // author : Ben : https://github.com/ben-lin
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('zh-tw', {
15
- months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".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點mm",
22
- L : "YYYY年MMMD日",
23
- LL : "YYYY年MMMD日",
24
- LLL : "YYYY年MMMD日LT",
25
- LLLL : "YYYY年MMMD日ddddLT",
26
- l : "YYYY年MMMD日",
27
- ll : "YYYY年MMMD日",
28
- lll : "YYYY年MMMD日LT",
29
- llll : "YYYY年MMMD日ddddLT"
30
- },
31
- meridiem : function (hour, minute, isLower) {
32
- var hm = hour * 100 + minute;
33
- if (hm < 900) {
34
- return "早上";
35
- } else if (hm < 1130) {
36
- return "上午";
37
- } else if (hm < 1230) {
38
- return "中午";
39
- } else if (hm < 1800) {
40
- return "下午";
41
- } else {
42
- return "晚上";
43
- }
44
- },
45
- calendar : {
46
- sameDay : '[今天]LT',
47
- nextDay : '[明天]LT',
48
- nextWeek : '[下]ddddLT',
49
- lastDay : '[昨天]LT',
50
- lastWeek : '[上]ddddLT',
51
- sameElse : 'L'
52
- },
53
- ordinal : function (number, period) {
54
- switch (period) {
55
- case "d" :
56
- case "D" :
57
- case "DDD" :
58
- return number + "日";
59
- case "M" :
60
- return number + "月";
61
- case "w" :
62
- case "W" :
63
- return number + "週";
64
- default :
65
- return number;
66
- }
67
- },
68
- relativeTime : {
69
- future : "%s內",
70
- past : "%s前",
71
- s : "幾秒",
72
- m : "一分鐘",
73
- mm : "%d分鐘",
74
- h : "一小時",
75
- hh : "%d小時",
76
- d : "一天",
77
- dd : "%d天",
78
- M : "一個月",
79
- MM : "%d個月",
80
- y : "一年",
81
- yy : "%d年"
82
- }
83
- });
84
- }));