@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,84 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Pseudo [x-pseudo]
3
+ //! author : Andrew Hood : https://github.com/andrewhood125
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 xPseudo = moment.defineLocale('x-pseudo', {
15
+ months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
16
+ '_'
17
+ ),
18
+ monthsShort:
19
+ 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
20
+ '_'
21
+ ),
22
+ monthsParseExact: true,
23
+ weekdays:
24
+ 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
25
+ '_'
26
+ ),
27
+ weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
28
+ weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
29
+ weekdaysParseExact: true,
30
+ longDateFormat: {
31
+ LT: 'HH:mm',
32
+ L: 'DD/MM/YYYY',
33
+ LL: 'D MMMM YYYY',
34
+ LLL: 'D MMMM YYYY HH:mm',
35
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
36
+ },
37
+ calendar: {
38
+ sameDay: '[T~ódá~ý át] LT',
39
+ nextDay: '[T~ómó~rró~w át] LT',
40
+ nextWeek: 'dddd [át] LT',
41
+ lastDay: '[Ý~ést~érdá~ý át] LT',
42
+ lastWeek: '[L~ást] dddd [át] LT',
43
+ sameElse: 'L',
44
+ },
45
+ relativeTime: {
46
+ future: 'í~ñ %s',
47
+ past: '%s á~gó',
48
+ s: 'á ~féw ~sécó~ñds',
49
+ ss: '%d s~écóñ~ds',
50
+ m: 'á ~míñ~úté',
51
+ mm: '%d m~íñú~tés',
52
+ h: 'á~ñ hó~úr',
53
+ hh: '%d h~óúrs',
54
+ d: 'á ~dáý',
55
+ dd: '%d d~áýs',
56
+ M: 'á ~móñ~th',
57
+ MM: '%d m~óñt~hs',
58
+ y: 'á ~ýéár',
59
+ yy: '%d ý~éárs',
60
+ },
61
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
62
+ ordinal: function (number) {
63
+ var b = number % 10,
64
+ output =
65
+ ~~((number % 100) / 10) === 1
66
+ ? 'th'
67
+ : b === 1
68
+ ? 'st'
69
+ : b === 2
70
+ ? 'nd'
71
+ : b === 3
72
+ ? 'rd'
73
+ : 'th';
74
+ return number + output;
75
+ },
76
+ week: {
77
+ dow: 1, // Monday is the first day of the week.
78
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
79
+ },
80
+ });
81
+
82
+ return xPseudo;
83
+
84
+ })));
package/locale/yo.js ADDED
@@ -0,0 +1,64 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Yoruba Nigeria [yo]
3
+ //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
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 yo = moment.defineLocale('yo', {
15
+ months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
19
+ weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
20
+ weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
21
+ weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
22
+ longDateFormat: {
23
+ LT: 'h:mm A',
24
+ LTS: 'h:mm:ss A',
25
+ L: 'DD/MM/YYYY',
26
+ LL: 'D MMMM YYYY',
27
+ LLL: 'D MMMM YYYY h:mm A',
28
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
29
+ },
30
+ calendar: {
31
+ sameDay: '[Ònì ni] LT',
32
+ nextDay: '[Ọ̀la ni] LT',
33
+ nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
34
+ lastDay: '[Àna ni] LT',
35
+ lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
36
+ sameElse: 'L',
37
+ },
38
+ relativeTime: {
39
+ future: 'ní %s',
40
+ past: '%s kọjá',
41
+ s: 'ìsẹjú aayá die',
42
+ ss: 'aayá %d',
43
+ m: 'ìsẹjú kan',
44
+ mm: 'ìsẹjú %d',
45
+ h: 'wákati kan',
46
+ hh: 'wákati %d',
47
+ d: 'ọjọ́ kan',
48
+ dd: 'ọjọ́ %d',
49
+ M: 'osù kan',
50
+ MM: 'osù %d',
51
+ y: 'ọdún kan',
52
+ yy: 'ọdún %d',
53
+ },
54
+ dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
55
+ ordinal: 'ọjọ́ %d',
56
+ week: {
57
+ dow: 1, // Monday is the first day of the week.
58
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
59
+ },
60
+ });
61
+
62
+ return yo;
63
+
64
+ })));
@@ -0,0 +1,131 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (China) [zh-cn]
3
+ //! author : suupic : https://github.com/suupic
4
+ //! author : Zeno Zeng : https://github.com/zenozeng
5
+ //! author : uu109 : https://github.com/uu109
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 zhCn = moment.defineLocale('zh-cn', {
17
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
18
+ '_'
19
+ ),
20
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
21
+ '_'
22
+ ),
23
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
24
+ weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
25
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'YYYY/MM/DD',
30
+ LL: 'YYYY年M月D日',
31
+ LLL: 'YYYY年M月D日Ah点mm分',
32
+ LLLL: 'YYYY年M月D日ddddAh点mm分',
33
+ l: 'YYYY/M/D',
34
+ ll: 'YYYY年M月D日',
35
+ lll: 'YYYY年M月D日 HH:mm',
36
+ llll: 'YYYY年M月D日dddd HH:mm',
37
+ },
38
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
39
+ meridiemHour: function (hour, meridiem) {
40
+ if (hour === 12) {
41
+ hour = 0;
42
+ }
43
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
44
+ return hour;
45
+ } else if (meridiem === '下午' || meridiem === '晚上') {
46
+ return hour + 12;
47
+ } else {
48
+ // '中午'
49
+ return hour >= 11 ? hour : hour + 12;
50
+ }
51
+ },
52
+ meridiem: function (hour, minute, isLower) {
53
+ var hm = hour * 100 + minute;
54
+ if (hm < 600) {
55
+ return '凌晨';
56
+ } else if (hm < 900) {
57
+ return '早上';
58
+ } else if (hm < 1130) {
59
+ return '上午';
60
+ } else if (hm < 1230) {
61
+ return '中午';
62
+ } else if (hm < 1800) {
63
+ return '下午';
64
+ } else {
65
+ return '晚上';
66
+ }
67
+ },
68
+ calendar: {
69
+ sameDay: '[今天]LT',
70
+ nextDay: '[明天]LT',
71
+ nextWeek: function (now) {
72
+ if (now.week() !== this.week()) {
73
+ return '[下]dddLT';
74
+ } else {
75
+ return '[本]dddLT';
76
+ }
77
+ },
78
+ lastDay: '[昨天]LT',
79
+ lastWeek: function (now) {
80
+ if (this.week() !== now.week()) {
81
+ return '[上]dddLT';
82
+ } else {
83
+ return '[本]dddLT';
84
+ }
85
+ },
86
+ sameElse: 'L',
87
+ },
88
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
89
+ ordinal: function (number, period) {
90
+ switch (period) {
91
+ case 'd':
92
+ case 'D':
93
+ case 'DDD':
94
+ return number + '日';
95
+ case 'M':
96
+ return number + '月';
97
+ case 'w':
98
+ case 'W':
99
+ return number + '周';
100
+ default:
101
+ return number;
102
+ }
103
+ },
104
+ relativeTime: {
105
+ future: '%s后',
106
+ past: '%s前',
107
+ s: '几秒',
108
+ ss: '%d 秒',
109
+ m: '1 分钟',
110
+ mm: '%d 分钟',
111
+ h: '1 小时',
112
+ hh: '%d 小时',
113
+ d: '1 天',
114
+ dd: '%d 天',
115
+ w: '1 周',
116
+ ww: '%d 周',
117
+ M: '1 个月',
118
+ MM: '%d 个月',
119
+ y: '1 年',
120
+ yy: '%d 年',
121
+ },
122
+ week: {
123
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
124
+ dow: 1, // Monday is the first day of the week.
125
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
126
+ },
127
+ });
128
+
129
+ return zhCn;
130
+
131
+ })));
@@ -0,0 +1,112 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (Hong Kong) [zh-hk]
3
+ //! author : Ben : https://github.com/ben-lin
4
+ //! author : Chris Lam : https://github.com/hehachris
5
+ //! author : Konstantin : https://github.com/skfd
6
+ //! author : Anthony : https://github.com/anthonylau
7
+
8
+ ;(function (global, factory) {
9
+ typeof exports === 'object' && typeof module !== 'undefined'
10
+ && typeof require === 'function' ? factory(require('../moment')) :
11
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
12
+ factory(global.moment)
13
+ }(this, (function (moment) { 'use strict';
14
+
15
+ //! moment.js locale configuration
16
+
17
+ var zhHk = moment.defineLocale('zh-hk', {
18
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
19
+ '_'
20
+ ),
21
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
22
+ '_'
23
+ ),
24
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
25
+ weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
26
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
27
+ longDateFormat: {
28
+ LT: 'HH:mm',
29
+ LTS: 'HH:mm:ss',
30
+ L: 'YYYY/MM/DD',
31
+ LL: 'YYYY年M月D日',
32
+ LLL: 'YYYY年M月D日 HH:mm',
33
+ LLLL: 'YYYY年M月D日dddd HH:mm',
34
+ l: 'YYYY/M/D',
35
+ ll: 'YYYY年M月D日',
36
+ lll: 'YYYY年M月D日 HH:mm',
37
+ llll: 'YYYY年M月D日dddd HH:mm',
38
+ },
39
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
40
+ meridiemHour: function (hour, meridiem) {
41
+ if (hour === 12) {
42
+ hour = 0;
43
+ }
44
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
45
+ return hour;
46
+ } else if (meridiem === '中午') {
47
+ return hour >= 11 ? hour : hour + 12;
48
+ } else if (meridiem === '下午' || meridiem === '晚上') {
49
+ return hour + 12;
50
+ }
51
+ },
52
+ meridiem: function (hour, minute, isLower) {
53
+ var hm = hour * 100 + minute;
54
+ if (hm < 600) {
55
+ return '凌晨';
56
+ } else if (hm < 900) {
57
+ return '早上';
58
+ } else if (hm < 1200) {
59
+ return '上午';
60
+ } else if (hm === 1200) {
61
+ return '中午';
62
+ } else if (hm < 1800) {
63
+ return '下午';
64
+ } else {
65
+ return '晚上';
66
+ }
67
+ },
68
+ calendar: {
69
+ sameDay: '[今天]LT',
70
+ nextDay: '[明天]LT',
71
+ nextWeek: '[下]ddddLT',
72
+ lastDay: '[昨天]LT',
73
+ lastWeek: '[上]ddddLT',
74
+ sameElse: 'L',
75
+ },
76
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
77
+ ordinal: function (number, period) {
78
+ switch (period) {
79
+ case 'd':
80
+ case 'D':
81
+ case 'DDD':
82
+ return number + '日';
83
+ case 'M':
84
+ return number + '月';
85
+ case 'w':
86
+ case 'W':
87
+ return number + '週';
88
+ default:
89
+ return number;
90
+ }
91
+ },
92
+ relativeTime: {
93
+ future: '%s後',
94
+ past: '%s前',
95
+ s: '幾秒',
96
+ ss: '%d 秒',
97
+ m: '1 分鐘',
98
+ mm: '%d 分鐘',
99
+ h: '1 小時',
100
+ hh: '%d 小時',
101
+ d: '1 天',
102
+ dd: '%d 天',
103
+ M: '1 個月',
104
+ MM: '%d 個月',
105
+ y: '1 年',
106
+ yy: '%d 年',
107
+ },
108
+ });
109
+
110
+ return zhHk;
111
+
112
+ })));
@@ -0,0 +1,111 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (Macau) [zh-mo]
3
+ //! author : Ben : https://github.com/ben-lin
4
+ //! author : Chris Lam : https://github.com/hehachris
5
+ //! author : Tan Yuanhong : https://github.com/le0tan
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 zhMo = moment.defineLocale('zh-mo', {
17
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
18
+ '_'
19
+ ),
20
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
21
+ '_'
22
+ ),
23
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
24
+ weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
25
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD/MM/YYYY',
30
+ LL: 'YYYY年M月D日',
31
+ LLL: 'YYYY年M月D日 HH:mm',
32
+ LLLL: 'YYYY年M月D日dddd HH:mm',
33
+ l: 'D/M/YYYY',
34
+ ll: 'YYYY年M月D日',
35
+ lll: 'YYYY年M月D日 HH:mm',
36
+ llll: 'YYYY年M月D日dddd HH:mm',
37
+ },
38
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
39
+ meridiemHour: function (hour, meridiem) {
40
+ if (hour === 12) {
41
+ hour = 0;
42
+ }
43
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
44
+ return hour;
45
+ } else if (meridiem === '中午') {
46
+ return hour >= 11 ? hour : hour + 12;
47
+ } else if (meridiem === '下午' || meridiem === '晚上') {
48
+ return hour + 12;
49
+ }
50
+ },
51
+ meridiem: function (hour, minute, isLower) {
52
+ var hm = hour * 100 + minute;
53
+ if (hm < 600) {
54
+ return '凌晨';
55
+ } else if (hm < 900) {
56
+ return '早上';
57
+ } else if (hm < 1130) {
58
+ return '上午';
59
+ } else if (hm < 1230) {
60
+ return '中午';
61
+ } else if (hm < 1800) {
62
+ return '下午';
63
+ } else {
64
+ return '晚上';
65
+ }
66
+ },
67
+ calendar: {
68
+ sameDay: '[今天] LT',
69
+ nextDay: '[明天] LT',
70
+ nextWeek: '[下]dddd LT',
71
+ lastDay: '[昨天] LT',
72
+ lastWeek: '[上]dddd LT',
73
+ sameElse: 'L',
74
+ },
75
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
76
+ ordinal: function (number, period) {
77
+ switch (period) {
78
+ case 'd':
79
+ case 'D':
80
+ case 'DDD':
81
+ return number + '日';
82
+ case 'M':
83
+ return number + '月';
84
+ case 'w':
85
+ case 'W':
86
+ return number + '週';
87
+ default:
88
+ return number;
89
+ }
90
+ },
91
+ relativeTime: {
92
+ future: '%s內',
93
+ past: '%s前',
94
+ s: '幾秒',
95
+ ss: '%d 秒',
96
+ m: '1 分鐘',
97
+ mm: '%d 分鐘',
98
+ h: '1 小時',
99
+ hh: '%d 小時',
100
+ d: '1 天',
101
+ dd: '%d 天',
102
+ M: '1 個月',
103
+ MM: '%d 個月',
104
+ y: '1 年',
105
+ yy: '%d 年',
106
+ },
107
+ });
108
+
109
+ return zhMo;
110
+
111
+ })));
@@ -0,0 +1,110 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (Taiwan) [zh-tw]
3
+ //! author : Ben : https://github.com/ben-lin
4
+ //! author : Chris Lam : https://github.com/hehachris
5
+
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';
12
+
13
+ //! moment.js locale configuration
14
+
15
+ var zhTw = moment.defineLocale('zh-tw', {
16
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
20
+ '_'
21
+ ),
22
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
23
+ weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
24
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'YYYY/MM/DD',
29
+ LL: 'YYYY年M月D日',
30
+ LLL: 'YYYY年M月D日 HH:mm',
31
+ LLLL: 'YYYY年M月D日dddd HH:mm',
32
+ l: 'YYYY/M/D',
33
+ ll: 'YYYY年M月D日',
34
+ lll: 'YYYY年M月D日 HH:mm',
35
+ llll: 'YYYY年M月D日dddd HH:mm',
36
+ },
37
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
38
+ meridiemHour: function (hour, meridiem) {
39
+ if (hour === 12) {
40
+ hour = 0;
41
+ }
42
+ if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
43
+ return hour;
44
+ } else if (meridiem === '中午') {
45
+ return hour >= 11 ? hour : hour + 12;
46
+ } else if (meridiem === '下午' || meridiem === '晚上') {
47
+ return hour + 12;
48
+ }
49
+ },
50
+ meridiem: function (hour, minute, isLower) {
51
+ var hm = hour * 100 + minute;
52
+ if (hm < 600) {
53
+ return '凌晨';
54
+ } else if (hm < 900) {
55
+ return '早上';
56
+ } else if (hm < 1130) {
57
+ return '上午';
58
+ } else if (hm < 1230) {
59
+ return '中午';
60
+ } else if (hm < 1800) {
61
+ return '下午';
62
+ } else {
63
+ return '晚上';
64
+ }
65
+ },
66
+ calendar: {
67
+ sameDay: '[今天] LT',
68
+ nextDay: '[明天] LT',
69
+ nextWeek: '[下]dddd LT',
70
+ lastDay: '[昨天] LT',
71
+ lastWeek: '[上]dddd LT',
72
+ sameElse: 'L',
73
+ },
74
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
75
+ ordinal: function (number, period) {
76
+ switch (period) {
77
+ case 'd':
78
+ case 'D':
79
+ case 'DDD':
80
+ return number + '日';
81
+ case 'M':
82
+ return number + '月';
83
+ case 'w':
84
+ case 'W':
85
+ return number + '週';
86
+ default:
87
+ return number;
88
+ }
89
+ },
90
+ relativeTime: {
91
+ future: '%s後',
92
+ past: '%s前',
93
+ s: '幾秒',
94
+ ss: '%d 秒',
95
+ m: '1 分鐘',
96
+ mm: '%d 分鐘',
97
+ h: '1 小時',
98
+ hh: '%d 小時',
99
+ d: '1 天',
100
+ dd: '%d 天',
101
+ M: '1 個月',
102
+ MM: '%d 個月',
103
+ y: '1 年',
104
+ yy: '%d 年',
105
+ },
106
+ });
107
+
108
+ return zhTw;
109
+
110
+ })));