@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,98 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Welsh [cy]
3
+ //! author : Robert Allen : https://github.com/robgallen
4
+ //! author : https://github.com/ryangreaves
5
+
6
+ import moment from '../moment';
7
+
8
+ export default moment.defineLocale('cy', {
9
+ months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
10
+ '_'
11
+ ),
12
+ monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
13
+ '_'
14
+ ),
15
+ weekdays:
16
+ 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
17
+ '_'
18
+ ),
19
+ weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
20
+ weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
21
+ weekdaysParseExact: true,
22
+ // time formats are the same as en-gb
23
+ longDateFormat: {
24
+ LT: 'HH:mm',
25
+ LTS: 'HH:mm:ss',
26
+ L: 'DD/MM/YYYY',
27
+ LL: 'D MMMM YYYY',
28
+ LLL: 'D MMMM YYYY HH:mm',
29
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
30
+ },
31
+ calendar: {
32
+ sameDay: '[Heddiw am] LT',
33
+ nextDay: '[Yfory am] LT',
34
+ nextWeek: 'dddd [am] LT',
35
+ lastDay: '[Ddoe am] LT',
36
+ lastWeek: 'dddd [diwethaf am] LT',
37
+ sameElse: 'L',
38
+ },
39
+ relativeTime: {
40
+ future: 'mewn %s',
41
+ past: '%s yn ôl',
42
+ s: 'ychydig eiliadau',
43
+ ss: '%d eiliad',
44
+ m: 'munud',
45
+ mm: '%d munud',
46
+ h: 'awr',
47
+ hh: '%d awr',
48
+ d: 'diwrnod',
49
+ dd: '%d diwrnod',
50
+ M: 'mis',
51
+ MM: '%d mis',
52
+ y: 'blwyddyn',
53
+ yy: '%d flynedd',
54
+ },
55
+ dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
56
+ // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
57
+ ordinal: function (number) {
58
+ var b = number,
59
+ output = '',
60
+ lookup = [
61
+ '',
62
+ 'af',
63
+ 'il',
64
+ 'ydd',
65
+ 'ydd',
66
+ 'ed',
67
+ 'ed',
68
+ 'ed',
69
+ 'fed',
70
+ 'fed',
71
+ 'fed', // 1af to 10fed
72
+ 'eg',
73
+ 'fed',
74
+ 'eg',
75
+ 'eg',
76
+ 'fed',
77
+ 'eg',
78
+ 'eg',
79
+ 'fed',
80
+ 'eg',
81
+ 'fed', // 11eg to 20fed
82
+ ];
83
+ if (b > 20) {
84
+ if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
85
+ output = 'fed'; // not 30ain, 70ain or 90ain
86
+ } else {
87
+ output = 'ain';
88
+ }
89
+ } else if (b > 0) {
90
+ output = lookup[b];
91
+ }
92
+ return number + output;
93
+ },
94
+ week: {
95
+ dow: 1, // Monday is the first day of the week.
96
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
97
+ },
98
+ });
@@ -0,0 +1,53 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Danish [da]
3
+ //! author : Ulrik Nielsen : https://github.com/mrbase
4
+
5
+ import moment from '../moment';
6
+
7
+ export default moment.defineLocale('da', {
8
+ months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
12
+ weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
13
+ weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
14
+ weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
15
+ longDateFormat: {
16
+ LT: 'HH:mm',
17
+ LTS: 'HH:mm:ss',
18
+ L: 'DD.MM.YYYY',
19
+ LL: 'D. MMMM YYYY',
20
+ LLL: 'D. MMMM YYYY HH:mm',
21
+ LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
22
+ },
23
+ calendar: {
24
+ sameDay: '[i dag kl.] LT',
25
+ nextDay: '[i morgen kl.] LT',
26
+ nextWeek: 'på dddd [kl.] LT',
27
+ lastDay: '[i går kl.] LT',
28
+ lastWeek: '[i] dddd[s kl.] LT',
29
+ sameElse: 'L',
30
+ },
31
+ relativeTime: {
32
+ future: 'om %s',
33
+ past: '%s siden',
34
+ s: 'få sekunder',
35
+ ss: '%d sekunder',
36
+ m: 'et minut',
37
+ mm: '%d minutter',
38
+ h: 'en time',
39
+ hh: '%d timer',
40
+ d: 'en dag',
41
+ dd: '%d dage',
42
+ M: 'en måned',
43
+ MM: '%d måneder',
44
+ y: 'et år',
45
+ yy: '%d år',
46
+ },
47
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
48
+ ordinal: '%d.',
49
+ week: {
50
+ dow: 1, // Monday is the first day of the week.
51
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
52
+ },
53
+ });
@@ -0,0 +1,79 @@
1
+ //! moment.js locale configuration
2
+ //! locale : German (Austria) [de-at]
3
+ //! author : lluchs : https://github.com/lluchs
4
+ //! author: Menelion Elensúle: https://github.com/Oire
5
+ //! author : Martin Groller : https://github.com/MadMG
6
+ //! author : Mikolaj Dadela : https://github.com/mik01aj
7
+
8
+ import moment from '../moment';
9
+
10
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
11
+ var format = {
12
+ m: ['eine Minute', 'einer Minute'],
13
+ h: ['eine Stunde', 'einer Stunde'],
14
+ d: ['ein Tag', 'einem Tag'],
15
+ dd: [number + ' Tage', number + ' Tagen'],
16
+ w: ['eine Woche', 'einer Woche'],
17
+ M: ['ein Monat', 'einem Monat'],
18
+ MM: [number + ' Monate', number + ' Monaten'],
19
+ y: ['ein Jahr', 'einem Jahr'],
20
+ yy: [number + ' Jahre', number + ' Jahren'],
21
+ };
22
+ return withoutSuffix ? format[key][0] : format[key][1];
23
+ }
24
+
25
+ export default moment.defineLocale('de-at', {
26
+ months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
27
+ '_'
28
+ ),
29
+ monthsShort:
30
+ 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
31
+ monthsParseExact: true,
32
+ weekdays:
33
+ 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
34
+ '_'
35
+ ),
36
+ weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
37
+ weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
38
+ weekdaysParseExact: true,
39
+ longDateFormat: {
40
+ LT: 'HH:mm',
41
+ LTS: 'HH:mm:ss',
42
+ L: 'DD.MM.YYYY',
43
+ LL: 'D. MMMM YYYY',
44
+ LLL: 'D. MMMM YYYY HH:mm',
45
+ LLLL: 'dddd, D. MMMM YYYY HH:mm',
46
+ },
47
+ calendar: {
48
+ sameDay: '[heute um] LT [Uhr]',
49
+ sameElse: 'L',
50
+ nextDay: '[morgen um] LT [Uhr]',
51
+ nextWeek: 'dddd [um] LT [Uhr]',
52
+ lastDay: '[gestern um] LT [Uhr]',
53
+ lastWeek: '[letzten] dddd [um] LT [Uhr]',
54
+ },
55
+ relativeTime: {
56
+ future: 'in %s',
57
+ past: 'vor %s',
58
+ s: 'ein paar Sekunden',
59
+ ss: '%d Sekunden',
60
+ m: processRelativeTime,
61
+ mm: '%d Minuten',
62
+ h: processRelativeTime,
63
+ hh: '%d Stunden',
64
+ d: processRelativeTime,
65
+ dd: processRelativeTime,
66
+ w: processRelativeTime,
67
+ ww: '%d Wochen',
68
+ M: processRelativeTime,
69
+ MM: processRelativeTime,
70
+ y: processRelativeTime,
71
+ yy: processRelativeTime,
72
+ },
73
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
74
+ ordinal: '%d.',
75
+ week: {
76
+ dow: 1, // Monday is the first day of the week.
77
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
78
+ },
79
+ });
@@ -0,0 +1,78 @@
1
+ //! moment.js locale configuration
2
+ //! locale : German (Switzerland) [de-ch]
3
+ //! author : sschueller : https://github.com/sschueller
4
+
5
+ // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
6
+
7
+ import moment from '../moment';
8
+
9
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
10
+ var format = {
11
+ m: ['eine Minute', 'einer Minute'],
12
+ h: ['eine Stunde', 'einer Stunde'],
13
+ d: ['ein Tag', 'einem Tag'],
14
+ dd: [number + ' Tage', number + ' Tagen'],
15
+ w: ['eine Woche', 'einer Woche'],
16
+ M: ['ein Monat', 'einem Monat'],
17
+ MM: [number + ' Monate', number + ' Monaten'],
18
+ y: ['ein Jahr', 'einem Jahr'],
19
+ yy: [number + ' Jahre', number + ' Jahren'],
20
+ };
21
+ return withoutSuffix ? format[key][0] : format[key][1];
22
+ }
23
+
24
+ export default moment.defineLocale('de-ch', {
25
+ months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
26
+ '_'
27
+ ),
28
+ monthsShort:
29
+ 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
30
+ monthsParseExact: true,
31
+ weekdays:
32
+ 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
33
+ '_'
34
+ ),
35
+ weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
36
+ weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
37
+ weekdaysParseExact: true,
38
+ longDateFormat: {
39
+ LT: 'HH:mm',
40
+ LTS: 'HH:mm:ss',
41
+ L: 'DD.MM.YYYY',
42
+ LL: 'D. MMMM YYYY',
43
+ LLL: 'D. MMMM YYYY HH:mm',
44
+ LLLL: 'dddd, D. MMMM YYYY HH:mm',
45
+ },
46
+ calendar: {
47
+ sameDay: '[heute um] LT [Uhr]',
48
+ sameElse: 'L',
49
+ nextDay: '[morgen um] LT [Uhr]',
50
+ nextWeek: 'dddd [um] LT [Uhr]',
51
+ lastDay: '[gestern um] LT [Uhr]',
52
+ lastWeek: '[letzten] dddd [um] LT [Uhr]',
53
+ },
54
+ relativeTime: {
55
+ future: 'in %s',
56
+ past: 'vor %s',
57
+ s: 'ein paar Sekunden',
58
+ ss: '%d Sekunden',
59
+ m: processRelativeTime,
60
+ mm: '%d Minuten',
61
+ h: processRelativeTime,
62
+ hh: '%d Stunden',
63
+ d: processRelativeTime,
64
+ dd: processRelativeTime,
65
+ w: processRelativeTime,
66
+ ww: '%d Wochen',
67
+ M: processRelativeTime,
68
+ MM: processRelativeTime,
69
+ y: processRelativeTime,
70
+ yy: processRelativeTime,
71
+ },
72
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
73
+ ordinal: '%d.',
74
+ week: {
75
+ dow: 1, // Monday is the first day of the week.
76
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
77
+ },
78
+ });
@@ -0,0 +1,78 @@
1
+ //! moment.js locale configuration
2
+ //! locale : German [de]
3
+ //! author : lluchs : https://github.com/lluchs
4
+ //! author: Menelion Elensúle: https://github.com/Oire
5
+ //! author : Mikolaj Dadela : https://github.com/mik01aj
6
+
7
+ import moment from '../moment';
8
+
9
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
10
+ var format = {
11
+ m: ['eine Minute', 'einer Minute'],
12
+ h: ['eine Stunde', 'einer Stunde'],
13
+ d: ['ein Tag', 'einem Tag'],
14
+ dd: [number + ' Tage', number + ' Tagen'],
15
+ w: ['eine Woche', 'einer Woche'],
16
+ M: ['ein Monat', 'einem Monat'],
17
+ MM: [number + ' Monate', number + ' Monaten'],
18
+ y: ['ein Jahr', 'einem Jahr'],
19
+ yy: [number + ' Jahre', number + ' Jahren'],
20
+ };
21
+ return withoutSuffix ? format[key][0] : format[key][1];
22
+ }
23
+
24
+ export default moment.defineLocale('de', {
25
+ months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
26
+ '_'
27
+ ),
28
+ monthsShort:
29
+ 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
30
+ monthsParseExact: true,
31
+ weekdays:
32
+ 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
33
+ '_'
34
+ ),
35
+ weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
36
+ weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
37
+ weekdaysParseExact: true,
38
+ longDateFormat: {
39
+ LT: 'HH:mm',
40
+ LTS: 'HH:mm:ss',
41
+ L: 'DD.MM.YYYY',
42
+ LL: 'D. MMMM YYYY',
43
+ LLL: 'D. MMMM YYYY HH:mm',
44
+ LLLL: 'dddd, D. MMMM YYYY HH:mm',
45
+ },
46
+ calendar: {
47
+ sameDay: '[heute um] LT [Uhr]',
48
+ sameElse: 'L',
49
+ nextDay: '[morgen um] LT [Uhr]',
50
+ nextWeek: 'dddd [um] LT [Uhr]',
51
+ lastDay: '[gestern um] LT [Uhr]',
52
+ lastWeek: '[letzten] dddd [um] LT [Uhr]',
53
+ },
54
+ relativeTime: {
55
+ future: 'in %s',
56
+ past: 'vor %s',
57
+ s: 'ein paar Sekunden',
58
+ ss: '%d Sekunden',
59
+ m: processRelativeTime,
60
+ mm: '%d Minuten',
61
+ h: processRelativeTime,
62
+ hh: '%d Stunden',
63
+ d: processRelativeTime,
64
+ dd: processRelativeTime,
65
+ w: processRelativeTime,
66
+ ww: '%d Wochen',
67
+ M: processRelativeTime,
68
+ MM: processRelativeTime,
69
+ y: processRelativeTime,
70
+ yy: processRelativeTime,
71
+ },
72
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
73
+ ordinal: '%d.',
74
+ week: {
75
+ dow: 1, // Monday is the first day of the week.
76
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
77
+ },
78
+ });
@@ -0,0 +1,90 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Maldivian [dv]
3
+ //! author : Jawish Hameed : https://github.com/jawish
4
+
5
+ import moment from '../moment';
6
+
7
+ var months = [
8
+ 'ޖެނުއަރީ',
9
+ 'ފެބްރުއަރީ',
10
+ 'މާރިޗު',
11
+ 'އޭޕްރީލު',
12
+ 'މޭ',
13
+ 'ޖޫން',
14
+ 'ޖުލައި',
15
+ 'އޯގަސްޓު',
16
+ 'ސެޕްޓެމްބަރު',
17
+ 'އޮކްޓޯބަރު',
18
+ 'ނޮވެމްބަރު',
19
+ 'ޑިސެމްބަރު',
20
+ ],
21
+ weekdays = [
22
+ 'އާދިއްތަ',
23
+ 'ހޯމަ',
24
+ 'އަންގާރަ',
25
+ 'ބުދަ',
26
+ 'ބުރާސްފަތި',
27
+ 'ހުކުރު',
28
+ 'ހޮނިހިރު',
29
+ ];
30
+
31
+ export default moment.defineLocale('dv', {
32
+ months: months,
33
+ monthsShort: months,
34
+ weekdays: weekdays,
35
+ weekdaysShort: weekdays,
36
+ weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
37
+ longDateFormat: {
38
+ LT: 'HH:mm',
39
+ LTS: 'HH:mm:ss',
40
+ L: 'D/M/YYYY',
41
+ LL: 'D MMMM YYYY',
42
+ LLL: 'D MMMM YYYY HH:mm',
43
+ LLLL: 'dddd D MMMM YYYY HH:mm',
44
+ },
45
+ meridiemParse: /މކ|މފ/,
46
+ isPM: function (input) {
47
+ return 'މފ' === input;
48
+ },
49
+ meridiem: function (hour, minute, isLower) {
50
+ if (hour < 12) {
51
+ return 'މކ';
52
+ } else {
53
+ return 'މފ';
54
+ }
55
+ },
56
+ calendar: {
57
+ sameDay: '[މިއަދު] LT',
58
+ nextDay: '[މާދަމާ] LT',
59
+ nextWeek: 'dddd LT',
60
+ lastDay: '[އިއްޔެ] LT',
61
+ lastWeek: '[ފާއިތުވި] dddd LT',
62
+ sameElse: 'L',
63
+ },
64
+ relativeTime: {
65
+ future: 'ތެރޭގައި %s',
66
+ past: 'ކުރިން %s',
67
+ s: 'ސިކުންތުކޮޅެއް',
68
+ ss: 'd% ސިކުންތު',
69
+ m: 'މިނިޓެއް',
70
+ mm: 'މިނިޓު %d',
71
+ h: 'ގަޑިއިރެއް',
72
+ hh: 'ގަޑިއިރު %d',
73
+ d: 'ދުވަހެއް',
74
+ dd: 'ދުވަސް %d',
75
+ M: 'މަހެއް',
76
+ MM: 'މަސް %d',
77
+ y: 'އަހަރެއް',
78
+ yy: 'އަހަރު %d',
79
+ },
80
+ preparse: function (string) {
81
+ return string.replace(/،/g, ',');
82
+ },
83
+ postformat: function (string) {
84
+ return string.replace(/,/g, '،');
85
+ },
86
+ week: {
87
+ dow: 7, // Sunday is the first day of the week.
88
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
89
+ },
90
+ });
@@ -0,0 +1,106 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Greek [el]
3
+ //! author : Aggelos Karalias : https://github.com/mehiel
4
+
5
+ import moment from '../moment';
6
+
7
+ function isFunction(input) {
8
+ return (
9
+ (typeof Function !== 'undefined' && input instanceof Function) ||
10
+ Object.prototype.toString.call(input) === '[object Function]'
11
+ );
12
+ }
13
+
14
+ export default moment.defineLocale('el', {
15
+ monthsNominativeEl:
16
+ 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
17
+ '_'
18
+ ),
19
+ monthsGenitiveEl:
20
+ 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
21
+ '_'
22
+ ),
23
+ months: function (momentToFormat, format) {
24
+ if (!momentToFormat) {
25
+ return this._monthsNominativeEl;
26
+ } else if (
27
+ typeof format === 'string' &&
28
+ /D/.test(format.substring(0, format.indexOf('MMMM')))
29
+ ) {
30
+ // if there is a day number before 'MMMM'
31
+ return this._monthsGenitiveEl[momentToFormat.month()];
32
+ } else {
33
+ return this._monthsNominativeEl[momentToFormat.month()];
34
+ }
35
+ },
36
+ monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
37
+ weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
38
+ '_'
39
+ ),
40
+ weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
41
+ weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
42
+ meridiem: function (hours, minutes, isLower) {
43
+ if (hours > 11) {
44
+ return isLower ? 'μμ' : 'ΜΜ';
45
+ } else {
46
+ return isLower ? 'πμ' : 'ΠΜ';
47
+ }
48
+ },
49
+ isPM: function (input) {
50
+ return (input + '').toLowerCase()[0] === 'μ';
51
+ },
52
+ meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
53
+ longDateFormat: {
54
+ LT: 'h:mm A',
55
+ LTS: 'h:mm:ss A',
56
+ L: 'DD/MM/YYYY',
57
+ LL: 'D MMMM YYYY',
58
+ LLL: 'D MMMM YYYY h:mm A',
59
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
60
+ },
61
+ calendarEl: {
62
+ sameDay: '[Σήμερα {}] LT',
63
+ nextDay: '[Αύριο {}] LT',
64
+ nextWeek: 'dddd [{}] LT',
65
+ lastDay: '[Χθες {}] LT',
66
+ lastWeek: function () {
67
+ switch (this.day()) {
68
+ case 6:
69
+ return '[το προηγούμενο] dddd [{}] LT';
70
+ default:
71
+ return '[την προηγούμενη] dddd [{}] LT';
72
+ }
73
+ },
74
+ sameElse: 'L',
75
+ },
76
+ calendar: function (key, mom) {
77
+ var output = this._calendarEl[key],
78
+ hours = mom && mom.hours();
79
+ if (isFunction(output)) {
80
+ output = output.apply(mom);
81
+ }
82
+ return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
83
+ },
84
+ relativeTime: {
85
+ future: 'σε %s',
86
+ past: '%s πριν',
87
+ s: 'λίγα δευτερόλεπτα',
88
+ ss: '%d δευτερόλεπτα',
89
+ m: 'ένα λεπτό',
90
+ mm: '%d λεπτά',
91
+ h: 'μία ώρα',
92
+ hh: '%d ώρες',
93
+ d: 'μία μέρα',
94
+ dd: '%d μέρες',
95
+ M: 'ένας μήνας',
96
+ MM: '%d μήνες',
97
+ y: 'ένας χρόνος',
98
+ yy: '%d χρόνια',
99
+ },
100
+ dayOfMonthOrdinalParse: /\d{1,2}η/,
101
+ ordinal: '%dη',
102
+ week: {
103
+ dow: 1, // Monday is the first day of the week.
104
+ doy: 4, // The week that contains Jan 4st is the first week of the year.
105
+ },
106
+ });
@@ -0,0 +1,68 @@
1
+ //! moment.js locale configuration
2
+ //! locale : English (Australia) [en-au]
3
+ //! author : Jared Morse : https://github.com/jarcoal
4
+
5
+ import moment from '../moment';
6
+
7
+ export default moment.defineLocale('en-au', {
8
+ months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
12
+ weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
16
+ weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'h:mm A',
19
+ LTS: 'h:mm:ss A',
20
+ L: 'DD/MM/YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY h:mm A',
23
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
24
+ },
25
+ calendar: {
26
+ sameDay: '[Today at] LT',
27
+ nextDay: '[Tomorrow at] LT',
28
+ nextWeek: 'dddd [at] LT',
29
+ lastDay: '[Yesterday at] LT',
30
+ lastWeek: '[Last] dddd [at] LT',
31
+ sameElse: 'L',
32
+ },
33
+ relativeTime: {
34
+ future: 'in %s',
35
+ past: '%s ago',
36
+ s: 'a few seconds',
37
+ ss: '%d seconds',
38
+ m: 'a minute',
39
+ mm: '%d minutes',
40
+ h: 'an hour',
41
+ hh: '%d hours',
42
+ d: 'a day',
43
+ dd: '%d days',
44
+ M: 'a month',
45
+ MM: '%d months',
46
+ y: 'a year',
47
+ yy: '%d years',
48
+ },
49
+ dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
50
+ ordinal: function (number) {
51
+ var b = number % 10,
52
+ output =
53
+ ~~((number % 100) / 10) === 1
54
+ ? 'th'
55
+ : b === 1
56
+ ? 'st'
57
+ : b === 2
58
+ ? 'nd'
59
+ : b === 3
60
+ ? 'rd'
61
+ : 'th';
62
+ return number + output;
63
+ },
64
+ week: {
65
+ dow: 0, // Sunday is the first day of the week.
66
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
67
+ },
68
+ });