momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -2,101 +2,112 @@
2
2
  //! locale : Cambodian [km]
3
3
  //! author : Kruy Vanna : https://github.com/kruyvanna
4
4
 
5
- import moment from '../moment';
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
6
11
 
7
- var symbolMap = {
8
- 1: '១',
9
- 2: '២',
10
- 3: '៣',
11
- 4: '៤',
12
- 5: '៥',
13
- 6: '៦',
14
- 7: '៧',
15
- 8: '៨',
16
- 9: '៩',
17
- 0: '០',
18
- },
19
- numberMap = {
20
- '១': '1',
21
- '២': '2',
22
- '៣': '3',
23
- '៤': '4',
24
- '៥': '5',
25
- '៦': '6',
26
- '៧': '7',
27
- '៨': '8',
28
- '៩': '9',
29
- '០': '0',
30
- };
12
+ //! moment.js locale configuration
31
13
 
32
- export default moment.defineLocale('km', {
33
- months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
34
- '_'
35
- ),
36
- monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
37
- '_'
38
- ),
39
- weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
40
- weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
41
- weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
42
- weekdaysParseExact: true,
43
- longDateFormat: {
44
- LT: 'HH:mm',
45
- LTS: 'HH:mm:ss',
46
- L: 'DD/MM/YYYY',
47
- LL: 'D MMMM YYYY',
48
- LLL: 'D MMMM YYYY HH:mm',
49
- LLLL: 'dddd, D MMMM YYYY HH:mm',
50
- },
51
- meridiemParse: /ព្រឹក|ល្ងាច/,
52
- isPM: function (input) {
53
- return input === 'ល្ងាច';
54
- },
55
- meridiem: function (hour, minute, isLower) {
56
- if (hour < 12) {
57
- return 'ព្រឹក';
58
- } else {
59
- return 'ល្ងាច';
60
- }
61
- },
62
- calendar: {
63
- sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
64
- nextDay: '[ស្អែក ម៉ោង] LT',
65
- nextWeek: 'dddd [ម៉ោង] LT',
66
- lastDay: '[ម្សិលមិញ ម៉ោង] LT',
67
- lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
68
- sameElse: 'L',
69
- },
70
- relativeTime: {
71
- future: '%sទៀត',
72
- past: '%sមុន',
73
- s: 'ប៉ុន្មានវិនាទី',
74
- ss: '%d វិនាទី',
75
- m: 'មួយនាទី',
76
- mm: '%d នាទី',
77
- h: 'មួយម៉ោង',
78
- hh: '%d ម៉ោង',
79
- d: 'មួយថ្ងៃ',
80
- dd: '%d ថ្ងៃ',
81
- M: 'មួយខែ',
82
- MM: '%d ខែ',
83
- y: 'មួយឆ្នាំ',
84
- yy: '%d ឆ្នាំ',
85
- },
86
- dayOfMonthOrdinalParse: /ទី\d{1,2}/,
87
- ordinal: 'ទី%d',
88
- preparse: function (string) {
89
- return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
90
- return numberMap[match];
91
- });
92
- },
93
- postformat: function (string) {
94
- return string.replace(/\d/g, function (match) {
95
- return symbolMap[match];
96
- });
97
- },
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
- });
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
+ var km = moment.defineLocale('km', {
40
+ months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
41
+ '_'
42
+ ),
43
+ monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
44
+ '_'
45
+ ),
46
+ weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
47
+ weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
48
+ weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
49
+ weekdaysParseExact: true,
50
+ longDateFormat: {
51
+ LT: 'HH:mm',
52
+ LTS: 'HH:mm:ss',
53
+ L: 'DD/MM/YYYY',
54
+ LL: 'D MMMM YYYY',
55
+ LLL: 'D MMMM YYYY HH:mm',
56
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
57
+ },
58
+ meridiemParse: /ព្រឹក|ល្ងាច/,
59
+ isPM: function (input) {
60
+ return input === 'ល្ងាច';
61
+ },
62
+ meridiem: function (hour, minute, isLower) {
63
+ if (hour < 12) {
64
+ return 'ព្រឹក';
65
+ } else {
66
+ return 'ល្ងាច';
67
+ }
68
+ },
69
+ calendar: {
70
+ sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
71
+ nextDay: '[ស្អែក ម៉ោង] LT',
72
+ nextWeek: 'dddd [ម៉ោង] LT',
73
+ lastDay: '[ម្សិលមិញ ម៉ោង] LT',
74
+ lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
75
+ sameElse: 'L',
76
+ },
77
+ relativeTime: {
78
+ future: '%sទៀត',
79
+ past: '%sមុន',
80
+ s: 'ប៉ុន្មានវិនាទី',
81
+ ss: '%d វិនាទី',
82
+ m: 'មួយនាទី',
83
+ mm: '%d នាទី',
84
+ h: 'មួយម៉ោង',
85
+ hh: '%d ម៉ោង',
86
+ d: 'មួយថ្ងៃ',
87
+ dd: '%d ថ្ងៃ',
88
+ M: 'មួយខែ',
89
+ MM: '%d ខែ',
90
+ y: 'មួយឆ្នាំ',
91
+ yy: '%d ឆ្នាំ',
92
+ },
93
+ dayOfMonthOrdinalParse: /ទី\d{1,2}/,
94
+ ordinal: 'ទី%d',
95
+ preparse: function (string) {
96
+ return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
97
+ return numberMap[match];
98
+ });
99
+ },
100
+ postformat: function (string) {
101
+ return string.replace(/\d/g, function (match) {
102
+ return symbolMap[match];
103
+ });
104
+ },
105
+ week: {
106
+ dow: 1, // Monday is the first day of the week.
107
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
108
+ },
109
+ });
110
+
111
+ return km;
112
+
113
+ })));
@@ -2,122 +2,133 @@
2
2
  //! locale : Kannada [kn]
