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,81 @@
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 jv = moment.defineLocale('jv', {
12
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
13
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
14
+ weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
15
+ weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
16
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.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 [pukul] HH.mm',
23
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
24
+ },
25
+ meridiemParse: /enjing|siyang|sonten|ndalu/,
26
+ meridiemHour : function (hour, meridiem) {
27
+ if (hour === 12) {
28
+ hour = 0;
29
+ }
30
+ if (meridiem === 'enjing') {
31
+ return hour;
32
+ } else if (meridiem === 'siyang') {
33
+ return hour >= 11 ? hour : hour + 12;
34
+ } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
35
+ return hour + 12;
36
+ }
37
+ },
38
+ meridiem : function (hours, minutes, isLower) {
39
+ if (hours < 11) {
40
+ return 'enjing';
41
+ } else if (hours < 15) {
42
+ return 'siyang';
43
+ } else if (hours < 19) {
44
+ return 'sonten';
45
+ } else {
46
+ return 'ndalu';
47
+ }
48
+ },
49
+ calendar : {
50
+ sameDay : '[Dinten puniko pukul] LT',
51
+ nextDay : '[Mbenjang pukul] LT',
52
+ nextWeek : 'dddd [pukul] LT',
53
+ lastDay : '[Kala wingi pukul] LT',
54
+ lastWeek : 'dddd [kepengker pukul] LT',
55
+ sameElse : 'L'
56
+ },
57
+ relativeTime : {
58
+ future : 'wonten ing %s',
59
+ past : '%s ingkang kepengker',
60
+ s : 'sawetawis detik',
61
+ ss : '%d detik',
62
+ m : 'setunggal menit',
63
+ mm : '%d menit',
64
+ h : 'setunggal jam',
65
+ hh : '%d jam',
66
+ d : 'sedinten',
67
+ dd : '%d dinten',
68
+ M : 'sewulan',
69
+ MM : '%d wulan',
70
+ y : 'setaun',
71
+ yy : '%d taun'
72
+ },
73
+ week : {
74
+ dow : 1, // Monday is the first day of the week.
75
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
76
+ }
77
+ });
78
+
79
+ return jv;
80
+
81
+ })));
@@ -0,0 +1,88 @@
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 ka = moment.defineLocale('ka', {
12
+ months : {
13
+ standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
14
+ format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
15
+ },
16
+ monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
17
+ weekdays : {
18
+ standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
19
+ format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
20
+ isFormat: /(წინა|შემდეგ)/
21
+ },
22
+ weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
23
+ weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
24
+ longDateFormat : {
25
+ LT : 'h:mm A',
26
+ LTS : 'h:mm:ss A',
27
+ L : 'DD/MM/YYYY',
28
+ LL : 'D MMMM YYYY',
29
+ LLL : 'D MMMM YYYY h:mm A',
30
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
31
+ },
32
+ calendar : {
33
+ sameDay : '[დღეს] LT[-ზე]',
34
+ nextDay : '[ხვალ] LT[-ზე]',
35
+ lastDay : '[გუშინ] LT[-ზე]',
36
+ nextWeek : '[შემდეგ] dddd LT[-ზე]',
37
+ lastWeek : '[წინა] dddd LT-ზე',
38
+ sameElse : 'L'
39
+ },
40
+ relativeTime : {
41
+ future : function (s) {
42
+ return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
43
+ s.replace(/ი$/, 'ში') :
44
+ s + 'ში';
45
+ },
46
+ past : function (s) {
47
+ if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
48
+ return s.replace(/(ი|ე)$/, 'ის წინ');
49
+ }
50
+ if ((/წელი/).test(s)) {
51
+ return s.replace(/წელი$/, 'წლის წინ');
52
+ }
53
+ },
54
+ s : 'რამდენიმე წამი',
55
+ ss : '%d წამი',
56
+ m : 'წუთი',
57
+ mm : '%d წუთი',
58
+ h : 'საათი',
59
+ hh : '%d საათი',
60
+ d : 'დღე',
61
+ dd : '%d დღე',
62
+ M : 'თვე',
63
+ MM : '%d თვე',
64
+ y : 'წელი',
65
+ yy : '%d წელი'
66
+ },
67
+ dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
68
+ ordinal : function (number) {
69
+ if (number === 0) {
70
+ return number;
71
+ }
72
+ if (number === 1) {
73
+ return number + '-ლი';
74
+ }
75
+ if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
76
+ return 'მე-' + number;
77
+ }
78
+ return number + '-ე';
79
+ },
80
+ week : {
81
+ dow : 1,
82
+ doy : 7
83
+ }
84
+ });
85
+
86
+ return ka;
87
+
88
+ })));
@@ -0,0 +1,86 @@
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
+ 20: '-шы',
24
+ 30: '-шы',
25
+ 40: '-шы',
26
+ 50: '-ші',
27
+ 60: '-шы',
28
+ 70: '-ші',
29
+ 80: '-ші',
30
+ 90: '-шы',
31
+ 100: '-ші'
32
+ };
33
+
34
+ var kk = moment.defineLocale('kk', {
35
+ months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
36
+ monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
37
+ weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
38
+ weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
39
+ weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
40
+ longDateFormat : {
41
+ LT : 'HH:mm',
42
+ LTS : 'HH:mm:ss',
43
+ L : 'DD.MM.YYYY',
44
+ LL : 'D MMMM YYYY',
45
+ LLL : 'D MMMM YYYY HH:mm',
46
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
47
+ },
48
+ calendar : {
49
+ sameDay : '[Бүгін сағат] LT',
50
+ nextDay : '[Ертең сағат] LT',
51
+ nextWeek : 'dddd [сағат] LT',
52
+ lastDay : '[Кеше сағат] LT',
53
+ lastWeek : '[Өткен аптаның] dddd [сағат] LT',
54
+ sameElse : 'L'
55
+ },
56
+ relativeTime : {
57
+ future : '%s ішінде',
58
+ past : '%s бұрын',
59
+ s : 'бірнеше секунд',
60
+ ss : '%d секунд',
61
+ m : 'бір минут',
62
+ mm : '%d минут',
63
+ h : 'бір сағат',
64
+ hh : '%d сағат',
65
+ d : 'бір күн',
66
+ dd : '%d күн',
67
+ M : 'бір ай',
68
+ MM : '%d ай',
69
+ y : 'бір жыл',
70
+ yy : '%d жыл'
71
+ },
72
+ dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
73
+ ordinal : function (number) {
74
+ var a = number % 10,
75
+ b = number >= 100 ? 100 : null;
76
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
77
+ },
78
+ week : {
79
+ dow : 1, // Monday is the first day of the week.
80
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
81
+ }
82
+ });
83
+
84
+ return kk;
85
+
86
+ })));
@@ -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 symbolMap = {
12
+ '1': '១',
13
+ '2': '២',
14
+ '3': '៣',
15
+ '4': '៤',
16
+ '5': '៥',
17
+ '6': '៦',
18
+ '7': '៧',
19
+ '8': '៨',
20
+ '9': '៩',
21
+ '0': '០'
22
+ }, numberMap = {
23
+ '១': '1',
24
+ '២': '2',
25
+ '៣': '3',
26
+ '៤': '4',
27
+ '៥': '5',
28
+ '៦': '6',
29
+ '៧': '7',
30
+ '៨': '8',
31
+ '៩': '9',
32
+ '០': '0'
33
+ };
34
+
35
+ var km = moment.defineLocale('km', {
36
+ months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
37
+ '_'
38
+ ),
39
+ monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
40
+ '_'
41
+ ),
42
+ weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
43
+ weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
44
+ weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
45
+ weekdaysParseExact: true,
46
+ longDateFormat: {
47
+ LT: 'HH:mm',
48
+ LTS: 'HH:mm:ss',
49
+ L: 'DD/MM/YYYY',
50
+ LL: 'D MMMM YYYY',
51
+ LLL: 'D MMMM YYYY HH:mm',
52
+ LLLL: 'dddd, D MMMM YYYY HH:mm'
53
+ },
54
+ meridiemParse: /ព្រឹក|ល្ងាច/,
55
+ isPM: function (input) {
56
+ return input === 'ល្ងាច';
57
+ },
58
+ meridiem: function (hour, minute, isLower) {
59
+ if (hour < 12) {
60
+ return 'ព្រឹក';
61
+ } else {
62
+ return 'ល្ងាច';
63
+ }
64
+ },
65
+ calendar: {
66
+ sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
67
+ nextDay: '[ស្អែក ម៉ោង] LT',
68
+ nextWeek: 'dddd [ម៉ោង] LT',
69
+ lastDay: '[ម្សិលមិញ ម៉ោង] LT',
70
+ lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
71
+ sameElse: 'L'
72
+ },
73
+ relativeTime: {
74
+ future: '%sទៀត',
75
+ past: '%sមុន',
76
+ s: 'ប៉ុន្មានវិនាទី',
77
+ ss: '%d វិនាទី',
78
+ m: 'មួយនាទី',
79
+ mm: '%d នាទី',
80
+ h: 'មួយម៉ោង',
81
+ hh: '%d ម៉ោង',
82
+ d: 'មួយថ្ងៃ',
83
+ dd: '%d ថ្ងៃ',
84
+ M: 'មួយខែ',
85
+ MM: '%d ខែ',
86
+ y: 'មួយឆ្នាំ',
87
+ yy: '%d ឆ្នាំ'
88
+ },
89
+ dayOfMonthOrdinalParse : /ទី\d{1,2}/,
90
+ ordinal : 'ទី%d',
91
+ preparse: function (string) {
92
+ return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
93
+ return numberMap[match];
94
+ });
95
+ },
96
+ postformat: function (string) {
97
+ return string.replace(/\d/g, function (match) {
98
+ return symbolMap[match];
99
+ });
100
+ },
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 km;
108
+
109
+ })));
@@ -0,0 +1,125 @@
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 kn = moment.defineLocale('kn', {
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
+ meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
86
+ meridiemHour : function (hour, meridiem) {
87
+ if (hour === 12) {
88
+ hour = 0;
89
+ }
90
+ if (meridiem === 'ರಾತ್ರಿ') {
91
+ return hour < 4 ? hour : hour + 12;
92
+ } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
93
+ return hour;
94
+ } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
95
+ return hour >= 10 ? hour : hour + 12;
96
+ } else if (meridiem === 'ಸಂಜೆ') {
97
+ return hour + 12;
98
+ }
99
+ },
100
+ meridiem : function (hour, minute, isLower) {
101
+ if (hour < 4) {
102
+ return 'ರಾತ್ರಿ';
103
+ } else if (hour < 10) {
104
+ return 'ಬೆಳಿಗ್ಗೆ';
105
+ } else if (hour < 17) {
106
+ return 'ಮಧ್ಯಾಹ್ನ';
107
+ } else if (hour < 20) {
108
+ return 'ಸಂಜೆ';
109
+ } else {
110
+ return 'ರಾತ್ರಿ';
111
+ }
112
+ },
113
+ dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
114
+ ordinal : function (number) {
115
+ return number + 'ನೇ';
116
+ },
117
+ week : {
118
+ dow : 0, // Sunday is the first day of the week.
119
+ doy : 6 // The week that contains Jan 6th is the first week of the year.
120
+ }
121
+ });
122
+
123
+ return kn;
124
+
125
+ })));