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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/app/assets/javascripts/effective_date/input.js +1 -1
  4. data/app/assets/javascripts/effective_datetime/input.js +1 -1
  5. data/app/assets/javascripts/effective_time/input.js +1 -1
  6. data/app/assets/javascripts/moment/locale/af.js +72 -0
  7. data/app/assets/javascripts/moment/locale/ar-dz.js +58 -0
  8. data/app/assets/javascripts/moment/locale/ar-kw.js +58 -0
  9. data/app/assets/javascripts/moment/locale/ar-ly.js +121 -0
  10. data/app/assets/javascripts/moment/locale/ar-ma.js +58 -0
  11. data/app/assets/javascripts/moment/locale/ar-sa.js +103 -0
  12. data/app/assets/javascripts/moment/locale/ar-tn.js +58 -0
  13. data/app/assets/javascripts/moment/locale/ar.js +134 -0
  14. data/app/assets/javascripts/moment/locale/az.js +104 -0
  15. data/app/assets/javascripts/moment/locale/be.js +131 -0
  16. data/app/assets/javascripts/moment/locale/bg.js +89 -0
  17. data/app/assets/javascripts/moment/locale/bm.js +57 -0
  18. data/app/assets/javascripts/moment/locale/bn.js +118 -0
  19. data/app/assets/javascripts/moment/locale/bo.js +118 -0
  20. data/app/assets/javascripts/moment/locale/br.js +107 -0
  21. data/app/assets/javascripts/moment/locale/bs.js +150 -0
  22. data/app/assets/javascripts/moment/locale/ca.js +87 -0
  23. data/app/assets/javascripts/moment/locale/cs.js +171 -0
  24. data/app/assets/javascripts/moment/locale/cv.js +62 -0
  25. data/app/assets/javascripts/moment/locale/cy.js +79 -0
  26. data/app/assets/javascripts/moment/locale/da.js +59 -0
  27. data/app/assets/javascripts/moment/locale/de-at.js +75 -0
  28. data/app/assets/javascripts/moment/locale/de-ch.js +75 -0
  29. data/app/assets/javascripts/moment/locale/de.js +75 -0
  30. data/app/assets/javascripts/moment/locale/dv.js +98 -0
  31. data/app/assets/javascripts/moment/locale/el.js +99 -0
  32. data/app/assets/javascripts/moment/locale/en-SG.js +66 -0
  33. data/app/assets/javascripts/moment/locale/en-au.js +66 -0
  34. data/app/assets/javascripts/moment/locale/en-ca.js +62 -0
  35. data/app/assets/javascripts/moment/locale/en-gb.js +66 -0
  36. data/app/assets/javascripts/moment/locale/en-ie.js +66 -0
  37. data/app/assets/javascripts/moment/locale/en-il.js +61 -0
  38. data/app/assets/javascripts/moment/locale/en-nz.js +66 -0
  39. data/app/assets/javascripts/moment/locale/eo.js +70 -0
  40. data/app/assets/javascripts/moment/locale/es-do.js +91 -0
  41. data/app/assets/javascripts/moment/locale/es-us.js +91 -0
  42. data/app/assets/javascripts/moment/locale/es.js +91 -0
  43. data/app/assets/javascripts/moment/locale/et.js +79 -0
  44. data/app/assets/javascripts/moment/locale/eu.js +65 -0
  45. data/app/assets/javascripts/moment/locale/fa.js +105 -0
  46. data/app/assets/javascripts/moment/locale/fi.js +108 -0
  47. data/app/assets/javascripts/moment/locale/fo.js +59 -0
  48. data/app/assets/javascripts/moment/locale/fr-ca.js +73 -0
  49. data/app/assets/javascripts/moment/locale/fr-ch.js +77 -0
  50. data/app/assets/javascripts/moment/locale/fr.js +82 -0
  51. data/app/assets/javascripts/moment/locale/fy.js +74 -0
  52. data/app/assets/javascripts/moment/locale/ga.js +76 -0
  53. data/app/assets/javascripts/moment/locale/gd.js +75 -0
  54. data/app/assets/javascripts/moment/locale/gl.js +76 -0
  55. data/app/assets/javascripts/moment/locale/gom-latn.js +122 -0
  56. data/app/assets/javascripts/moment/locale/gu.js +123 -0
  57. data/app/assets/javascripts/moment/locale/he.js +96 -0
  58. data/app/assets/javascripts/moment/locale/hi.js +123 -0
  59. data/app/assets/javascripts/moment/locale/hr.js +153 -0
  60. data/app/assets/javascripts/moment/locale/hu.js +109 -0
  61. data/app/assets/javascripts/moment/locale/hy-am.js +94 -0
  62. data/app/assets/javascripts/moment/locale/id.js +81 -0
  63. data/app/assets/javascripts/moment/locale/is.js +131 -0
  64. data/app/assets/javascripts/moment/locale/it-ch.js +68 -0
  65. data/app/assets/javascripts/moment/locale/it.js +68 -0
  66. data/app/assets/javascripts/moment/locale/ja.js +91 -0
  67. data/app/assets/javascripts/moment/locale/jv.js +81 -0
  68. data/app/assets/javascripts/moment/locale/ka.js +88 -0
  69. data/app/assets/javascripts/moment/locale/kk.js +86 -0
  70. data/app/assets/javascripts/moment/locale/km.js +109 -0
  71. data/app/assets/javascripts/moment/locale/kn.js +125 -0
  72. data/app/assets/javascripts/moment/locale/ko.js +80 -0
  73. data/app/assets/javascripts/moment/locale/ku.js +118 -0
  74. data/app/assets/javascripts/moment/locale/ky.js +86 -0
  75. data/app/assets/javascripts/moment/locale/lb.js +135 -0
  76. data/app/assets/javascripts/moment/locale/lo.js +69 -0
  77. data/app/assets/javascripts/moment/locale/lt.js +117 -0
  78. data/app/assets/javascripts/moment/locale/lv.js +96 -0
  79. data/app/assets/javascripts/moment/locale/me.js +111 -0
  80. data/app/assets/javascripts/moment/locale/mi.js +63 -0
  81. data/app/assets/javascripts/moment/locale/mk.js +89 -0
  82. data/app/assets/javascripts/moment/locale/ml.js +80 -0
  83. data/app/assets/javascripts/moment/locale/mn.js +103 -0
  84. data/app/assets/javascripts/moment/locale/mr.js +159 -0
  85. data/app/assets/javascripts/moment/locale/ms-my.js +81 -0
  86. data/app/assets/javascripts/moment/locale/ms.js +81 -0
  87. data/app/assets/javascripts/moment/locale/mt.js +59 -0
  88. data/app/assets/javascripts/moment/locale/my.js +92 -0
  89. data/app/assets/javascripts/moment/locale/nb.js +61 -0
  90. data/app/assets/javascripts/moment/locale/ne.js +122 -0
  91. data/app/assets/javascripts/moment/locale/nl-be.js +86 -0
  92. data/app/assets/javascripts/moment/locale/nl.js +86 -0
  93. data/app/assets/javascripts/moment/locale/nn.js +59 -0
  94. data/app/assets/javascripts/moment/locale/pa-in.js +123 -0
  95. data/app/assets/javascripts/moment/locale/pl.js +125 -0
  96. data/app/assets/javascripts/moment/locale/pt-br.js +60 -0
  97. data/app/assets/javascripts/moment/locale/pt.js +64 -0
  98. data/app/assets/javascripts/moment/locale/ro.js +74 -0
  99. data/app/assets/javascripts/moment/locale/ru.js +181 -0
  100. data/app/assets/javascripts/moment/locale/sd.js +97 -0
  101. data/app/assets/javascripts/moment/locale/se.js +59 -0
  102. data/app/assets/javascripts/moment/locale/si.js +70 -0
  103. data/app/assets/javascripts/moment/locale/sk.js +155 -0
  104. data/app/assets/javascripts/moment/locale/sl.js +172 -0
  105. data/app/assets/javascripts/moment/locale/sq.js +67 -0
  106. data/app/assets/javascripts/moment/locale/sr-cyrl.js +110 -0
  107. data/app/assets/javascripts/moment/locale/sr.js +110 -0
  108. data/app/assets/javascripts/moment/locale/ss.js +87 -0
  109. data/app/assets/javascripts/moment/locale/sv.js +68 -0
  110. data/app/assets/javascripts/moment/locale/sw.js +58 -0
  111. data/app/assets/javascripts/moment/locale/ta.js +128 -0
  112. data/app/assets/javascripts/moment/locale/te.js +88 -0
  113. data/app/assets/javascripts/moment/locale/tet.js +66 -0
  114. data/app/assets/javascripts/moment/locale/tg.js +115 -0
  115. data/app/assets/javascripts/moment/locale/th.js +66 -0
  116. data/app/assets/javascripts/moment/locale/tl-ph.js +61 -0
  117. data/app/assets/javascripts/moment/locale/tlh.js +121 -0
  118. data/app/assets/javascripts/moment/locale/tr.js +93 -0
  119. data/app/assets/javascripts/moment/locale/tzl.js +90 -0
  120. data/app/assets/javascripts/moment/locale/tzm-latn.js +57 -0
  121. data/app/assets/javascripts/moment/locale/tzm.js +57 -0
  122. data/app/assets/javascripts/moment/locale/ug-cn.js +118 -0
  123. data/app/assets/javascripts/moment/locale/uk.js +153 -0
  124. data/app/assets/javascripts/moment/locale/ur.js +97 -0
  125. data/app/assets/javascripts/moment/locale/uz-latn.js +57 -0
  126. data/app/assets/javascripts/moment/locale/uz.js +57 -0
  127. data/app/assets/javascripts/moment/locale/vi.js +78 -0
  128. data/app/assets/javascripts/moment/locale/x-pseudo.js +67 -0
  129. data/app/assets/javascripts/moment/locale/yo.js +59 -0
  130. data/app/assets/javascripts/moment/locale/zh-cn.js +109 -0
  131. data/app/assets/javascripts/moment/locale/zh-hk.js +102 -0
  132. data/app/assets/javascripts/moment/locale/zh-tw.js +102 -0
  133. data/app/assets/javascripts/moment/moment.js +4603 -0
  134. data/lib/effective_bootstrap/version.rb +1 -1
  135. metadata +129 -2
  136. data/app/assets/javascripts/effective_datetime/moment.js +0 -4535