3
3
  //! author : Rajeev Naik : https://github.com/rajeevnaikte
4
4
 
5
- import moment from '../moment';
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
6
11
 
7
- var symbolMap = {
8
- 1: '೧',
9
- 2: '೨',
10
- 3: '೩',
11
- 4: '೪',
12
- 5: '೫',
13
- 6: '೬',
14
- 7: '೭',
15
- 8: '೮',
16
- 9: '೯',
17
- 0: '೦',
18
- },
19
- numberMap = {
20
- '೧': '1',
21
- '೨': '2',
22
- '೩': '3',
23
- '೪': '4',
24
- '೫': '5',
25
- '೬': '6',
26
- '೭': '7',
27
- '೮': '8',
28
- '೯': '9',
29
- '೦': '0',
30
- };
12
+ //! moment.js locale configuration
31
13
 
32
- export default moment.defineLocale('kn', {
33
- months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
34
- '_'
35
- ),
36
- monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
37
- '_'
38
- ),
39
- monthsParseExact: true,
40
- weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
41
- '_'
42
- ),
43
- weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
44
- weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
45
- longDateFormat: {
46
- LT: 'A h:mm',
47
- LTS: 'A h:mm:ss',
48
- L: 'DD/MM/YYYY',
49
- LL: 'D MMMM YYYY',
50
- LLL: 'D MMMM YYYY, A h:mm',
51
- LLLL: 'dddd, D MMMM YYYY, A h:mm',
52
- },
53
- calendar: {
54
- sameDay: '[ಇಂದು] LT',
55
- nextDay: '[ನಾಳೆ] LT',
56
- nextWeek: 'dddd, LT',
57
- lastDay: '[ನಿನ್ನೆ] LT',
58
- lastWeek: '[ಕೊನೆಯ] dddd, LT',
59
- sameElse: 'L',
60
- },
61
- relativeTime: {
62
- future: '%s ನಂತರ',
63
- past: '%s ಹಿಂದೆ',
64
- s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
65
- ss: '%d ಸೆಕೆಂಡುಗಳು',
66
- m: 'ಒಂದು ನಿಮಿಷ',
67
- mm: '%d ನಿಮಿಷ',
68
- h: 'ಒಂದು ಗಂಟೆ',
69
- hh: '%d ಗಂಟೆ',
70
- d: 'ಒಂದು ದಿನ',
71
- dd: '%d ದಿನ',
72
- M: 'ಒಂದು ತಿಂಗಳು',
73
- MM: '%d ತಿಂಗಳು',
74
- y: 'ಒಂದು ವರ್ಷ',
75
- yy: '%d ವರ್ಷ',
76
- },
77
- preparse: function (string) {
78
- return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
79
- return numberMap[match];
80
- });
81
- },
82
- postformat: function (string) {
83
- return string.replace(/\d/g, function (match) {
84
- return symbolMap[match];
85
- });
86
- },
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
- dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
116
- ordinal: function (number) {
117
- return number + 'ನೇ';
118
- },
119
- week: {
120
- dow: 0, // Sunday is the first day of the week.
121
- doy: 6, // The week that contains Jan 6th is the first week of the year.
122
- },
123
- });
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
+ var kn = moment.defineLocale('kn', {
40
+ months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
41
+ '_'
42
+ ),
43
+ monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
44
+ '_'
45
+ ),
46
+ monthsParseExact: true,
47
+ weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
48
+ '_'
49
+ ),
50
+ weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
51
+ weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
52
+ longDateFormat: {
53
+ LT: 'A h:mm',
54
+ LTS: 'A h:mm:ss',
55
+ L: 'DD/MM/YYYY',
56
+ LL: 'D MMMM YYYY',
57
+ LLL: 'D MMMM YYYY, A h:mm',
58
+ LLLL: 'dddd, D MMMM YYYY, A h:mm',
59
+ },
60
+ calendar: {
61
+ sameDay: '[ಇಂದು] LT',
62
+ nextDay: '[ನಾಳೆ] LT',
63
+ nextWeek: 'dddd, LT',
64
+ lastDay: '[ನಿನ್ನೆ] LT',
65
+ lastWeek: '[ಕೊನೆಯ] dddd, LT',
66
+ sameElse: 'L',
67
+ },
68
+ relativeTime: {
69
+ future: '%s ನಂತರ',
70
+ past: '%s ಹಿಂದೆ',
71
+ s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
72
+ ss: '%d ಸೆಕೆಂಡುಗಳು',
73
+ m: 'ಒಂದು ನಿಮಿಷ',
74
+ mm: '%d ನಿಮಿಷ',
75
+ h: 'ಒಂದು ಗಂಟೆ',
76
+ hh: '%d ಗಂಟೆ',
77
+ d: 'ಒಂದು ದಿನ',
78
+ dd: '%d ದಿನ',
79
+ M: 'ಒಂದು ತಿಂಗಳು',
80
+ MM: '%d ತಿಂಗಳು',
81
+ y: 'ಒಂದು ವರ್ಷ',
82
+ yy: '%d ವರ್ಷ',
83
+ },
84
+ preparse: function (string) {
85
+ return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
86
+ return numberMap[match];
87
+ });
88
+ },
89
+ postformat: function (string) {
90
+ return string.replace(/\d/g, function (match) {
91
+ return symbolMap[match];
92
+ });
93
+ },
94
+ meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
95
+ meridiemHour: function (hour, meridiem) {
96
+ if (hour === 12) {
97
+ hour = 0;
98
+ }
99
+ if (meridiem === 'ರಾತ್ರಿ') {
100
+ return hour < 4 ? hour : hour + 12;
101
+ } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
102
+ return hour;
103
+ } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
104
+ return hour >= 10 ? hour : hour + 12;
105
+ } else if (meridiem === 'ಸಂಜೆ') {
106
+ return hour + 12;
107
+ }
108
+ },
109
+ meridiem: function (hour, minute, isLower) {
110
+ if (hour < 4) {
111
+ return 'ರಾತ್ರಿ';
112
+ } else if (hour < 10) {
113
+ return 'ಬೆಳಿಗ್ಗೆ';
114
+ } else if (hour < 17) {
115
+ return 'ಮಧ್ಯಾಹ್ನ';
116
+ } else if (hour < 20) {
117
+ return 'ಸಂಜೆ';
118
+ } else {
119
+ return 'ರಾತ್ರಿ';
120
+ }
121
+ },
122
+ dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
123
+ ordinal: function (number) {
124
+ return number + 'ನೇ';
125
+ },
126
+ week: {
127
+ dow: 0, // Sunday is the first day of the week.
128
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
129
+ },
130
+ });
131
+
132
+ return kn;
133
+
134
+ })));
@@ -3,73 +3,84 @@
3
3
  //! author : Kyungwook, Park : https://github.com/kyungw00k
