bootstrap3-datetimepicker-rails 2.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/LICENSE.txt +22 -0
  2. data/README.md +67 -0
  3. data/lib/bootstrap3-datetimepicker-rails.rb +8 -0
  4. data/lib/bootstrap3-datetimepicker-rails/version.rb +5 -0
  5. data/vendor/assets/javascripts/bootstrap-datetimepicker.js +1084 -0
  6. data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +28 -0
  7. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +56 -0
  8. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +56 -0
  9. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +86 -0
  10. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +107 -0
  11. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +139 -0
  12. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +66 -0
  13. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +155 -0
  14. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +59 -0
  15. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +56 -0
  16. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +71 -0
  17. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +79 -0
  18. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +62 -0
  19. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +59 -0
  20. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +63 -0
  21. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +65 -0
  22. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +66 -0
  23. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +60 -0
  24. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +60 -0
  25. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +97 -0
  26. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +103 -0
  27. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +54 -0
  28. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +58 -0
  29. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +71 -0
  30. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +77 -0
  31. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +105 -0
  32. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +140 -0
  33. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +98 -0
  34. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +67 -0
  35. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +124 -0
  36. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +59 -0
  37. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +58 -0
  38. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +108 -0
  39. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +56 -0
  40. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +118 -0
  41. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +77 -0
  42. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +64 -0
  43. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +104 -0
  44. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +66 -0
  45. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +57 -0
  46. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +105 -0
  47. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +67 -0
  48. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +56 -0
  49. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +98 -0
  50. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +56 -0
  51. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +60 -0
  52. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +56 -0
  53. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +163 -0
  54. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +156 -0
  55. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +144 -0
  56. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +57 -0
  57. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +63 -0
  58. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +58 -0
  59. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +93 -0
  60. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +55 -0
  61. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +55 -0
  62. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +157 -0
  63. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +55 -0
  64. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +62 -0
  65. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +108 -0
  66. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +84 -0
  67. data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +174 -0
  68. data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +8 -0
  69. metadata +163 -0
