@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
package/locale/nn.js ADDED
@@ -0,0 +1,70 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Nynorsk [nn]
3
+ //! authors : https://github.com/mechuwind
4
+ //! Stephen Ramthun : https://github.com/stephenramthun
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 nn = moment.defineLocale('nn', {
16
+ months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
17
+ '_'
18
+ ),
19
+ monthsShort:
20
+ 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
21
+ monthsParseExact: true,
22
+ weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
23
+ weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
24
+ weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
25
+ weekdaysParseExact: true,
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD.MM.YYYY',
30
+ LL: 'D. MMMM YYYY',
31
+ LLL: 'D. MMMM YYYY [kl.] H:mm',
32
+ LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
33
+ },
34
+ calendar: {
35
+ sameDay: '[I dag klokka] LT',
36
+ nextDay: '[I morgon klokka] LT',
37
+ nextWeek: 'dddd [klokka] LT',
38
+ lastDay: '[I går klokka] LT',
39
+ lastWeek: '[Føregåande] dddd [klokka] LT',
40
+ sameElse: 'L',
41
+ },
42
+ relativeTime: {
43
+ future: 'om %s',
44
+ past: '%s sidan',
45
+ s: 'nokre sekund',
46
+ ss: '%d sekund',
47
+ m: 'eit minutt',
48
+ mm: '%d minutt',
49
+ h: 'ein time',
50
+ hh: '%d timar',
51
+ d: 'ein dag',
52
+ dd: '%d dagar',
53
+ w: 'ei veke',
54
+ ww: '%d veker',
55
+ M: 'ein månad',
56
+ MM: '%d månader',
57
+ y: 'eit år',
58
+ yy: '%d år',
59
+ },
60
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
61
+ ordinal: '%d.',
62
+ week: {
63
+ dow: 1, // Monday is the first day of the week.
64
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
65
+ },
66
+ });
67
+
68
+ return nn;
69
+
70
+ })));
@@ -0,0 +1,96 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Occitan, lengadocian dialecte [oc-lnc]
3
+ //! author : Quentin PAGÈS : https://github.com/Quenty31
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 ocLnc = moment.defineLocale('oc-lnc', {
15
+ months: {
16
+ standalone:
17
+ 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
18
+ '_'
19
+ ),
20
+ format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
21
+ '_'
22
+ ),
23
+ isFormat: /D[oD]?(\s)+MMMM/,
24
+ },
25
+ monthsShort:
26
+ 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
27
+ '_'
28
+ ),
29
+ monthsParseExact: true,
30
+ weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
31
+ '_'
32
+ ),
33
+ weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
34
+ weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
35
+ weekdaysParseExact: true,
36
+ longDateFormat: {
37
+ LT: 'H:mm',
38
+ LTS: 'H:mm:ss',
39
+ L: 'DD/MM/YYYY',
40
+ LL: 'D MMMM [de] YYYY',
41
+ ll: 'D MMM YYYY',
42
+ LLL: 'D MMMM [de] YYYY [a] H:mm',
43
+ lll: 'D MMM YYYY, H:mm',
44
+ LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
45
+ llll: 'ddd D MMM YYYY, H:mm',
46
+ },
47
+ calendar: {
48
+ sameDay: '[uèi a] LT',
49
+ nextDay: '[deman a] LT',
50
+ nextWeek: 'dddd [a] LT',
51
+ lastDay: '[ièr a] LT',
52
+ lastWeek: 'dddd [passat a] LT',
53
+ sameElse: 'L',
54
+ },
55
+ relativeTime: {
56
+ future: "d'aquí %s",
57
+ past: 'fa %s',
58
+ s: 'unas segondas',
59
+ ss: '%d segondas',
60
+ m: 'una minuta',
61
+ mm: '%d minutas',
62
+ h: 'una ora',
63
+ hh: '%d oras',
64
+ d: 'un jorn',
65
+ dd: '%d jorns',
66
+ M: 'un mes',
67
+ MM: '%d meses',
68
+ y: 'un an',
69
+ yy: '%d ans',
70
+ },
71
+ dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
72
+ ordinal: function (number, period) {
73
+ var output =
74
+ number === 1
75
+ ? 'r'
76
+ : number === 2
77
+ ? 'n'
78
+ : number === 3
79
+ ? 'r'
80
+ : number === 4
81
+ ? 't'
82
+ : 'è';
83
+ if (period === 'w' || period === 'W') {
84
+ output = 'a';
85
+ }
86
+ return number + output;
87
+ },
88
+ week: {
89
+ dow: 1, // Monday is the first day of the week.
90
+ doy: 4,
91
+ },
92
+ });
93
+
94
+ return ocLnc;
95
+
96
+ })));
@@ -0,0 +1,133 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Punjabi (India) [pa-in]
3
+ //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
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 paIn = moment.defineLocale('pa-in', {
40
+ // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
41
+ months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
42
+ '_'
43
+ ),
44
+ monthsShort:
45
+ 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
46
+ '_'
47
+ ),
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
+ // Punjabi 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 Punjabi.
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 paIn;
132
+
133
+ })));
package/locale/pl.js ADDED
@@ -0,0 +1,151 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Polish [pl]
3
+ //! author : Rafal Hirsz : https://github.com/evoL
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 monthsNominative =
15
+ 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
16
+ '_'
17
+ ),
18
+ monthsSubjective =
19
+ 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
20
+ '_'
21
+ ),
22
+ monthsParse = [
23
+ /^sty/i,
24
+ /^lut/i,
25
+ /^mar/i,
26
+ /^kwi/i,
27
+ /^maj/i,
28
+ /^cze/i,
29
+ /^lip/i,
30
+ /^sie/i,
31
+ /^wrz/i,
32
+ /^paź/i,
33
+ /^lis/i,
34
+ /^gru/i,
35
+ ];
36
+ function plural(n) {
37
+ return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
38
+ }
39
+ function translate(number, withoutSuffix, key) {
40
+ var result = number + ' ';
41
+ switch (key) {
42
+ case 'ss':
43
+ return result + (plural(number) ? 'sekundy' : 'sekund');
44
+ case 'm':
45
+ return withoutSuffix ? 'minuta' : 'minutę';
46
+ case 'mm':
47
+ return result + (plural(number) ? 'minuty' : 'minut');
48
+ case 'h':
49
+ return withoutSuffix ? 'godzina' : 'godzinę';
50
+ case 'hh':
51
+ return result + (plural(number) ? 'godziny' : 'godzin');
52
+ case 'ww':
53
+ return result + (plural(number) ? 'tygodnie' : 'tygodni');
54
+ case 'MM':
55
+ return result + (plural(number) ? 'miesiące' : 'miesięcy');
56
+ case 'yy':
57
+ return result + (plural(number) ? 'lata' : 'lat');
58
+ }
59
+ }
60
+
61
+ var pl = moment.defineLocale('pl', {
62
+ months: function (momentToFormat, format) {
63
+ if (!momentToFormat) {
64
+ return monthsNominative;
65
+ } else if (/D MMMM/.test(format)) {
66
+ return monthsSubjective[momentToFormat.month()];
67
+ } else {
68
+ return monthsNominative[momentToFormat.month()];
69
+ }
70
+ },
71
+ monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
72
+ monthsParse: monthsParse,
73
+ longMonthsParse: monthsParse,
74
+ shortMonthsParse: monthsParse,
75
+ weekdays:
76
+ 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
77
+ weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
78
+ weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
79
+ longDateFormat: {
80
+ LT: 'HH:mm',
81
+ LTS: 'HH:mm:ss',
82
+ L: 'DD.MM.YYYY',
83
+ LL: 'D MMMM YYYY',
84
+ LLL: 'D MMMM YYYY HH:mm',
85
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
86
+ },
87
+ calendar: {
88
+ sameDay: '[Dziś o] LT',
89
+ nextDay: '[Jutro o] LT',
90
+ nextWeek: function () {
91
+ switch (this.day()) {
92
+ case 0:
93
+ return '[W niedzielę o] LT';
94
+
95
+ case 2:
96
+ return '[We wtorek o] LT';
97
+
98
+ case 3:
99
+ return '[W środę o] LT';
100
+
101
+ case 6:
102
+ return '[W sobotę o] LT';
103
+
104
+ default:
105
+ return '[W] dddd [o] LT';
106
+ }
107
+ },
108
+ lastDay: '[Wczoraj o] LT',
109
+ lastWeek: function () {
110
+ switch (this.day()) {
111
+ case 0:
112
+ return '[W zeszłą niedzielę o] LT';
113
+ case 3:
114
+ return '[W zeszłą środę o] LT';
115
+ case 6:
116
+ return '[W zeszłą sobotę o] LT';
117
+ default:
118
+ return '[W zeszły] dddd [o] LT';
119
+ }
120
+ },
121
+ sameElse: 'L',
122
+ },
123
+ relativeTime: {
124
+ future: 'za %s',
125
+ past: '%s temu',
126
+ s: 'kilka sekund',
127
+ ss: translate,
128
+ m: translate,
129
+ mm: translate,
130
+ h: translate,
131
+ hh: translate,
132
+ d: '1 dzień',
133
+ dd: '%d dni',
134
+ w: 'tydzień',
135
+ ww: translate,
136
+ M: 'miesiąc',
137
+ MM: translate,
138
+ y: 'rok',
139
+ yy: translate,
140
+ },
141
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
142
+ ordinal: '%d.',
143
+ week: {
144
+ dow: 1, // Monday is the first day of the week.
145
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
146
+ },
147
+ });
148
+
149
+ return pl;
150
+
151
+ })));
@@ -0,0 +1,69 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Portuguese (Brazil) [pt-br]
3
+ //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
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 ptBr = moment.defineLocale('pt-br', {
15
+ months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
19
+ weekdays:
20
+ 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
24
+ weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
25
+ weekdaysParseExact: true,
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD/MM/YYYY',
30
+ LL: 'D [de] MMMM [de] YYYY',
31
+ LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
32
+ LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
33
+ },
34
+ calendar: {
35
+ sameDay: '[Hoje às] LT',
36
+ nextDay: '[Amanhã às] LT',
37
+ nextWeek: 'dddd [às] LT',
38
+ lastDay: '[Ontem às] LT',
39
+ lastWeek: function () {
40
+ return this.day() === 0 || this.day() === 6
41
+ ? '[Último] dddd [às] LT' // Saturday + Sunday
42
+ : '[Última] dddd [às] LT'; // Monday - Friday
43
+ },
44
+ sameElse: 'L',
45
+ },
46
+ relativeTime: {
47
+ future: 'em %s',
48
+ past: 'há %s',
49
+ s: 'poucos segundos',
50
+ ss: '%d segundos',
51
+ m: 'um minuto',
52
+ mm: '%d minutos',
53
+ h: 'uma hora',
54
+ hh: '%d horas',
55
+ d: 'um dia',
56
+ dd: '%d dias',
57
+ M: 'um mês',
58
+ MM: '%d meses',
59
+ y: 'um ano',
60
+ yy: '%d anos',
61
+ },
62
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
63
+ ordinal: '%dº',
64
+ invalidDate: 'Data inválida',
65
+ });
66
+
67
+ return ptBr;
68
+
69
+ })));
package/locale/pt.js ADDED
@@ -0,0 +1,74 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Portuguese [pt]
3
+ //! author : Jefferson : https://github.com/jalex79
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 pt = moment.defineLocale('pt', {
15
+ months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
19
+ weekdays:
20
+ 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
24
+ weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
25
+ weekdaysParseExact: true,
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD/MM/YYYY',
30
+ LL: 'D [de] MMMM [de] YYYY',
31
+ LLL: 'D [de] MMMM [de] YYYY HH:mm',
32
+ LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
33
+ },
34
+ calendar: {
35
+ sameDay: '[Hoje às] LT',
36
+ nextDay: '[Amanhã às] LT',
37
+ nextWeek: 'dddd [às] LT',
38
+ lastDay: '[Ontem às] LT',
39
+ lastWeek: function () {
40
+ return this.day() === 0 || this.day() === 6
41
+ ? '[Último] dddd [às] LT' // Saturday + Sunday
42
+ : '[Última] dddd [às] LT'; // Monday - Friday
43
+ },
44
+ sameElse: 'L',
45
+ },
46
+ relativeTime: {
47
+ future: 'em %s',
48
+ past: 'há %s',
49
+ s: 'segundos',
50
+ ss: '%d segundos',
51
+ m: 'um minuto',
52
+ mm: '%d minutos',
53
+ h: 'uma hora',
54
+ hh: '%d horas',
55
+ d: 'um dia',
56
+ dd: '%d dias',
57
+ w: 'uma semana',
58
+ ww: '%d semanas',
59
+ M: 'um mês',
60
+ MM: '%d meses',
61
+ y: 'um ano',
62
+ yy: '%d anos',
63
+ },
64
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
65
+ ordinal: '%dº',
66
+ week: {
67
+ dow: 1, // Monday is the first day of the week.
68
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
69
+ },
70
+ });
71
+
72
+ return pt;
73
+
74
+ })));
package/locale/ro.js ADDED
@@ -0,0 +1,87 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Romanian [ro]
3
+ //! author : Vlad Gurdiga : https://github.com/gurdiga
4
+ //! author : Valentin Agachi : https://github.com/avaly
5
+ //! author : Emanuel Cepoi : https://github.com/cepem
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
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
17
+ var format = {
18
+ ss: 'secunde',
19
+ mm: 'minute',
20
+ hh: 'ore',
21
+ dd: 'zile',
22
+ ww: 'săptămâni',
23
+ MM: 'luni',
24
+ yy: 'ani',
25
+ },
26
+ separator = ' ';
27
+ if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
28
+ separator = ' de ';
29
+ }
30
+ return number + separator + format[key];
31
+ }
32
+
33
+ var ro = moment.defineLocale('ro', {
34
+ months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
35
+ '_'
36
+ ),
37
+ monthsShort:
38
+ 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
39
+ '_'
40
+ ),
41
+ monthsParseExact: true,
42
+ weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
43
+ weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
44
+ weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
45
+ longDateFormat: {
46
+ LT: 'H:mm',
47
+ LTS: 'H:mm:ss',
48
+ L: 'DD.MM.YYYY',
49
+ LL: 'D MMMM YYYY',
50
+ LLL: 'D MMMM YYYY H:mm',
51
+ LLLL: 'dddd, D MMMM YYYY H:mm',
52
+ },
53
+ calendar: {
54
+ sameDay: '[azi la] LT',
55
+ nextDay: '[mâine la] LT',
56
+ nextWeek: 'dddd [la] LT',
57
+ lastDay: '[ieri la] LT',
58
+ lastWeek: '[fosta] dddd [la] LT',
59
+ sameElse: 'L',
60
+ },
61
+ relativeTime: {
62
+ future: 'peste %s',
63
+ past: '%s în urmă',
64
+ s: 'câteva secunde',
65
+ ss: relativeTimeWithPlural,
66
+ m: 'un minut',
67
+ mm: relativeTimeWithPlural,
68
+ h: 'o oră',
69
+ hh: relativeTimeWithPlural,
70
+ d: 'o zi',
71
+ dd: relativeTimeWithPlural,
72
+ w: 'o săptămână',
73
+ ww: relativeTimeWithPlural,
74
+ M: 'o lună',
75
+ MM: relativeTimeWithPlural,
76
+ y: 'un an',
77
+ yy: relativeTimeWithPlural,
78
+ },
79
+ week: {
80
+ dow: 1, // Monday is the first day of the week.
81
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
82
+ },
83
+ });
84
+
85
+ return ro;
86
+
87
+ })));