@revivejs/moment 2.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/CHANGELOG.md +996 -0
  2. package/LICENSE +22 -0
  3. package/README.md +158 -0
  4. package/dist/locale/af.js +71 -0
  5. package/dist/locale/ar-dz.js +156 -0
  6. package/dist/locale/ar-kw.js +55 -0
  7. package/dist/locale/ar-ly.js +171 -0
  8. package/dist/locale/ar-ma.js +56 -0
  9. package/dist/locale/ar-ps.js +112 -0
  10. package/dist/locale/ar-sa.js +105 -0
  11. package/dist/locale/ar-tn.js +55 -0
  12. package/dist/locale/ar.js +189 -0
  13. package/dist/locale/az.js +102 -0
  14. package/dist/locale/be.js +142 -0
  15. package/dist/locale/bg.js +87 -0
  16. package/dist/locale/bm.js +52 -0
  17. package/dist/locale/bn-bd.js +129 -0
  18. package/dist/locale/bn.js +119 -0
  19. package/dist/locale/bo.js +124 -0
  20. package/dist/locale/br.js +168 -0
  21. package/dist/locale/bs.js +160 -0
  22. package/dist/locale/ca.js +100 -0
  23. package/dist/locale/cs.js +181 -0
  24. package/dist/locale/cv.js +63 -0
  25. package/dist/locale/cy.js +98 -0
  26. package/dist/locale/da.js +53 -0
  27. package/dist/locale/de-at.js +79 -0
  28. package/dist/locale/de-ch.js +78 -0
  29. package/dist/locale/de.js +78 -0
  30. package/dist/locale/dv.js +90 -0
  31. package/dist/locale/el.js +106 -0
  32. package/dist/locale/en-au.js +68 -0
  33. package/dist/locale/en-ca.js +64 -0
  34. package/dist/locale/en-gb.js +68 -0
  35. package/dist/locale/en-ie.js +68 -0
  36. package/dist/locale/en-il.js +64 -0
  37. package/dist/locale/en-in.js +68 -0
  38. package/dist/locale/en-nz.js +68 -0
  39. package/dist/locale/en-sg.js +68 -0
  40. package/dist/locale/eo.js +68 -0
  41. package/dist/locale/es-do.js +108 -0
  42. package/dist/locale/es-mx.js +110 -0
  43. package/dist/locale/es-us.js +110 -0
  44. package/dist/locale/es.js +110 -0
  45. package/dist/locale/et.js +78 -0
  46. package/dist/locale/eu.js +65 -0
  47. package/dist/locale/fa.js +113 -0
  48. package/dist/locale/fi.js +124 -0
  49. package/dist/locale/fil.js +58 -0
  50. package/dist/locale/fo.js +57 -0
  51. package/dist/locale/fr-ca.js +70 -0
  52. package/dist/locale/fr-ch.js +74 -0
  53. package/dist/locale/fr.js +108 -0
  54. package/dist/locale/fy.js +75 -0
  55. package/dist/locale/ga.js +95 -0
  56. package/dist/locale/gd.js +95 -0
  57. package/dist/locale/gl.js +75 -0
  58. package/dist/locale/gom-deva.js +126 -0
  59. package/dist/locale/gom-latn.js +124 -0
  60. package/dist/locale/gu.js +122 -0
  61. package/dist/locale/he.js +94 -0
  62. package/dist/locale/hi.js +168 -0
  63. package/dist/locale/hr.js +156 -0
  64. package/dist/locale/hu.js +118 -0
  65. package/dist/locale/hy-am.js +94 -0
  66. package/dist/locale/id.js +76 -0
  67. package/dist/locale/is.js +140 -0
  68. package/dist/locale/it-ch.js +64 -0
  69. package/dist/locale/it.js +106 -0
  70. package/dist/locale/ja.js +148 -0
  71. package/dist/locale/jv.js +76 -0
  72. package/dist/locale/ka.js +92 -0
  73. package/dist/locale/kk.js +82 -0
  74. package/dist/locale/km.js +103 -0
  75. package/dist/locale/kn.js +124 -0
  76. package/dist/locale/ko.js +75 -0
  77. package/dist/locale/ku-kmr.js +121 -0
  78. package/dist/locale/ku.js +118 -0
  79. package/dist/locale/ky.js +84 -0
  80. package/dist/locale/lb.js +137 -0
  81. package/dist/locale/lo.js +66 -0
  82. package/dist/locale/lt.js +125 -0
  83. package/dist/locale/lv.js +94 -0
  84. package/dist/locale/me.js +117 -0
  85. package/dist/locale/mi.js +60 -0
  86. package/dist/locale/mk.js +85 -0
  87. package/dist/locale/ml.js +82 -0
  88. package/dist/locale/mn.js +100 -0
  89. package/dist/locale/mr.js +203 -0
  90. package/dist/locale/ms-my.js +76 -0
  91. package/dist/locale/ms.js +75 -0
  92. package/dist/locale/mt.js +56 -0
  93. package/dist/locale/my.js +91 -0
  94. package/dist/locale/nb.js +60 -0
  95. package/dist/locale/ne.js +121 -0
  96. package/dist/locale/nl-be.js +102 -0
  97. package/dist/locale/nl.js +104 -0
  98. package/dist/locale/nn.js +59 -0
  99. package/dist/locale/oc-lnc.js +85 -0
  100. package/dist/locale/pa-in.js +122 -0
  101. package/dist/locale/pl.js +140 -0
  102. package/dist/locale/pt-br.js +58 -0
  103. package/dist/locale/pt.js +63 -0
  104. package/dist/locale/ro.js +76 -0
  105. package/dist/locale/ru.js +213 -0
  106. package/dist/locale/sd.js +81 -0
  107. package/dist/locale/se.js +57 -0
  108. package/dist/locale/si.js +69 -0
  109. package/dist/locale/sk.js +145 -0
  110. package/dist/locale/sl.js +171 -0
  111. package/dist/locale/sq.js +65 -0
  112. package/dist/locale/sr-cyrl.js +127 -0
  113. package/dist/locale/sr.js +129 -0
  114. package/dist/locale/ss.js +84 -0
  115. package/dist/locale/sv.js +68 -0
  116. package/dist/locale/sw.js +55 -0
  117. package/dist/locale/ta.js +131 -0
  118. package/dist/locale/te.js +88 -0
  119. package/dist/locale/tet.js +68 -0
  120. package/dist/locale/tg.js +117 -0
  121. package/dist/locale/th.js +65 -0
  122. package/dist/locale/tk.js +91 -0
  123. package/dist/locale/tl-ph.js +57 -0
  124. package/dist/locale/tlh.js +124 -0
  125. package/dist/locale/tr.js +106 -0
  126. package/dist/locale/tzl.js +89 -0
  127. package/dist/locale/tzm-latn.js +54 -0
  128. package/dist/locale/tzm.js +54 -0
  129. package/dist/locale/ug-cn.js +111 -0
  130. package/dist/locale/uk.js +167 -0
  131. package/dist/locale/ur.js +82 -0
  132. package/dist/locale/uz-latn.js +54 -0
  133. package/dist/locale/uz.js +51 -0
  134. package/dist/locale/vi.js +80 -0
  135. package/dist/locale/x-pseudo.js +73 -0
  136. package/dist/locale/yo.js +53 -0
  137. package/dist/locale/zh-cn.js +120 -0
  138. package/dist/locale/zh-hk.js +101 -0
  139. package/dist/locale/zh-mo.js +100 -0
  140. package/dist/locale/zh-tw.js +99 -0
  141. package/dist/moment.js +5680 -0
  142. package/ender.js +1 -0
  143. package/locale/af.js +82 -0
  144. package/locale/ar-dz.js +167 -0
  145. package/locale/ar-kw.js +66 -0
  146. package/locale/ar-ly.js +182 -0
  147. package/locale/ar-ma.js +67 -0
  148. package/locale/ar-ps.js +123 -0
  149. package/locale/ar-sa.js +116 -0
  150. package/locale/ar-tn.js +66 -0
  151. package/locale/ar.js +200 -0
  152. package/locale/az.js +113 -0
  153. package/locale/be.js +153 -0
  154. package/locale/bg.js +98 -0
  155. package/locale/bm.js +62 -0
  156. package/locale/bn-bd.js +140 -0
  157. package/locale/bn.js +130 -0
  158. package/locale/bo.js +135 -0
  159. package/locale/br.js +179 -0
  160. package/locale/bs.js +171 -0
  161. package/locale/ca.js +111 -0
  162. package/locale/cs.js +192 -0
  163. package/locale/cv.js +74 -0
  164. package/locale/cy.js +109 -0
  165. package/locale/da.js +64 -0
  166. package/locale/de-at.js +90 -0
  167. package/locale/de-ch.js +87 -0
  168. package/locale/de.js +89 -0
  169. package/locale/dv.js +101 -0
  170. package/locale/el.js +117 -0
  171. package/locale/en-au.js +79 -0
  172. package/locale/en-ca.js +75 -0
  173. package/locale/en-gb.js +79 -0
  174. package/locale/en-ie.js +79 -0
  175. package/locale/en-il.js +75 -0
  176. package/locale/en-in.js +79 -0
  177. package/locale/en-nz.js +79 -0
  178. package/locale/en-sg.js +79 -0
  179. package/locale/eo.js +79 -0
  180. package/locale/es-do.js +119 -0
  181. package/locale/es-mx.js +121 -0
  182. package/locale/es-us.js +121 -0
  183. package/locale/es.js +121 -0
  184. package/locale/et.js +89 -0
  185. package/locale/eu.js +76 -0
  186. package/locale/fa.js +124 -0
  187. package/locale/fi.js +135 -0
  188. package/locale/fil.js +69 -0
  189. package/locale/fo.js +68 -0
  190. package/locale/fr-ca.js +81 -0
  191. package/locale/fr-ch.js +85 -0
  192. package/locale/fr.js +119 -0
  193. package/locale/fy.js +86 -0
  194. package/locale/ga.js +106 -0
  195. package/locale/gd.js +106 -0
  196. package/locale/gl.js +86 -0
  197. package/locale/gom-deva.js +137 -0
  198. package/locale/gom-latn.js +135 -0
  199. package/locale/gu.js +133 -0
  200. package/locale/he.js +105 -0
  201. package/locale/hi.js +179 -0
  202. package/locale/hr.js +167 -0
  203. package/locale/hu.js +129 -0
  204. package/locale/hy-am.js +105 -0
  205. package/locale/id.js +87 -0
  206. package/locale/is.js +151 -0
  207. package/locale/it-ch.js +75 -0
  208. package/locale/it.js +117 -0
  209. package/locale/ja.js +159 -0
  210. package/locale/jv.js +87 -0
  211. package/locale/ka.js +103 -0
  212. package/locale/kk.js +93 -0
  213. package/locale/km.js +114 -0
  214. package/locale/kn.js +135 -0
  215. package/locale/ko.js +86 -0
  216. package/locale/ku-kmr.js +125 -0
  217. package/locale/ku.js +129 -0
  218. package/locale/ky.js +95 -0
  219. package/locale/lb.js +148 -0
  220. package/locale/lo.js +77 -0
  221. package/locale/lt.js +136 -0
  222. package/locale/lv.js +105 -0
  223. package/locale/me.js +128 -0
  224. package/locale/mi.js +71 -0
  225. package/locale/mk.js +97 -0
  226. package/locale/ml.js +93 -0
  227. package/locale/mn.js +111 -0
  228. package/locale/mr.js +214 -0
  229. package/locale/ms-my.js +87 -0
  230. package/locale/ms.js +86 -0
  231. package/locale/mt.js +67 -0
  232. package/locale/my.js +102 -0
  233. package/locale/nb.js +71 -0
  234. package/locale/ne.js +132 -0
  235. package/locale/nl-be.js +113 -0
  236. package/locale/nl.js +115 -0
  237. package/locale/nn.js +70 -0
  238. package/locale/oc-lnc.js +96 -0
  239. package/locale/pa-in.js +133 -0
  240. package/locale/pl.js +151 -0
  241. package/locale/pt-br.js +69 -0
  242. package/locale/pt.js +74 -0
  243. package/locale/ro.js +87 -0
  244. package/locale/ru.js +224 -0
  245. package/locale/sd.js +92 -0
  246. package/locale/se.js +68 -0
  247. package/locale/si.js +80 -0
  248. package/locale/sk.js +156 -0
  249. package/locale/sl.js +182 -0
  250. package/locale/sq.js +76 -0
  251. package/locale/sr-cyrl.js +138 -0
  252. package/locale/sr.js +140 -0
  253. package/locale/ss.js +95 -0
  254. package/locale/sv.js +79 -0
  255. package/locale/sw.js +66 -0
  256. package/locale/ta.js +142 -0
  257. package/locale/te.js +99 -0
  258. package/locale/tet.js +79 -0
  259. package/locale/tg.js +128 -0
  260. package/locale/th.js +76 -0
  261. package/locale/tk.js +102 -0
  262. package/locale/tl-ph.js +68 -0
  263. package/locale/tlh.js +135 -0
  264. package/locale/tr.js +117 -0
  265. package/locale/tzl.js +100 -0
  266. package/locale/tzm-latn.js +65 -0
  267. package/locale/tzm.js +65 -0
  268. package/locale/ug-cn.js +122 -0
  269. package/locale/uk.js +178 -0
  270. package/locale/ur.js +93 -0
  271. package/locale/uz-latn.js +65 -0
  272. package/locale/uz.js +62 -0
  273. package/locale/vi.js +91 -0
  274. package/locale/x-pseudo.js +84 -0
  275. package/locale/yo.js +64 -0
  276. package/locale/zh-cn.js +131 -0
  277. package/locale/zh-hk.js +112 -0
  278. package/locale/zh-mo.js +111 -0
  279. package/locale/zh-tw.js +110 -0
  280. package/min/locales.js +12800 -0
  281. package/min/locales.min.js +2 -0
  282. package/min/locales.min.js.map +1 -0
  283. package/min/moment-with-locales.js +18472 -0
  284. package/min/moment-with-locales.min.js +2 -0
  285. package/min/moment-with-locales.min.js.map +1 -0
  286. package/min/moment.min.js +2 -0
  287. package/min/moment.min.js.map +1 -0
  288. package/min/tests.js +149292 -0
  289. package/moment.d.ts +796 -0
  290. package/moment.js +5688 -0
  291. package/package.js +11 -0
  292. package/package.json +152 -0
  293. package/ts3.1-typings/moment.d.ts +785 -0