@@ -0,0 +1,103 @@
1
+ // moment.js language configuration
2
+ // language : finnish (fi)
3
+ // author : Tarmo Aidantausta : https://github.com/bleadof
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 numbers_past = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
15
+ numbers_future = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
16
+ numbers_past[7], numbers_past[8], numbers_past[9]];
17
+
18
+ function translate(number, withoutSuffix, key, isFuture) {
19
+ var result = "";
20
+ switch (key) {
21
+ case 's':
22
+ return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
23
+ case 'm':
24
+ return isFuture ? 'minuutin' : 'minuutti';
25
+ case 'mm':
26
+ result = isFuture ? 'minuutin' : 'minuuttia';
27
+ break;
28
+ case 'h':
29
+ return isFuture ? 'tunnin' : 'tunti';
30
+ case 'hh':
31
+ result = isFuture ? 'tunnin' : 'tuntia';
32
+ break;
33
+ case 'd':
34
+ return isFuture ? 'päivän' : 'päivä';
35
+ case 'dd':
36
+ result = isFuture ? 'päivän' : 'päivää';
37
+ break;
38
+ case 'M':
39
+ return isFuture ? 'kuukauden' : 'kuukausi';
40
+ case 'MM':
41
+ result = isFuture ? 'kuukauden' : 'kuukautta';
42
+ break;
43
+ case 'y':
44
+ return isFuture ? 'vuoden' : 'vuosi';
45
+ case 'yy':
46
+ result = isFuture ? 'vuoden' : 'vuotta';
47
+ break;
48
+ }
49
+ result = verbal_number(number, isFuture) + " " + result;
50
+ return result;
51
+ }
52
+
53
+ function verbal_number(number, isFuture) {
54
+ return number < 10 ? (isFuture ? numbers_future[number] : numbers_past[number]) : number;
55
+ }
56
+
57
+ return moment.lang('fi', {
58
+ months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),
59
+ monthsShort : "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),
60
+ weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),
61
+ weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"),
62
+ weekdaysMin : "su_ma_ti_ke_to_pe_la".split("_"),
63
+ longDateFormat : {
64
+ LT : "HH.mm",
65
+ L : "DD.MM.YYYY",
66
+ LL : "Do MMMM[ta] YYYY",
67
+ LLL : "Do MMMM[ta] YYYY, [klo] LT",
68
+ LLLL : "dddd, Do MMMM[ta] YYYY, [klo] LT",
69
+ l : "D.M.YYYY",
70
+ ll : "Do MMM YYYY",
71
+ lll : "Do MMM YYYY, [klo] LT",
72
+ llll : "ddd, Do MMM YYYY, [klo] LT"
73
+ },
74
+ calendar : {
75
+ sameDay : '[tänään] [klo] LT',
76
+ nextDay : '[huomenna] [klo] LT',
77
+ nextWeek : 'dddd [klo] LT',
78
+ lastDay : '[eilen] [klo] LT',
79
+ lastWeek : '[viime] dddd[na] [klo] LT',
80
+ sameElse : 'L'
81
+ },
82
+ relativeTime : {
83
+ future : "%s päästä",
84
+ past : "%s sitten",
85
+ s : translate,
86
+ m : translate,
87
+ mm : translate,
88
+ h : translate,
89
+ hh : translate,
90
+ d : translate,
91
+ dd : translate,
92
+ M : translate,
93
+ MM : translate,
94
+ y : translate,
95
+ yy : translate
96
+ },
97
+ ordinal : "%d.",
98
+ week : {
99
+ dow : 1, // Monday is the first day of the week.
100
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
101
+ }
102
+ });
103
+ }));
@@ -0,0 +1,54 @@
1
+ // moment.js language configuration
2
+ // language : canadian french (fr-ca)
3
+ // author : Jonathan Abourbih : https://github.com/jonbca
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('fr-ca', {
15
+ months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
+ monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
+ weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
18
+ weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
19
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "YYYY-MM-DD",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: "[Aujourd'hui à] LT",
29
+ nextDay: '[Demain à] LT',
30
+ nextWeek: 'dddd [à] LT',
31
+ lastDay: '[Hier à] LT',
32
+ lastWeek: 'dddd [dernier à] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "dans %s",
37
+ past : "il y a %s",
38
+ s : "quelques secondes",
39
+ m : "une minute",
40
+ mm : "%d minutes",
41
+ h : "une heure",
42
+ hh : "%d heures",
43
+ d : "un jour",
44
+ dd : "%d jours",
45
+ M : "un mois",
46
+ MM : "%d mois",
47
+ y : "un an",
48
+ yy : "%d ans"
49
+ },
50
+ ordinal : function (number) {
51
+ return number + (number === 1 ? 'er' : '');
52
+ }
53
+ });
54
+ }));
@@ -0,0 +1,58 @@
1
+ // moment.js language configuration
2
+ // language : french (fr)
3
+ // author : John Fischer : https://github.com/jfroffice
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('fr', {
15
+ months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
16
+ monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
17
+ weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
18
+ weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
19
+ weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".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: "[Aujourd'hui à] LT",
29
+ nextDay: '[Demain à] LT',
30
+ nextWeek: 'dddd [à] LT',
31
+ lastDay: '[Hier à] LT',
32
+ lastWeek: 'dddd [dernier à] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "dans %s",
37
+ past : "il y a %s",
38
+ s : "quelques secondes",
39
+ m : "une minute",
40
+ mm : "%d minutes",
41
+ h : "une heure",
42
+ hh : "%d heures",
43
+ d : "un jour",
44
+ dd : "%d jours",
45
+ M : "un mois",
46
+ MM : "%d mois",
47
+ y : "un an",
48
+ yy : "%d ans"
49
+ },
50
+ ordinal : function (number) {
51
+ return number + (number === 1 ? 'er' : '');
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
+ }));
@@ -0,0 +1,71 @@
1
+ // moment.js language configuration
2
+ // language : galician (gl)
3
+ // author : Juan G. Hurtado : https://github.com/juanghurtado
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('gl', {
15
+ months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),
16
+ monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
17
+ weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
18
+ weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
19
+ weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
20
+ longDateFormat : {
21
+ LT : "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 : 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 === "uns segundos") {
48
+ return "nuns segundos";
49
+ }
50
+ return "en " + str;
51
+ },
52
+ past : "hai %s",
53
+ s : "uns segundos",
54
+ m : "un minuto",
55
+ mm : "%d minutos",
56
+ h : "unha hora",
57
+ hh : "%d horas",
58
+ d : "un día",
59
+ dd : "%d días",
60
+ M : "un mes",
61
+ MM : "%d meses",
62
+ y : "un ano",
63
+ yy : "%d anos"
64
+ },
65
+ ordinal : '%dº',
66
+ week : {
67
+ dow : 1, // Monday is the first day of the week.
68
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
69
+ }
70
+ });
71
+ }));
@@ -0,0 +1,77 @@
1
+ // moment.js language configuration
2
+ // language : Hebrew (he)
3
+ // author : Tomer Cohen : https://github.com/tomer
4
+ // author : Moshe Simantov : https://github.com/DevelopmentIL
5
+ // author : Tal Ater : https://github.com/TalAter
6
+
7
+ (function (factory) {
8
+ if (typeof define === 'function' && define.amd) {
9
+ define(['moment'], factory); // AMD
10
+ } else if (typeof exports === 'object') {
11
+ module.exports = factory(require('../moment')); // Node
12
+ } else {
13
+ factory(window.moment); // Browser global
14
+ }
15
+ }(function (moment) {
16
+ return moment.lang('he', {
17
+ months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
18
+ monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
19
+ weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
20
+ weekdaysShort : "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),
21
+ weekdaysMin : "א_ב_ג_ד_ה_ו_ש".split("_"),
22
+ longDateFormat : {
23
+ LT : "HH:mm",
24
+ L : "DD/MM/YYYY",
25
+ LL : "D [ב]MMMM YYYY",
26
+ LLL : "D [ב]MMMM YYYY LT",
27
+ LLLL : "dddd, D [ב]MMMM YYYY LT",
28
+ l : "D/M/YYYY",
29
+ ll : "D MMM YYYY",
30
+ lll : "D MMM YYYY LT",
31
+ llll : "ddd, D MMM YYYY LT"
32
+ },
33
+ calendar : {
34
+ sameDay : '[היום ב־]LT',
35
+ nextDay : '[מחר ב־]LT',
36
+ nextWeek : 'dddd [בשעה] LT',
37
+ lastDay : '[אתמול ב־]LT',
38
+ lastWeek : '[ביום] dddd [האחרון בשעה] LT',
39
+ sameElse : 'L'
40
+ },
41
+ relativeTime : {
42
+ future : "בעוד %s",
43
+ past : "לפני %s",
44
+ s : "מספר שניות",
45
+ m : "דקה",
46
+ mm : "%d דקות",
47
+ h : "שעה",
48
+ hh : function (number) {
49
+ if (number === 2) {
50
+ return "שעתיים";
51
+ }
52
+ return number + " שעות";
53
+ },
54
+ d : "יום",
55
+ dd : function (number) {
56
+ if (number === 2) {
57
+ return "יומיים";
58
+ }
59
+ return number + " ימים";
60
+ },
61
+ M : "חודש",
62
+ MM : function (number) {
63
+ if (number === 2) {
64
+ return "חודשיים";
65
+ }
66
+ return number + " חודשים";
67
+ },
68
+ y : "שנה",
69
+ yy : function (number) {
70
+ if (number === 2) {
71
+ return "שנתיים";
72
+ }
73
+ return number + " שנים";
74
+ }
75
+ }
76
+ });
77
+ }));
@@ -0,0 +1,105 @@
1
+ // moment.js language configuration
2
+ // language : hindi (hi)
3
+ // author : Mayank Singhal : https://github.com/mayanksinghal
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 symbolMap = {
15
+ '1': '१',
16
+ '2': '२',
17
+ '3': '३',
18
+ '4': '४',
19
+ '5': '५',
20
+ '6': '६',
21
+ '7': '७',
22
+ '8': '८',
23
+ '9': '९',
24
+ '0': '०'
25
+ },
26
+ numberMap = {
27
+ '१': '1',
28
+ '२': '2',
29
+ '३': '3',
30
+ '४': '4',
31
+ '५': '5',
32
+ '६': '6',
33
+ '७': '7',
34
+ '८': '8',
35
+ '९': '9',
36
+ '०': '0'
37
+ };
38
+
39
+ return moment.lang('hi', {
40
+ months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split("_"),
41
+ monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split("_"),
42
+ weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
43
+ weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split("_"),
44
+ weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split("_"),
45
+ longDateFormat : {
46
+ LT : "A h:mm बजे",
47
+ L : "DD/MM/YYYY",
48
+ LL : "D MMMM YYYY",
49
+ LLL : "D MMMM YYYY, LT",
50
+ LLLL : "dddd, D MMMM YYYY, LT"
51
+ },
52
+ calendar : {
53
+ sameDay : '[आज] LT',
54
+ nextDay : '[कल] LT',
55
+ nextWeek : 'dddd, LT',
56
+ lastDay : '[कल] LT',
57
+ lastWeek : '[पिछले] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : "%s में",
62
+ past : "%s पहले",
63
+ s : "कुछ ही क्षण",
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
+ // Hindi 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 Hindi.
87
+ meridiem : function (hour, minute, isLower) {
88
+ if (hour < 4) {
89
+ return "रात";
90
+ } else if (hour < 10) {
91
+ return "सुबह";
92
+ } else if (hour < 17) {
93
+ return "दोपहर";
94
+ } else if (hour < 20) {
95
+ return "शाम";
96
+ } else {
97
+ return "रात";
98
+ }
99
+ },
100
+ week : {
101
+ dow : 0, // Sunday is the first day of the week.
102
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
103
+ }
104
+ });
105
+ }));