@@ -0,0 +1,96 @@
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 he = moment.defineLocale('he', {
12
+ months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
13
+ monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
14
+ weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
15
+ weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
16
+ weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'HH:mm',
19
+ LTS : 'HH:mm:ss',
20
+ L : 'DD/MM/YYYY',
21
+ LL : 'D [ב]MMMM YYYY',
22
+ LLL : 'D [ב]MMMM YYYY HH:mm',
23
+ LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
24
+ l : 'D/M/YYYY',
25
+ ll : 'D MMM YYYY',
26
+ lll : 'D MMM YYYY HH:mm',
27
+ llll : 'ddd, D MMM YYYY HH:mm'
28
+ },
29
+ calendar : {
30
+ sameDay : '[היום ב־]LT',
31
+ nextDay : '[מחר ב־]LT',
32
+ nextWeek : 'dddd [בשעה] LT',
33
+ lastDay : '[אתמול ב־]LT',
34
+ lastWeek : '[ביום] dddd [האחרון בשעה] LT',
35
+ sameElse : 'L'
36
+ },
37
+ relativeTime : {
38
+ future : 'בעוד %s',
39
+ past : 'לפני %s',
40
+ s : 'מספר שניות',
41
+ ss : '%d שניות',
42
+ m : 'דקה',
43
+ mm : '%d דקות',
44
+ h : 'שעה',
45
+ hh : function (number) {
46
+ if (number === 2) {
47
+ return 'שעתיים';
48
+ }
49
+ return number + ' שעות';
50
+ },
51
+ d : 'יום',
52
+ dd : function (number) {
53
+ if (number === 2) {
54
+ return 'יומיים';
55
+ }
56
+ return number + ' ימים';
57
+ },
58
+ M : 'חודש',
59
+ MM : function (number) {
60
+ if (number === 2) {
61
+ return 'חודשיים';
62
+ }
63
+ return number + ' חודשים';
64
+ },
65
+ y : 'שנה',
66
+ yy : function (number) {
67
+ if (number === 2) {
68
+ return 'שנתיים';
69
+ } else if (number % 10 === 0 && number !== 10) {
70
+ return number + ' שנה';
71
+ }
72
+ return number + ' שנים';
73
+ }
74
+ },
75
+ meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
76
+ isPM : function (input) {
77
+ return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
78
+ },
79
+ meridiem : function (hour, minute, isLower) {
80
+ if (hour < 5) {
81
+ return 'לפנות בוקר';
82
+ } else if (hour < 10) {
83
+ return 'בבוקר';
84
+ } else if (hour < 12) {
85
+ return isLower ? 'לפנה"צ' : 'לפני הצהריים';
86
+ } else if (hour < 18) {
87
+ return isLower ? 'אחה"צ' : 'אחרי הצהריים';
88
+ } else {
89
+ return 'בערב';
90
+ }
91
+ }
92
+ });
93
+
94
+ return he;
95
+
96
+ })));
@@ -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 hi = moment.defineLocale('hi', {
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
+ // 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
+ 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 hi;
122
+
123
+ })));
@@ -0,0 +1,153 @@
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 translate(number, withoutSuffix, key) {
12
+ var result = number + ' ';
13
+ switch (key) {
14
+ case 'ss':
15
+ if (number === 1) {
16
+ result += 'sekunda';
17
+ } else if (number === 2 || number === 3 || number === 4) {
18
+ result += 'sekunde';
19
+ } else {
20
+ result += 'sekundi';
21
+ }
22
+ return result;
23
+ case 'm':
24
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
25
+ case 'mm':
26
+ if (number === 1) {
27
+ result += 'minuta';
28
+ } else if (number === 2 || number === 3 || number === 4) {
29
+ result += 'minute';
30
+ } else {
31
+ result += 'minuta';
32
+ }
33
+ return result;
34
+ case 'h':
35
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
36
+ case 'hh':
37
+ if (number === 1) {
38
+ result += 'sat';
39
+ } else if (number === 2 || number === 3 || number === 4) {
40
+ result += 'sata';
41
+ } else {
42
+ result += 'sati';
43
+ }
44
+ return result;
45
+ case 'dd':
46
+ if (number === 1) {
47
+ result += 'dan';
48
+ } else {
49
+ result += 'dana';
50
+ }
51
+ return result;
52
+ case 'MM':
53
+ if (number === 1) {
54
+ result += 'mjesec';
55
+ } else if (number === 2 || number === 3 || number === 4) {
56
+ result += 'mjeseca';
57
+ } else {
58
+ result += 'mjeseci';
59
+ }
60
+ return result;
61
+ case 'yy':
62
+ if (number === 1) {
63
+ result += 'godina';
64
+ } else if (number === 2 || number === 3 || number === 4) {
65
+ result += 'godine';
66
+ } else {
67
+ result += 'godina';
68
+ }
69
+ return result;
70
+ }
71
+ }
72
+
73
+ var hr = moment.defineLocale('hr', {
74
+ months : {
75
+ format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
76
+ standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
77
+ },
78
+ monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
79
+ monthsParseExact: true,
80
+ weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
81
+ weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
82
+ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
83
+ weekdaysParseExact : true,
84
+ longDateFormat : {
85
+ LT : 'H:mm',
86
+ LTS : 'H:mm:ss',
87
+ L : 'DD.MM.YYYY',
88
+ LL : 'D. MMMM YYYY',
89
+ LLL : 'D. MMMM YYYY H:mm',
90
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
91
+ },
92
+ calendar : {
93
+ sameDay : '[danas u] LT',
94
+ nextDay : '[sutra u] LT',
95
+ nextWeek : function () {
96
+ switch (this.day()) {
97
+ case 0:
98
+ return '[u] [nedjelju] [u] LT';
99
+ case 3:
100
+ return '[u] [srijedu] [u] LT';
101
+ case 6:
102
+ return '[u] [subotu] [u] LT';
103
+ case 1:
104
+ case 2:
105
+ case 4:
106
+ case 5:
107
+ return '[u] dddd [u] LT';
108
+ }
109
+ },
110
+ lastDay : '[jučer u] LT',
111
+ lastWeek : function () {
112
+ switch (this.day()) {
113
+ case 0:
114
+ case 3:
115
+ return '[prošlu] dddd [u] LT';
116
+ case 6:
117
+ return '[prošle] [subote] [u] LT';
118
+ case 1:
119
+ case 2:
120
+ case 4:
121
+ case 5:
122
+ return '[prošli] dddd [u] LT';
123
+ }
124
+ },
125
+ sameElse : 'L'
126
+ },
127
+ relativeTime : {
128
+ future : 'za %s',
129
+ past : 'prije %s',
130
+ s : 'par sekundi',
131
+ ss : translate,
132
+ m : translate,
133
+ mm : translate,
134
+ h : translate,
135
+ hh : translate,
136
+ d : 'dan',
137
+ dd : translate,
138
+ M : 'mjesec',
139
+ MM : translate,
140
+ y : 'godinu',
141
+ yy : translate
142
+ },
143
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
144
+ ordinal : '%d.',
145
+ week : {
146
+ dow : 1, // Monday is the first day of the week.
147
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
148
+ }
149
+ });
150
+
151
+ return hr;
152
+
153
+ })));
@@ -0,0 +1,109 @@
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 weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
12
+ function translate(number, withoutSuffix, key, isFuture) {
13
+ var num = number;
14
+ switch (key) {
15
+ case 's':
16
+ return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
17
+ case 'ss':
18
+ return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
19
+ case 'm':
20
+ return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
21
+ case 'mm':
22
+ return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
23
+ case 'h':
24
+ return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
25
+ case 'hh':
26
+ return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
27
+ case 'd':
28
+ return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
29
+ case 'dd':
30
+ return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
31
+ case 'M':
32
+ return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
33
+ case 'MM':
34
+ return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
35
+ case 'y':
36
+ return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
37
+ case 'yy':
38
+ return num + (isFuture || withoutSuffix ? ' év' : ' éve');
39
+ }
40
+ return '';
41
+ }
42
+ function week(isFuture) {
43
+ return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
44
+ }
45
+
46
+ var hu = moment.defineLocale('hu', {
47
+ months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
48
+ monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
49
+ weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
50
+ weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
51
+ weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
52
+ longDateFormat : {
53
+ LT : 'H:mm',
54
+ LTS : 'H:mm:ss',
55
+ L : 'YYYY.MM.DD.',
56
+ LL : 'YYYY. MMMM D.',
57
+ LLL : 'YYYY. MMMM D. H:mm',
58
+ LLLL : 'YYYY. MMMM D., dddd H:mm'
59
+ },
60
+ meridiemParse: /de|du/i,
61
+ isPM: function (input) {
62
+ return input.charAt(1).toLowerCase() === 'u';
63
+ },
64
+ meridiem : function (hours, minutes, isLower) {
65
+ if (hours < 12) {
66
+ return isLower === true ? 'de' : 'DE';
67
+ } else {
68
+ return isLower === true ? 'du' : 'DU';
69
+ }
70
+ },
71
+ calendar : {
72
+ sameDay : '[ma] LT[-kor]',
73
+ nextDay : '[holnap] LT[-kor]',
74
+ nextWeek : function () {
75
+ return week.call(this, true);
76
+ },
77
+ lastDay : '[tegnap] LT[-kor]',
78
+ lastWeek : function () {
79
+ return week.call(this, false);
80
+ },
81
+ sameElse : 'L'
82
+ },
83
+ relativeTime : {
84
+ future : '%s múlva',
85
+ past : '%s',
86
+ s : translate,
87
+ ss : translate,
88
+ m : translate,
89
+ mm : translate,
90
+ h : translate,
91
+ hh : translate,
92
+ d : translate,
93
+ dd : translate,
94
+ M : translate,
95
+ MM : translate,
96
+ y : translate,
97
+ yy : translate
98
+ },
99
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
100
+ ordinal : '%d.',
101
+ week : {
102
+ dow : 1, // Monday is the first day of the week.
103
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
104
+ }
105
+ });
106
+
107
+ return hu;
108
+
109
+ })));