@@ -0,0 +1,137 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Konkani Devanagari script [gom-deva]
3
+ //! author : The Discoverer : https://github.com/WikiDiscoverer
4
+
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';
11
+
12
+ //! moment.js locale configuration
13
+
14
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
+ var format = {
16
+ s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
17
+ ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
18
+ m: ['एका मिणटान', 'एक मिनूट'],
19
+ mm: [number + ' मिणटांनी', number + ' मिणटां'],
20
+ h: ['एका वरान', 'एक वर'],
21
+ hh: [number + ' वरांनी', number + ' वरां'],
22
+ d: ['एका दिसान', 'एक दीस'],
23
+ dd: [number + ' दिसांनी', number + ' दीस'],
24
+ M: ['एका म्हयन्यान', 'एक म्हयनो'],
25
+ MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
26
+ y: ['एका वर्सान', 'एक वर्स'],
27
+ yy: [number + ' वर्सांनी', number + ' वर्सां'],
28
+ };
29
+ return isFuture ? format[key][0] : format[key][1];
30
+ }
31
+
32
+ var gomDeva = moment.defineLocale('gom-deva', {
33
+ months: {
34
+ standalone:
35
+ 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
36
+ '_'
37
+ ),
38
+ format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
39
+ '_'
40
+ ),
41
+ isFormat: /MMMM(\s)+D[oD]?/,
42
+ },
43
+ monthsShort:
44
+ 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
45
+ '_'
46
+ ),
47
+ monthsParseExact: true,
48
+ weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
49
+ weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
50
+ weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
51
+ weekdaysParseExact: true,
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, MMMM Do, YYYY, A h:mm [वाजतां]',
59
+ llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
60
+ },
61
+ calendar: {
62
+ sameDay: '[आयज] LT',
63
+ nextDay: '[फाल्यां] LT',
64
+ nextWeek: '[फुडलो] dddd[,] LT',
65
+ lastDay: '[काल] LT',
66
+ lastWeek: '[फाटलो] dddd[,] LT',
67
+ sameElse: 'L',
68
+ },
69
+ relativeTime: {
70
+ future: '%s',
71
+ past: '%s आदीं',
72
+ s: processRelativeTime,
73
+ ss: processRelativeTime,
74
+ m: processRelativeTime,
75
+ mm: processRelativeTime,
76
+ h: processRelativeTime,
77
+ hh: processRelativeTime,
78
+ d: processRelativeTime,
79
+ dd: processRelativeTime,
80
+ M: processRelativeTime,
81
+ MM: processRelativeTime,
82
+ y: processRelativeTime,
83
+ yy: processRelativeTime,
84
+ },
85
+ dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
86
+ ordinal: function (number, period) {
87
+ switch (period) {
88
+ // the ordinal 'वेर' only applies to day of the month
89
+ case 'D':
90
+ return number + 'वेर';
91
+ default:
92
+ case 'M':
93
+ case 'Q':
94
+ case 'DDD':
95
+ case 'd':
96
+ case 'w':
97
+ case 'W':
98
+ return number;
99
+ }
100
+ },
101
+ week: {
102
+ dow: 0, // Sunday is the first day of the week
103
+ doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
104
+ },
105
+ meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
106
+ meridiemHour: function (hour, meridiem) {
107
+ if (hour === 12) {
108
+ hour = 0;
109
+ }
110
+ if (meridiem === 'राती') {
111
+ return hour < 4 ? hour : hour + 12;
112
+ } else if (meridiem === 'सकाळीं') {
113
+ return hour;
114
+ } else if (meridiem === 'दनपारां') {
115
+ return hour > 12 ? hour : hour + 12;
116
+ } else if (meridiem === 'सांजे') {
117
+ return hour + 12;
118
+ }
119
+ },
120
+ meridiem: function (hour, minute, isLower) {
121
+ if (hour < 4) {
122
+ return 'राती';
123
+ } else if (hour < 12) {
124
+ return 'सकाळीं';
125
+ } else if (hour < 16) {
126
+ return 'दनपारां';
127
+ } else if (hour < 20) {
128
+ return 'सांजे';
129
+ } else {
130
+ return 'राती';
131
+ }
132
+ },
133
+ });
134
+
135
+ return gomDeva;
136
+
137
+ })));
@@ -0,0 +1,135 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Konkani Latin script [gom-latn]
3
+ //! author : The Discoverer : https://github.com/WikiDiscoverer
4
+
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';
11
+
12
+ //! moment.js locale configuration
13
+
14
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
+ var format = {
16
+ s: ['thoddea sekondamni', 'thodde sekond'],
17
+ ss: [number + ' sekondamni', number + ' sekond'],
18
+ m: ['eka mintan', 'ek minut'],
19
+ mm: [number + ' mintamni', number + ' mintam'],
20
+ h: ['eka voran', 'ek vor'],
21
+ hh: [number + ' voramni', number + ' voram'],
22
+ d: ['eka disan', 'ek dis'],
23
+ dd: [number + ' disamni', number + ' dis'],
24
+ M: ['eka mhoinean', 'ek mhoino'],
25
+ MM: [number + ' mhoineamni', number + ' mhoine'],
26
+ y: ['eka vorsan', 'ek voros'],
27
+ yy: [number + ' vorsamni', number + ' vorsam'],
28
+ };
29
+ return isFuture ? format[key][0] : format[key][1];
30
+ }
31
+
32
+ var gomLatn = moment.defineLocale('gom-latn', {
33
+ months: {
34
+ standalone:
35
+ 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
36
+ '_'
37
+ ),
38
+ format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
39
+ '_'
40
+ ),
41
+ isFormat: /MMMM(\s)+D[oD]?/,
42
+ },
43
+ monthsShort:
44
+ 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
45
+ monthsParseExact: true,
46
+ weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
47
+ weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
48
+ weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
49
+ weekdaysParseExact: true,
50
+ longDateFormat: {
51
+ LT: 'A h:mm [vazta]',
52
+ LTS: 'A h:mm:ss [vazta]',
53
+ L: 'DD-MM-YYYY',
54
+ LL: 'D MMMM YYYY',
55
+ LLL: 'D MMMM YYYY A h:mm [vazta]',
56
+ LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
57
+ llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
58
+ },
59
+ calendar: {
60
+ sameDay: '[Aiz] LT',
61
+ nextDay: '[Faleam] LT',
62
+ nextWeek: '[Fuddlo] dddd[,] LT',
63
+ lastDay: '[Kal] LT',
64
+ lastWeek: '[Fattlo] dddd[,] LT',
65
+ sameElse: 'L',
66
+ },
67
+ relativeTime: {
68
+ future: '%s',
69
+ past: '%s adim',
70
+ s: processRelativeTime,
71
+ ss: processRelativeTime,
72
+ m: processRelativeTime,
73
+ mm: processRelativeTime,
74
+ h: processRelativeTime,
75
+ hh: processRelativeTime,
76
+ d: processRelativeTime,
77
+ dd: processRelativeTime,
78
+ M: processRelativeTime,
79
+ MM: processRelativeTime,
80
+ y: processRelativeTime,
81
+ yy: processRelativeTime,
82
+ },
83
+ dayOfMonthOrdinalParse: /\d{1,2}(er)/,
84
+ ordinal: function (number, period) {
85
+ switch (period) {
86
+ // the ordinal 'er' only applies to day of the month
87
+ case 'D':
88
+ return number + 'er';
89
+ default:
90
+ case 'M':
91
+ case 'Q':
92
+ case 'DDD':
93
+ case 'd':
94
+ case 'w':
95
+ case 'W':
96
+ return number;
97
+ }
98
+ },
99
+ week: {
100
+ dow: 0, // Sunday is the first day of the week
101
+ doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
102
+ },
103
+ meridiemParse: /rati|sokallim|donparam|sanje/,
104
+ meridiemHour: function (hour, meridiem) {
105
+ if (hour === 12) {
106
+ hour = 0;
107
+ }
108
+ if (meridiem === 'rati') {
109
+ return hour < 4 ? hour : hour + 12;
110
+ } else if (meridiem === 'sokallim') {
111
+ return hour;
112
+ } else if (meridiem === 'donparam') {
113
+ return hour > 12 ? hour : hour + 12;
114
+ } else if (meridiem === 'sanje') {
115
+ return hour + 12;
116
+ }
117
+ },
118
+ meridiem: function (hour, minute, isLower) {
119
+ if (hour < 4) {
120
+ return 'rati';
121
+ } else if (hour < 12) {
122
+ return 'sokallim';
123
+ } else if (hour < 16) {
124
+ return 'donparam';
125
+ } else if (hour < 20) {
126
+ return 'sanje';
127
+ } else {
128
+ return 'rati';
129
+ }
130
+ },
131
+ });
132
+
133
+ return gomLatn;
134
+
135
+ })));
package/locale/gu.js ADDED
@@ -0,0 +1,133 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Gujarati [gu]
3
+ //! author : Kaushik Thanki : https://github.com/Kaushik1987
4
+
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';
11
+
12
+ //! moment.js locale configuration
13
+
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 gu = moment.defineLocale('gu', {
40
+ months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
41
+ '_'
42
+ ),
43
+ monthsShort:
44
+ 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
45
+ '_'
46
+ ),
47
+ monthsParseExact: true,
48
+ weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
49
+ '_'
50
+ ),
51
+ weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
52
+ weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
53
+ longDateFormat: {
54
+ LT: 'A h:mm વાગ્યે',
55
+ LTS: 'A h:mm:ss વાગ્યે',
56
+ L: 'DD/MM/YYYY',
57
+ LL: 'D MMMM YYYY',
58
+ LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
59
+ LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
60
+ },
61
+ calendar: {
62
+ sameDay: '[આજ] LT',
63
+ nextDay: '[કાલે] LT',
64
+ nextWeek: 'dddd, LT',
65
+ lastDay: '[ગઇકાલે] LT',
66
+ lastWeek: '[પાછલા] dddd, LT',
67
+ sameElse: 'L',
68
+ },
69
+ relativeTime: {
70
+ future: '%s મા',
71
+ past: '%s પહેલા',
72
+ s: 'અમુક પળો',
73
+ ss: '%d સેકંડ',
74
+ m: 'એક મિનિટ',
75
+ mm: '%d મિનિટ',
76
+ h: 'એક કલાક',
77
+ hh: '%d કલાક',
78
+ d: 'એક દિવસ',
79
+ dd: '%d દિવસ',
80
+ M: 'એક મહિનો',
81
+ MM: '%d મહિનો',
82
+ y: 'એક વર્ષ',
83
+ yy: '%d વર્ષ',
84
+ },
85
+ preparse: function (string) {
86
+ return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
87
+ return numberMap[match];
88
+ });
89
+ },
90
+ postformat: function (string) {
91
+ return string.replace(/\d/g, function (match) {
92
+ return symbolMap[match];
93
+ });
94
+ },
95
+ // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
96
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
97
+ meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
98
+ meridiemHour: function (hour, meridiem) {
99
+ if (hour === 12) {
100
+ hour = 0;
101
+ }
102
+ if (meridiem === 'રાત') {
103
+ return hour < 4 ? hour : hour + 12;
104
+ } else if (meridiem === 'સવાર') {
105
+ return hour;
106
+ } else if (meridiem === 'બપોર') {
107
+ return hour >= 10 ? hour : hour + 12;
108
+ } else if (meridiem === 'સાંજ') {
109
+ return hour + 12;
110
+ }
111
+ },
112
+ meridiem: function (hour, minute, isLower) {
113
+ if (hour < 4) {
114
+ return 'રાત';
115
+ } else if (hour < 10) {
116
+ return 'સવાર';
117
+ } else if (hour < 17) {
118
+ return 'બપોર';
119
+ } else if (hour < 20) {
120
+ return 'સાંજ';
121
+ } else {
122
+ return 'રાત';
123
+ }
124
+ },
125
+ week: {
126
+ dow: 0, // Sunday is the first day of the week.
127
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
128
+ },
129
+ });
130
+
131
+ return gu;
132
+
133
+ })));
package/locale/he.js ADDED
@@ -0,0 +1,105 @@
1
+ //! moment.js locale configuration
2
+ //! locale : 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 (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+ //! moment.js locale configuration
15
+
16
+ var he = moment.defineLocale('he', {
17
+ months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
18
+ '_'
19
+ ),
20
+ monthsShort:
21
+ 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
22
+ weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
23
+ weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
24
+ weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'DD/MM/YYYY',
29
+ LL: 'D [ב]MMMM YYYY',
30
+ LLL: 'D [ב]MMMM YYYY HH:mm',
31
+ LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
32
+ l: 'D/M/YYYY',
33
+ ll: 'D MMM YYYY',
34
+ lll: 'D MMM YYYY HH:mm',
35
+ llll: 'ddd, D MMM YYYY HH:mm',
36
+ },
37
+ calendar: {
38
+ sameDay: '[היום ב־]LT',
39
+ nextDay: '[מחר ב־]LT',
40
+ nextWeek: 'dddd [בשעה] LT',
41
+ lastDay: '[אתמול ב־]LT',
42
+ lastWeek: '[ביום] dddd [האחרון בשעה] LT',
43
+ sameElse: 'L',
44
+ },
45
+ relativeTime: {
46
+ future: 'בעוד %s',
47
+ past: 'לפני %s',
48
+ s: 'מספר שניות',
49
+ ss: '%d שניות',
50
+ m: 'דקה',
51
+ mm: '%d דקות',
52
+ h: 'שעה',
53
+ hh: function (number) {
54
+ if (number === 2) {
55
+ return 'שעתיים';
56
+ }
57
+ return number + ' שעות';
58
+ },
59
+ d: 'יום',
60
+ dd: function (number) {
61
+ if (number === 2) {
62
+ return 'יומיים';
63
+ }
64
+ return number + ' ימים';
65
+ },
66
+ M: 'חודש',
67
+ MM: function (number) {
68
+ if (number === 2) {
69
+ return 'חודשיים';
70
+ }
71
+ return number + ' חודשים';
72
+ },
73
+ y: 'שנה',
74
+ yy: function (number) {
75
+ if (number === 2) {
76
+ return 'שנתיים';
77
+ } else if (number % 10 === 0 && number !== 10) {
78
+ return number + ' שנה';
79
+ }
80
+ return number + ' שנים';
81
+ },
82
+ },
83
+ meridiemParse:
84
+ /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
85
+ isPM: function (input) {
86
+ return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
87
+ },
88
+ meridiem: function (hour, minute, isLower) {
89
+ if (hour < 5) {
90
+ return 'לפנות בוקר';
91
+ } else if (hour < 10) {
92
+ return 'בבוקר';
93
+ } else if (hour < 12) {
94
+ return isLower ? 'לפנה"צ' : 'לפני הצהריים';
95
+ } else if (hour < 18) {
96
+ return isLower ? 'אחה"צ' : 'אחרי הצהריים';
97
+ } else {
98
+ return 'בערב';
99
+ }
100
+ },
101
+ });
102
+
103
+ return he;
104
+
105
+ })));