4
4
  //! author : Jeeeyul Lee <jeeeyul@gmail.com>
5
5
 
6
- import moment from '../moment';
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
7
12
 
8
- export default moment.defineLocale('ko', {
9
- months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
10
- monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
11
- '_'
12
- ),
13
- weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
14
- weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
15
- weekdaysMin: '______'.split('_'),
16
- longDateFormat: {
17
- LT: 'A h:mm',
18
- LTS: 'A h:mm:ss',
19
- L: 'YYYY.MM.DD.',
20
- LL: 'YYYY년 MMMM D일',
21
- LLL: 'YYYY년 MMMM D일 A h:mm',
22
- LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
23
- l: 'YYYY.MM.DD.',
24
- ll: 'YYYY년 MMMM D일',
25
- lll: 'YYYY년 MMMM D일 A h:mm',
26
- llll: 'YYYY년 MMMM D일 dddd A h:mm',
27
- },
28
- calendar: {
29
- sameDay: '오늘 LT',
30
- nextDay: '내일 LT',
31
- nextWeek: 'dddd LT',
32
- lastDay: '어제 LT',
33
- lastWeek: '지난주 dddd LT',
34
- sameElse: 'L',
35
- },
36
- relativeTime: {
37
- future: '%s 후',
38
- past: '%s 전',
39
- s: ' ',
40
- ss: '%d초',
41
- m: '1분',
42
- mm: '%d',
43
- h: '한 시간',
44
- hh: '%d시간',
45
- d: '하루',
46
- dd: '%d',
47
- M: '한 달',
48
- MM: '%d',
49
- y: ' ',
50
- yy: '%d',
51
- },
52
- dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
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
- meridiemParse: /오전|오후/,
69
- isPM: function (token) {
70
- return token === '오후';
71
- },
72
- meridiem: function (hour, minute, isUpper) {
73
- return hour < 12 ? '오전' : '오후';
74
- },
75
- });
13
+ //! moment.js locale configuration
14
+
15
+ var ko = moment.defineLocale('ko', {
16
+ months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
17
+ monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
18
+ '_'
19
+ ),
20
+ weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
21
+ weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
22
+ weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
23
+ longDateFormat: {
24
+ LT: 'A h:mm',
25
+ LTS: 'A h:mm:ss',
26
+ L: 'YYYY.MM.DD.',
27
+ LL: 'YYYY년 MMMM D일',
28
+ LLL: 'YYYY년 MMMM D일 A h:mm',
29
+ LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
30
+ l: 'YYYY.MM.DD.',
31
+ ll: 'YYYY년 MMMM D일',
32
+ lll: 'YYYY년 MMMM D일 A h:mm',
33
+ llll: 'YYYY년 MMMM D일 dddd A h:mm',
34
+ },
35
+ calendar: {
36
+ sameDay: '오늘 LT',
37
+ nextDay: '내일 LT',
38
+ nextWeek: 'dddd LT',
39
+ lastDay: '어제 LT',
40
+ lastWeek: '지난주 dddd LT',
41
+ sameElse: 'L',
42
+ },
43
+ relativeTime: {
44
+ future: '%s ',
45
+ past: '%s 전',
46
+ s: '몇 초',
47
+ ss: '%d',
48
+ m: '1분',
49
+ mm: '%d',
50
+ h: '한 시간',
51
+ hh: '%d시간',
52
+ d: '하루',
53
+ dd: '%d',
54
+ M: ' ',
55
+ MM: '%d',
56
+ y: '일 년',
57
+ yy: '%d년',
58
+ },
59
+ dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
60
+ ordinal: function (number, period) {
61
+ switch (period) {
62
+ case 'd':
63
+ case 'D':
64
+ case 'DDD':
65
+ return number + '';
66
+ case 'M':
67
+ return number + '';
68
+ case 'w':
69
+ case 'W':
70
+ return number + '주';
71
+ default:
72
+ return number;
73
+ }
74
+ },
75
+ meridiemParse: /오전|오후/,
76
+ isPM: function (token) {
77
+ return token === '오후';
78
+ },
79
+ meridiem: function (hour, minute, isUpper) {
80
+ return hour < 12 ? '오전' : '오후';
81
+ },
82
+ });
83
+
84
+ return ko;
85
+
86
+ })));