@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/ky.js ADDED
@@ -0,0 +1,95 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Kyrgyz [ky]
3
+ //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
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 suffixes = {
15
+ 0: '-чү',
16
+ 1: '-чи',
17
+ 2: '-чи',
18
+ 3: '-чү',
19
+ 4: '-чү',
20
+ 5: '-чи',
21
+ 6: '-чы',
22
+ 7: '-чи',
23
+ 8: '-чи',
24
+ 9: '-чу',
25
+ 10: '-чу',
26
+ 20: '-чы',
27
+ 30: '-чу',
28
+ 40: '-чы',
29
+ 50: '-чү',
30
+ 60: '-чы',
31
+ 70: '-чи',
32
+ 80: '-чи',
33
+ 90: '-чу',
34
+ 100: '-чү',
35
+ };
36
+
37
+ var ky = moment.defineLocale('ky', {
38
+ months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
39
+ '_'
40
+ ),
41
+ monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
42
+ '_'
43
+ ),
44
+ weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
45
+ '_'
46
+ ),
47
+ weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
48
+ weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
49
+ longDateFormat: {
50
+ LT: 'HH:mm',
51
+ LTS: 'HH:mm:ss',
52
+ L: 'DD.MM.YYYY',
53
+ LL: 'D MMMM YYYY',
54
+ LLL: 'D MMMM YYYY HH:mm',
55
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
56
+ },
57
+ calendar: {
58
+ sameDay: '[Бүгүн саат] LT',
59
+ nextDay: '[Эртең саат] LT',
60
+ nextWeek: 'dddd [саат] LT',
61
+ lastDay: '[Кечээ саат] LT',
62
+ lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
63
+ sameElse: 'L',
64
+ },
65
+ relativeTime: {
66
+ future: '%s ичинде',
67
+ past: '%s мурун',
68
+ s: 'бирнече секунд',
69
+ ss: '%d секунд',
70
+ m: 'бир мүнөт',
71
+ mm: '%d мүнөт',
72
+ h: 'бир саат',
73
+ hh: '%d саат',
74
+ d: 'бир күн',
75
+ dd: '%d күн',
76
+ M: 'бир ай',
77
+ MM: '%d ай',
78
+ y: 'бир жыл',
79
+ yy: '%d жыл',
80
+ },
81
+ dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
82
+ ordinal: function (number) {
83
+ var a = number % 10,
84
+ b = number >= 100 ? 100 : null;
85
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
86
+ },
87
+ week: {
88
+ dow: 1, // Monday is the first day of the week.
89
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
90
+ },
91
+ });
92
+
93
+ return ky;
94
+
95
+ })));
package/locale/lb.js ADDED
@@ -0,0 +1,148 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Luxembourgish [lb]
3
+ //! author : mweimerskirch : https://github.com/mweimerskirch
4
+ //! author : David Raison : https://github.com/kwisatz
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
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
+ var format = {
17
+ m: ['eng Minutt', 'enger Minutt'],
18
+ h: ['eng Stonn', 'enger Stonn'],
19
+ d: ['een Dag', 'engem Dag'],
20
+ M: ['ee Mount', 'engem Mount'],
21
+ y: ['ee Joer', 'engem Joer'],
22
+ };
23
+ return withoutSuffix ? format[key][0] : format[key][1];
24
+ }
25
+ function processFutureTime(string) {
26
+ var number = string.substr(0, string.indexOf(' '));
27
+ if (eifelerRegelAppliesToNumber(number)) {
28
+ return 'a ' + string;
29
+ }
30
+ return 'an ' + string;
31
+ }
32
+ function processPastTime(string) {
33
+ var number = string.substr(0, string.indexOf(' '));
34
+ if (eifelerRegelAppliesToNumber(number)) {
35
+ return 'viru ' + string;
36
+ }
37
+ return 'virun ' + string;
38
+ }
39
+ /**
40
+ * Returns true if the word before the given number loses the '-n' ending.
41
+ * e.g. 'an 10 Deeg' but 'a 5 Deeg'
42
+ *
43
+ * @param number {integer}
44
+ * @returns {boolean}
45
+ */
46
+ function eifelerRegelAppliesToNumber(number) {
47
+ number = parseInt(number, 10);
48
+ if (isNaN(number)) {
49
+ return false;
50
+ }
51
+ if (number < 0) {
52
+ // Negative Number --> always true
53
+ return true;
54
+ } else if (number < 10) {
55
+ // Only 1 digit
56
+ if (4 <= number && number <= 7) {
57
+ return true;
58
+ }
59
+ return false;
60
+ } else if (number < 100) {
61
+ // 2 digits
62
+ var lastDigit = number % 10,
63
+ firstDigit = number / 10;
64
+ if (lastDigit === 0) {
65
+ return eifelerRegelAppliesToNumber(firstDigit);
66
+ }
67
+ return eifelerRegelAppliesToNumber(lastDigit);
68
+ } else if (number < 10000) {
69
+ // 3 or 4 digits --> recursively check first digit
70
+ while (number >= 10) {
71
+ number = number / 10;
72
+ }
73
+ return eifelerRegelAppliesToNumber(number);
74
+ } else {
75
+ // Anything larger than 4 digits: recursively check first n-3 digits
76
+ number = number / 1000;
77
+ return eifelerRegelAppliesToNumber(number);
78
+ }
79
+ }
80
+
81
+ var lb = moment.defineLocale('lb', {
82
+ months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
83
+ '_'
84
+ ),
85
+ monthsShort:
86
+ 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
87
+ '_'
88
+ ),
89
+ monthsParseExact: true,
90
+ weekdays:
91
+ 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
92
+ '_'
93
+ ),
94
+ weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
95
+ weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
96
+ weekdaysParseExact: true,
97
+ longDateFormat: {
98
+ LT: 'H:mm [Auer]',
99
+ LTS: 'H:mm:ss [Auer]',
100
+ L: 'DD.MM.YYYY',
101
+ LL: 'D. MMMM YYYY',
102
+ LLL: 'D. MMMM YYYY H:mm [Auer]',
103
+ LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
104
+ },
105
+ calendar: {
106
+ sameDay: '[Haut um] LT',
107
+ sameElse: 'L',
108
+ nextDay: '[Muer um] LT',
109
+ nextWeek: 'dddd [um] LT',
110
+ lastDay: '[Gëschter um] LT',
111
+ lastWeek: function () {
112
+ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
113
+ switch (this.day()) {
114
+ case 2:
115
+ case 4:
116
+ return '[Leschten] dddd [um] LT';
117
+ default:
118
+ return '[Leschte] dddd [um] LT';
119
+ }
120
+ },
121
+ },
122
+ relativeTime: {
123
+ future: processFutureTime,
124
+ past: processPastTime,
125
+ s: 'e puer Sekonnen',
126
+ ss: '%d Sekonnen',
127
+ m: processRelativeTime,
128
+ mm: '%d Minutten',
129
+ h: processRelativeTime,
130
+ hh: '%d Stonnen',
131
+ d: processRelativeTime,
132
+ dd: '%d Deeg',
133
+ M: processRelativeTime,
134
+ MM: '%d Méint',
135
+ y: processRelativeTime,
136
+ yy: '%d Joer',
137
+ },
138
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
139
+ ordinal: '%d.',
140
+ week: {
141
+ dow: 1, // Monday is the first day of the week.
142
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
143
+ },
144
+ });
145
+
146
+ return lb;
147
+
148
+ })));
package/locale/lo.js ADDED
@@ -0,0 +1,77 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Lao [lo]
3
+ //! author : Ryan Hart : https://github.com/ryanhart2
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 lo = moment.defineLocale('lo', {
15
+ months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
16
+ '_'
17
+ ),
18
+ monthsShort:
19
+ 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
20
+ '_'
21
+ ),
22
+ weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
23
+ weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
24
+ weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.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 HH:mm',
32
+ LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
33
+ },
34
+ meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
35
+ isPM: function (input) {
36
+ return input === 'ຕອນແລງ';
37
+ },
38
+ meridiem: function (hour, minute, isLower) {
39
+ if (hour < 12) {
40
+ return 'ຕອນເຊົ້າ';
41
+ } else {
42
+ return 'ຕອນແລງ';
43
+ }
44
+ },
45
+ calendar: {
46
+ sameDay: '[ມື້ນີ້ເວລາ] LT',
47
+ nextDay: '[ມື້ອື່ນເວລາ] LT',
48
+ nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
49
+ lastDay: '[ມື້ວານນີ້ເວລາ] LT',
50
+ lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
51
+ sameElse: 'L',
52
+ },
53
+ relativeTime: {
54
+ future: 'ອີກ %s',
55
+ past: '%sຜ່ານມາ',
56
+ s: 'ບໍ່ເທົ່າໃດວິນາທີ',
57
+ ss: '%d ວິນາທີ',
58
+ m: '1 ນາທີ',
59
+ mm: '%d ນາທີ',
60
+ h: '1 ຊົ່ວໂມງ',
61
+ hh: '%d ຊົ່ວໂມງ',
62
+ d: '1 ມື້',
63
+ dd: '%d ມື້',
64
+ M: '1 ເດືອນ',
65
+ MM: '%d ເດືອນ',
66
+ y: '1 ປີ',
67
+ yy: '%d ປີ',
68
+ },
69
+ dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
70
+ ordinal: function (number) {
71
+ return 'ທີ່' + number;
72
+ },
73
+ });
74
+
75
+ return lo;
76
+
77
+ })));
package/locale/lt.js ADDED
@@ -0,0 +1,136 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Lithuanian [lt]
3
+ //! author : Mindaugas Mozūras : https://github.com/mmozuras
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 units = {
15
+ ss: 'sekundė_sekundžių_sekundes',
16
+ m: 'minutė_minutės_minutę',
17
+ mm: 'minutės_minučių_minutes',
18
+ h: 'valanda_valandos_valandą',
19
+ hh: 'valandos_valandų_valandas',
20
+ d: 'diena_dienos_dieną',
21
+ dd: 'dienos_dienų_dienas',
22
+ M: 'mėnuo_mėnesio_mėnesį',
23
+ MM: 'mėnesiai_mėnesių_mėnesius',
24
+ y: 'metai_metų_metus',
25
+ yy: 'metai_metų_metus',
26
+ };
27
+ function translateSeconds(number, withoutSuffix, key, isFuture) {
28
+ if (withoutSuffix) {
29
+ return 'kelios sekundės';
30
+ } else {
31
+ return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
32
+ }
33
+ }
34
+ function translateSingular(number, withoutSuffix, key, isFuture) {
35
+ return withoutSuffix
36
+ ? forms(key)[0]
37
+ : isFuture
38
+ ? forms(key)[1]
39
+ : forms(key)[2];
40
+ }
41
+ function special(number) {
42
+ return number % 10 === 0 || (number > 10 && number < 20);
43
+ }
44
+ function forms(key) {
45
+ return units[key].split('_');
46
+ }
47
+ function translate(number, withoutSuffix, key, isFuture) {
48
+ var result = number + ' ';
49
+ if (number === 1) {
50
+ return (
51
+ result + translateSingular(number, withoutSuffix, key[0], isFuture)
52
+ );
53
+ } else if (withoutSuffix) {
54
+ return result + (special(number) ? forms(key)[1] : forms(key)[0]);
55
+ } else {
56
+ if (isFuture) {
57
+ return result + forms(key)[1];
58
+ } else {
59
+ return result + (special(number) ? forms(key)[1] : forms(key)[2]);
60
+ }
61
+ }
62
+ }
63
+ var lt = moment.defineLocale('lt', {
64
+ months: {
65
+ format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
66
+ '_'
67
+ ),
68
+ standalone:
69
+ 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
70
+ '_'
71
+ ),
72
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
73
+ },
74
+ monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
75
+ weekdays: {
76
+ format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
77
+ '_'
78
+ ),
79
+ standalone:
80
+ 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
81
+ '_'
82
+ ),
83
+ isFormat: /dddd HH:mm/,
84
+ },
85
+ weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
86
+ weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
87
+ weekdaysParseExact: true,
88
+ longDateFormat: {
89
+ LT: 'HH:mm',
90
+ LTS: 'HH:mm:ss',
91
+ L: 'YYYY-MM-DD',
92
+ LL: 'YYYY [m.] MMMM D [d.]',
93
+ LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
94
+ LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
95
+ l: 'YYYY-MM-DD',
96
+ ll: 'YYYY [m.] MMMM D [d.]',
97
+ lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
98
+ llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
99
+ },
100
+ calendar: {
101
+ sameDay: '[Šiandien] LT',
102
+ nextDay: '[Rytoj] LT',
103
+ nextWeek: 'dddd LT',
104
+ lastDay: '[Vakar] LT',
105
+ lastWeek: '[Praėjusį] dddd LT',
106
+ sameElse: 'L',
107
+ },
108
+ relativeTime: {
109
+ future: 'po %s',
110
+ past: 'prieš %s',
111
+ s: translateSeconds,
112
+ ss: translate,
113
+ m: translateSingular,
114
+ mm: translate,
115
+ h: translateSingular,
116
+ hh: translate,
117
+ d: translateSingular,
118
+ dd: translate,
119
+ M: translateSingular,
120
+ MM: translate,
121
+ y: translateSingular,
122
+ yy: translate,
123
+ },
124
+ dayOfMonthOrdinalParse: /\d{1,2}-oji/,
125
+ ordinal: function (number) {
126
+ return number + '-oji';
127
+ },
128
+ week: {
129
+ dow: 1, // Monday is the first day of the week.
130
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
131
+ },
132
+ });
133
+
134
+ return lt;
135
+
136
+ })));
package/locale/lv.js ADDED
@@ -0,0 +1,105 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Latvian [lv]
3
+ //! author : Kristaps Karlsons : https://github.com/skakri
4
+ //! author : Jānis Elmeris : https://github.com/JanisE
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 units = {
16
+ ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
17
+ m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
18
+ mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
19
+ h: 'stundas_stundām_stunda_stundas'.split('_'),
20
+ hh: 'stundas_stundām_stunda_stundas'.split('_'),
21
+ d: 'dienas_dienām_diena_dienas'.split('_'),
22
+ dd: 'dienas_dienām_diena_dienas'.split('_'),
23
+ M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
24
+ MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
25
+ y: 'gada_gadiem_gads_gadi'.split('_'),
26
+ yy: 'gada_gadiem_gads_gadi'.split('_'),
27
+ };
28
+ /**
29
+ * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
30
+ */
31
+ function format(forms, number, withoutSuffix) {
32
+ if (withoutSuffix) {
33
+ // E.g. "21 minūte", "3 minūtes".
34
+ return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
35
+ } else {
36
+ // E.g. "21 minūtes" as in "pēc 21 minūtes".
37
+ // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
38
+ return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
39
+ }
40
+ }
41
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
42
+ return number + ' ' + format(units[key], number, withoutSuffix);
43
+ }
44
+ function relativeTimeWithSingular(number, withoutSuffix, key) {
45
+ return format(units[key], number, withoutSuffix);
46
+ }
47
+ function relativeSeconds(number, withoutSuffix) {
48
+ return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
49
+ }
50
+
51
+ var lv = moment.defineLocale('lv', {
52
+ months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
53
+ '_'
54
+ ),
55
+ monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
56
+ weekdays:
57
+ 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
58
+ '_'
59
+ ),
60
+ weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
61
+ weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
62
+ weekdaysParseExact: true,
63
+ longDateFormat: {
64
+ LT: 'HH:mm',
65
+ LTS: 'HH:mm:ss',
66
+ L: 'DD.MM.YYYY.',
67
+ LL: 'YYYY. [gada] D. MMMM',
68
+ LLL: 'YYYY. [gada] D. MMMM, HH:mm',
69
+ LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
70
+ },
71
+ calendar: {
72
+ sameDay: '[Šodien pulksten] LT',
73
+ nextDay: '[Rīt pulksten] LT',
74
+ nextWeek: 'dddd [pulksten] LT',
75
+ lastDay: '[Vakar pulksten] LT',
76
+ lastWeek: '[Pagājušā] dddd [pulksten] LT',
77
+ sameElse: 'L',
78
+ },
79
+ relativeTime: {
80
+ future: 'pēc %s',
81
+ past: 'pirms %s',
82
+ s: relativeSeconds,
83
+ ss: relativeTimeWithPlural,
84
+ m: relativeTimeWithSingular,
85
+ mm: relativeTimeWithPlural,
86
+ h: relativeTimeWithSingular,
87
+ hh: relativeTimeWithPlural,
88
+ d: relativeTimeWithSingular,
89
+ dd: relativeTimeWithPlural,
90
+ M: relativeTimeWithSingular,
91
+ MM: relativeTimeWithPlural,
92
+ y: relativeTimeWithSingular,
93
+ yy: relativeTimeWithPlural,
94
+ },
95
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
96
+ ordinal: '%d.',
97
+ week: {
98
+ dow: 1, // Monday is the first day of the week.
99
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
100
+ },
101
+ });
102
+
103
+ return lv;
104
+
105
+ })));
package/locale/me.js ADDED
@@ -0,0 +1,128 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Montenegrin [me]
3
+ //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
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 translator = {
15
+ words: {
16
+ //Different grammatical cases
17
+ ss: ['sekund', 'sekunda', 'sekundi'],
18
+ m: ['jedan minut', 'jednog minuta'],
19
+ mm: ['minut', 'minuta', 'minuta'],
20
+ h: ['jedan sat', 'jednog sata'],
21
+ hh: ['sat', 'sata', 'sati'],
22
+ dd: ['dan', 'dana', 'dana'],
23
+ MM: ['mjesec', 'mjeseca', 'mjeseci'],
24
+ yy: ['godina', 'godine', 'godina'],
25
+ },
26
+ correctGrammaticalCase: function (number, wordKey) {
27
+ return number === 1
28
+ ? wordKey[0]
29
+ : number >= 2 && number <= 4
30
+ ? wordKey[1]
31
+ : wordKey[2];
32
+ },
33
+ translate: function (number, withoutSuffix, key) {
34
+ var wordKey = translator.words[key];
35
+ if (key.length === 1) {
36
+ return withoutSuffix ? wordKey[0] : wordKey[1];
37
+ } else {
38
+ return (
39
+ number +
40
+ ' ' +
41
+ translator.correctGrammaticalCase(number, wordKey)
42
+ );
43
+ }
44
+ },
45
+ };
46
+
47
+ var me = moment.defineLocale('me', {
48
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
49
+ '_'
50
+ ),
51
+ monthsShort:
52
+ 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
53
+ monthsParseExact: true,
54
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
55
+ '_'
56
+ ),
57
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
58
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
59
+ weekdaysParseExact: true,
60
+ longDateFormat: {
61
+ LT: 'H:mm',
62
+ LTS: 'H:mm:ss',
63
+ L: 'DD.MM.YYYY',
64
+ LL: 'D. MMMM YYYY',
65
+ LLL: 'D. MMMM YYYY H:mm',
66
+ LLLL: 'dddd, D. MMMM YYYY H:mm',
67
+ },
68
+ calendar: {
69
+ sameDay: '[danas u] LT',
70
+ nextDay: '[sjutra u] LT',
71
+
72
+ nextWeek: function () {
73
+ switch (this.day()) {
74
+ case 0:
75
+ return '[u] [nedjelju] [u] LT';
76
+ case 3:
77
+ return '[u] [srijedu] [u] LT';
78
+ case 6:
79
+ return '[u] [subotu] [u] LT';
80
+ case 1:
81
+ case 2:
82
+ case 4:
83
+ case 5:
84
+ return '[u] dddd [u] LT';
85
+ }
86
+ },
87
+ lastDay: '[juče u] LT',
88
+ lastWeek: function () {
89
+ var lastWeekDays = [
90
+ '[prošle] [nedjelje] [u] LT',
91
+ '[prošlog] [ponedjeljka] [u] LT',
92
+ '[prošlog] [utorka] [u] LT',
93
+ '[prošle] [srijede] [u] LT',
94
+ '[prošlog] [četvrtka] [u] LT',
95
+ '[prošlog] [petka] [u] LT',
96
+ '[prošle] [subote] [u] LT',
97
+ ];
98
+ return lastWeekDays[this.day()];
99
+ },
100
+ sameElse: 'L',
101
+ },
102
+ relativeTime: {
103
+ future: 'za %s',
104
+ past: 'prije %s',
105
+ s: 'nekoliko sekundi',
106
+ ss: translator.translate,
107
+ m: translator.translate,
108
+ mm: translator.translate,
109
+ h: translator.translate,
110
+ hh: translator.translate,
111
+ d: 'dan',
112
+ dd: translator.translate,
113
+ M: 'mjesec',
114
+ MM: translator.translate,
115
+ y: 'godinu',
116
+ yy: translator.translate,
117
+ },
118
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
119
+ ordinal: '%d.',
120
+ week: {
121
+ dow: 1, // Monday is the first day of the week.
122
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
123
+ },
124
+ });
125
+
126
+ return me;
127
+
128
+ })));