momentjs-rails 2.20.1 → 2.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/app/assets/config/manifest.js +1 -0
  5. data/test/dummy/config/environments/development.rb +2 -0
  6. data/test/dummy/config/environments/production.rb +1 -0
  7. data/test/dummy/config/environments/test.rb +2 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
  36. data/test/integration/navigation_test.rb +1 -1
  37. data/vendor/assets/javascripts/moment/af.js +51 -54
  38. data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
  39. data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
  40. data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
  41. data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
  42. data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
  43. data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
  44. data/vendor/assets/javascripts/moment/ar.js +158 -112
  45. data/vendor/assets/javascripts/moment/az.js +52 -57
  46. data/vendor/assets/javascripts/moment/be.js +69 -63
  47. data/vendor/assets/javascripts/moment/bg.js +49 -53
  48. data/vendor/assets/javascripts/moment/bm.js +43 -51
  49. data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
  50. data/vendor/assets/javascripts/moment/bn.js +76 -78
  51. data/vendor/assets/javascripts/moment/bo.js +80 -78
  52. data/vendor/assets/javascripts/moment/br.js +115 -59
  53. data/vendor/assets/javascripts/moment/bs.js +48 -52
  54. data/vendor/assets/javascripts/moment/ca.js +76 -68
  55. data/vendor/assets/javascripts/moment/cs.js +80 -89
  56. data/vendor/assets/javascripts/moment/cv.js +45 -47
  57. data/vendor/assets/javascripts/moment/cy.js +41 -26
  58. data/vendor/assets/javascripts/moment/da.js +43 -51
  59. data/vendor/assets/javascripts/moment/de-at.js +53 -54
  60. data/vendor/assets/javascripts/moment/de-ch.js +54 -55
  61. data/vendor/assets/javascripts/moment/de.js +53 -54
  62. data/vendor/assets/javascripts/moment/dv.js +64 -75
  63. data/vendor/assets/javascripts/moment/el.js +63 -60
  64. data/vendor/assets/javascripts/moment/en-au.js +55 -55
  65. data/vendor/assets/javascripts/moment/en-ca.js +52 -52
  66. data/vendor/assets/javascripts/moment/en-gb.js +55 -55
  67. data/vendor/assets/javascripts/moment/en-ie.js +55 -55
  68. data/vendor/assets/javascripts/moment/en-il.js +64 -0
  69. data/vendor/assets/javascripts/moment/en-in.js +68 -0
  70. data/vendor/assets/javascripts/moment/en-nz.js +55 -55
  71. data/vendor/assets/javascripts/moment/en-sg.js +68 -0
  72. data/vendor/assets/javascripts/moment/eo.js +46 -52
  73. data/vendor/assets/javascripts/moment/es-do.js +75 -63
  74. data/vendor/assets/javascripts/moment/es-mx.js +106 -0
  75. data/vendor/assets/javascripts/moment/es-us.js +83 -61
  76. data/vendor/assets/javascripts/moment/es.js +83 -70
  77. data/vendor/assets/javascripts/moment/et.js +58 -62
  78. data/vendor/assets/javascripts/moment/eu.js +53 -57
  79. data/vendor/assets/javascripts/moment/fa.js +84 -82
  80. data/vendor/assets/javascripts/moment/fi.js +72 -61
  81. data/vendor/assets/javascripts/moment/fil.js +58 -0
  82. data/vendor/assets/javascripts/moment/fo.js +46 -51
  83. data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
  84. data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
  85. data/vendor/assets/javascripts/moment/fr.js +72 -52
  86. data/vendor/assets/javascripts/moment/fy.js +52 -51
  87. data/vendor/assets/javascripts/moment/ga.js +95 -0
  88. data/vendor/assets/javascripts/moment/gd.js +81 -63
  89. data/vendor/assets/javascripts/moment/gl.js +54 -58
  90. data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
  91. data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
  92. data/vendor/assets/javascripts/moment/gu.js +30 -34
  93. data/vendor/assets/javascripts/moment/he.js +48 -54
  94. data/vendor/assets/javascripts/moment/hi.js +115 -76
  95. data/vendor/assets/javascripts/moment/hr.js +54 -55
  96. data/vendor/assets/javascripts/moment/hu.js +63 -56
  97. data/vendor/assets/javascripts/moment/hy-am.js +44 -48
  98. data/vendor/assets/javascripts/moment/id.js +44 -52
  99. data/vendor/assets/javascripts/moment/is.js +61 -55
  100. data/vendor/assets/javascripts/moment/it-ch.js +64 -0
  101. data/vendor/assets/javascripts/moment/it.js +89 -54
  102. data/vendor/assets/javascripts/moment/ja.js +122 -55
  103. data/vendor/assets/javascripts/moment/jv.js +44 -52
  104. data/vendor/assets/javascripts/moment/ka.js +68 -66
  105. data/vendor/assets/javascripts/moment/kk.js +46 -52
  106. data/vendor/assets/javascripts/moment/km.js +64 -21
  107. data/vendor/assets/javascripts/moment/kn.js +72 -76
  108. data/vendor/assets/javascripts/moment/ko.js +48 -56
  109. data/vendor/assets/javascripts/moment/ku.js +118 -0
  110. data/vendor/assets/javascripts/moment/ky.js +48 -53
  111. data/vendor/assets/javascripts/moment/lb.js +39 -42
  112. data/vendor/assets/javascripts/moment/lo.js +44 -50
  113. data/vendor/assets/javascripts/moment/lt.js +79 -75
  114. data/vendor/assets/javascripts/moment/lv.js +57 -63
  115. data/vendor/assets/javascripts/moment/me.js +53 -48
  116. data/vendor/assets/javascripts/moment/mi.js +15 -21
  117. data/vendor/assets/javascripts/moment/mk.js +46 -52
  118. data/vendor/assets/javascripts/moment/ml.js +51 -53
  119. data/vendor/assets/javascripts/moment/mn.js +99 -0
  120. data/vendor/assets/javascripts/moment/mr.js +140 -100
  121. data/vendor/assets/javascripts/moment/ms-my.js +43 -51
  122. data/vendor/assets/javascripts/moment/ms.js +43 -51
  123. data/vendor/assets/javascripts/moment/mt.js +45 -51
  124. data/vendor/assets/javascripts/moment/my.js +37 -43
  125. data/vendor/assets/javascripts/moment/nb.js +45 -48
  126. data/vendor/assets/javascripts/moment/ne.js +73 -77
  127. data/vendor/assets/javascripts/moment/nl-be.js +70 -57
  128. data/vendor/assets/javascripts/moment/nl.js +72 -57
  129. data/vendor/assets/javascripts/moment/nn.js +46 -47
  130. data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
  131. data/vendor/assets/javascripts/moment/pa-in.js +72 -76
  132. data/vendor/assets/javascripts/moment/pl.js +67 -55
  133. data/vendor/assets/javascripts/moment/pt-br.js +41 -46
  134. data/vendor/assets/javascripts/moment/pt.js +46 -50
  135. data/vendor/assets/javascripts/moment/ro.js +49 -51
  136. data/vendor/assets/javascripts/moment/ru.js +104 -83
  137. data/vendor/assets/javascripts/moment/sd.js +56 -74
  138. data/vendor/assets/javascripts/moment/se.js +41 -46
  139. data/vendor/assets/javascripts/moment/si.js +48 -52
  140. data/vendor/assets/javascripts/moment/sk.js +52 -66
  141. data/vendor/assets/javascripts/moment/sl.js +50 -54
  142. data/vendor/assets/javascripts/moment/sq.js +47 -53
  143. data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
  144. data/vendor/assets/javascripts/moment/sr.js +56 -50
  145. data/vendor/assets/javascripts/moment/ss.js +48 -55
  146. data/vendor/assets/javascripts/moment/sv.js +51 -53
  147. data/vendor/assets/javascripts/moment/sw.js +45 -51
  148. data/vendor/assets/javascripts/moment/ta.js +75 -77
  149. data/vendor/assets/javascripts/moment/te.js +51 -55
  150. data/vendor/assets/javascripts/moment/tet.js +49 -50
  151. data/vendor/assets/javascripts/moment/tg.js +116 -0
  152. data/vendor/assets/javascripts/moment/th.js +45 -49
  153. data/vendor/assets/javascripts/moment/tk.js +91 -0
  154. data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
  155. data/vendor/assets/javascripts/moment/tlh.js +69 -67
  156. data/vendor/assets/javascripts/moment/tr.js +91 -76
  157. data/vendor/assets/javascripts/moment/tzl.js +65 -69
  158. data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
  159. data/vendor/assets/javascripts/moment/tzm.js +38 -44
  160. data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
  161. data/vendor/assets/javascripts/moment/uk.js +78 -68
  162. data/vendor/assets/javascripts/moment/ur.js +56 -74
  163. data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
  164. data/vendor/assets/javascripts/moment/uz.js +42 -50
  165. data/vendor/assets/javascripts/moment/vi.js +54 -55
  166. data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
  167. data/vendor/assets/javascripts/moment/yo.js +44 -52
  168. data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
  169. data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
  170. data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
  171. data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
  172. data/vendor/assets/javascripts/moment.js +2673 -1546
  173. metadata +92 -31
  174. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  175. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  176. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  177. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  178. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  179. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -3,23 +3,35 @@
3
3
  //! author : Joris Röling : https://github.com/jorisroling
4
4
  //! author : Jacob Middag : https://github.com/middagj
5
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';
6
+ import moment from '../moment';
12
7
 
8
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
9
+ '_'
10
+ ),
11
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
12
+ '_'
13
+ ),
14
+ monthsParse = [
15
+ /^jan/i,
16
+ /^feb/i,
17
+ /^maart|mrt.?$/i,
18
+ /^apr/i,
19
+ /^mei$/i,
20
+ /^jun[i.]?$/i,
21
+ /^jul[i.]?$/i,
22
+ /^aug/i,
23
+ /^sep/i,
24
+ /^okt/i,
25
+ /^nov/i,
26
+ /^dec/i,
27
+ ],
28
+ monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
13
29
 
14
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
15
- var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
16
-
17
- var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
18
- var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
19
-
20
- var nl = moment.defineLocale('nl', {
21
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
22
- monthsShort : function (m, format) {
30
+ export default moment.defineLocale('nl', {
31
+ months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
32
+ '_'
33
+ ),
34
+ monthsShort: function (m, format) {
23
35
  if (!m) {
24
36
  return monthsShortWithDots;
25
37
  } else if (/-MMM-/.test(format)) {
@@ -31,59 +43,62 @@ var nl = moment.defineLocale('nl', {
31
43
 
32
44
  monthsRegex: monthsRegex,
33
45
  monthsShortRegex: monthsRegex,
34
- monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
46
+ monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
35
47
  monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
36
48
 
37
- monthsParse : monthsParse,
38
- longMonthsParse : monthsParse,
39
- shortMonthsParse : monthsParse,
49
+ monthsParse: monthsParse,
50
+ longMonthsParse: monthsParse,
51
+ shortMonthsParse: monthsParse,
40
52
 
41
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
42
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
43
- weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
44
- weekdaysParseExact : true,
45
- longDateFormat : {
46
- LT : 'HH:mm',
47
- LTS : 'HH:mm:ss',
48
- L : 'DD-MM-YYYY',
49
- LL : 'D MMMM YYYY',
50
- LLL : 'D MMMM YYYY HH:mm',
51
- LLLL : 'dddd D MMMM YYYY HH:mm'
53
+ weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
54
+ '_'
55
+ ),
56
+ weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
57
+ weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
58
+ weekdaysParseExact: true,
59
+ longDateFormat: {
60
+ LT: 'HH:mm',
61
+ LTS: 'HH:mm:ss',
62
+ L: 'DD-MM-YYYY',
63
+ LL: 'D MMMM YYYY',
64
+ LLL: 'D MMMM YYYY HH:mm',
65
+ LLLL: 'dddd D MMMM YYYY HH:mm',
52
66
  },
53
- calendar : {
67
+ calendar: {
54
68
  sameDay: '[vandaag om] LT',
55
69
  nextDay: '[morgen om] LT',
56
70
  nextWeek: 'dddd [om] LT',
57
71
  lastDay: '[gisteren om] LT',
58
72
  lastWeek: '[afgelopen] dddd [om] LT',
59
- sameElse: 'L'
73
+ sameElse: 'L',
60
74
  },
61
- relativeTime : {
62
- future : 'over %s',
63
- past : '%s geleden',
64
- s : 'een paar seconden',
65
- ss : '%d seconden',
66
- m : 'één minuut',
67
- mm : '%d minuten',
68
- h : 'één uur',
69
- hh : '%d uur',
70
- d : 'één dag',
71
- dd : '%d dagen',
72
- M : 'één maand',
73
- MM : '%d maanden',
74
- y : 'één jaar',
75
- yy : '%d jaar'
75
+ relativeTime: {
76
+ future: 'over %s',
77
+ past: '%s geleden',
78
+ s: 'een paar seconden',
79
+ ss: '%d seconden',
80
+ m: 'één minuut',
81
+ mm: '%d minuten',
82
+ h: 'één uur',
83
+ hh: '%d uur',
84
+ d: 'één dag',
85
+ dd: '%d dagen',
86
+ w: 'één week',
87
+ ww: '%d weken',
88
+ M: 'één maand',
89
+ MM: '%d maanden',
90
+ y: 'één jaar',
91
+ yy: '%d jaar',
76
92
  },
77
93
  dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
78
- ordinal : function (number) {
79
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
94
+ ordinal: function (number) {
95
+ return (
96
+ number +
97
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
98
+ );
99
+ },
100
+ week: {
101
+ dow: 1, // Monday is the first day of the week.
102
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
80
103
  },
81
- week : {
82
- dow : 1, // Monday is the first day of the week.
83
- doy : 4 // The week that contains Jan 4th is the first week of the year.
84
- }
85
104
  });
86
-
87
- return nl;
88
-
89
- })));
@@ -1,61 +1,60 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Nynorsk [nn]
3
- //! author : https://github.com/mechuwind
3
+ //! authors : https://github.com/mechuwind
4
+ //! Stephen Ramthun : https://github.com/stephenramthun
4
5
 
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';
6
+ import moment from '../moment';
11
7
 
12
-
13
- var nn = moment.defineLocale('nn', {
14
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16
- weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
17
- weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
18
- weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'DD.MM.YYYY',
23
- LL : 'D. MMMM YYYY',
24
- LLL : 'D. MMMM YYYY [kl.] H:mm',
25
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
8
+ export default moment.defineLocale('nn', {
9
+ months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
10
+ '_'
11
+ ),
12
+ monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
13
+ '_'
14
+ ),
15
+ monthsParseExact: true,
16
+ weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
17
+ weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
18
+ weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
19
+ weekdaysParseExact: true,
20
+ longDateFormat: {
21
+ LT: 'HH:mm',
22
+ LTS: 'HH:mm:ss',
23
+ L: 'DD.MM.YYYY',
24
+ LL: 'D. MMMM YYYY',
25
+ LLL: 'D. MMMM YYYY [kl.] H:mm',
26
+ LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
26
27
  },
27
- calendar : {
28
+ calendar: {
28
29
  sameDay: '[I dag klokka] LT',
29
30
  nextDay: '[I morgon klokka] LT',
30
31
  nextWeek: 'dddd [klokka] LT',
31
32
  lastDay: '[I går klokka] LT',
32
33
  lastWeek: '[Føregåande] dddd [klokka] LT',
33
- sameElse: 'L'
34
+ sameElse: 'L',
34
35
  },
35
- relativeTime : {
36
- future : 'om %s',
37
- past : '%s sidan',
38
- s : 'nokre sekund',
39
- ss : '%d sekund',
40
- m : 'eit minutt',
41
- mm : '%d minutt',
42
- h : 'ein time',
43
- hh : '%d timar',
44
- d : 'ein dag',
45
- dd : '%d dagar',
46
- M : 'ein månad',
47
- MM : '%d månader',
48
- y : 'eit år',
49
- yy : '%d år'
36
+ relativeTime: {
37
+ future: 'om %s',
38
+ past: '%s sidan',
39
+ s: 'nokre sekund',
40
+ ss: '%d sekund',
41
+ m: 'eit minutt',
42
+ mm: '%d minutt',
43
+ h: 'ein time',
44
+ hh: '%d timar',
45
+ d: 'ein dag',
46
+ dd: '%d dagar',
47
+ w: 'ei veke',
48
+ ww: '%d veker',
49
+ M: 'ein månad',
50
+ MM: '%d månader',
51
+ y: 'eit år',
52
+ yy: '%d år',
50
53
  },
51
54
  dayOfMonthOrdinalParse: /\d{1,2}\./,
52
- ordinal : '%d.',
53
- week : {
54
- dow : 1, // Monday is the first day of the week.
55
- doy : 4 // The week that contains Jan 4th is the first week of the year.
56
- }
55
+ ordinal: '%d.',
56
+ week: {
57
+ dow: 1, // Monday is the first day of the week.
58
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
59
+ },
57
60
  });
58
-
59
- return nn;
60
-
61
- })));
@@ -0,0 +1,83 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Occitan, lengadocian dialecte [oc-lnc]
3
+ //! author : Quentin PAGÈS : https://github.com/Quenty31
4
+
5
+ import moment from '../moment';
6
+
7
+ export default moment.defineLocale('oc-lnc', {
8
+ months: {
9
+ standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
10
+ '_'
11
+ ),
12
+ 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(
13
+ '_'
14
+ ),
15
+ isFormat: /D[oD]?(\s)+MMMM/,
16
+ },
17
+ monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
18
+ '_'
19
+ ),
20
+ monthsParseExact: true,
21
+ weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
22
+ '_'
23
+ ),
24
+ weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
25
+ weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
26
+ weekdaysParseExact: true,
27
+ longDateFormat: {
28
+ LT: 'H:mm',
29
+ LTS: 'H:mm:ss',
30
+ L: 'DD/MM/YYYY',
31
+ LL: 'D MMMM [de] YYYY',
32
+ ll: 'D MMM YYYY',
33
+ LLL: 'D MMMM [de] YYYY [a] H:mm',
34
+ lll: 'D MMM YYYY, H:mm',
35
+ LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
36
+ llll: 'ddd D MMM YYYY, H:mm',
37
+ },
38
+ calendar: {
39
+ sameDay: '[uèi a] LT',
40
+ nextDay: '[deman a] LT',
41
+ nextWeek: 'dddd [a] LT',
42
+ lastDay: '[ièr a] LT',
43
+ lastWeek: 'dddd [passat a] LT',
44
+ sameElse: 'L',
45
+ },
46
+ relativeTime: {
47
+ future: "d'aquí %s",
48
+ past: 'fa %s',
49
+ s: 'unas segondas',
50
+ ss: '%d segondas',
51
+ m: 'una minuta',
52
+ mm: '%d minutas',
53
+ h: 'una ora',
54
+ hh: '%d oras',
55
+ d: 'un jorn',
56
+ dd: '%d jorns',
57
+ M: 'un mes',
58
+ MM: '%d meses',
59
+ y: 'un an',
60
+ yy: '%d ans',
61
+ },
62
+ dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
63
+ ordinal: function (number, period) {
64
+ var output =
65
+ number === 1
66
+ ? 'r'
67
+ : number === 2
68
+ ? 'n'
69
+ : number === 3
70
+ ? 'r'
71
+ : number === 4
72
+ ? 't'
73
+ : 'è';
74
+ if (period === 'w' || period === 'W') {
75
+ output = 'a';
76
+ }
77
+ return number + output;
78
+ },
79
+ week: {
80
+ dow: 1, // Monday is the first day of the week.
81
+ doy: 4,
82
+ },
83
+ });
@@ -2,77 +2,77 @@
2
2
  //! locale : Punjabi (India) [pa-in]
3
3
  //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
4
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
-
5
+ import moment from '../moment';
12
6
 
13
7
  var symbolMap = {
14
- '1': '੧',
15
- '2': '੨',
16
- '3': '੩',
17
- '4': '੪',
18
- '5': '੫',
19
- '6': '੬',
20
- '7': '੭',
21
- '8': '੮',
22
- '9': '੯',
23
- '0': '੦'
24
- };
25
- var numberMap = {
26
- '੧': '1',
27
- '੨': '2',
28
- '੩': '3',
29
- '੪': '4',
30
- '੫': '5',
31
- '੬': '6',
32
- '੭': '7',
33
- '੮': '8',
34
- '੯': '9',
35
- '੦': '0'
36
- };
8
+ 1: '੧',
9
+ 2: '੨',
10
+ 3: '੩',
11
+ 4: '੪',
12
+ 5: '੫',
13
+ 6: '੬',
14
+ 7: '੭',
15
+ 8: '੮',
16
+ 9: '੯',
17
+ 0: '੦',
18
+ },
19
+ numberMap = {
20
+ '੧': '1',
21
+ '੨': '2',
22
+ '੩': '3',
23
+ '੪': '4',
24
+ '੫': '5',
25
+ '੬': '6',
26
+ '੭': '7',
27
+ '੮': '8',
28
+ '੯': '9',
29
+ '੦': '0',
30
+ };
37
31
 
38
- var paIn = moment.defineLocale('pa-in', {
39
- // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
40
- months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
41
- monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
42
- weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
43
- weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
44
- weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
45
- longDateFormat : {
46
- LT : 'A h:mm ਵਜੇ',
47
- LTS : 'A h:mm:ss ਵਜੇ',
48
- L : 'DD/MM/YYYY',
49
- LL : 'D MMMM YYYY',
50
- LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
51
- LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
32
+ export default moment.defineLocale('pa-in', {
33
+ // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
34
+ months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
35
+ '_'
36
+ ),
37
+ monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
38
+ '_'
39
+ ),
40
+ weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
41
+ '_'
42
+ ),
43
+ weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
44
+ weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
45
+ longDateFormat: {
46
+ LT: 'A h:mm ਵਜੇ',
47
+ LTS: 'A h:mm:ss ਵਜੇ',
48
+ L: 'DD/MM/YYYY',
49
+ LL: 'D MMMM YYYY',
50
+ LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
51
+ LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
52
52
  },
53
- calendar : {
54
- sameDay : '[ਅਜ] LT',
55
- nextDay : '[ਕਲ] LT',
56
- nextWeek : 'dddd, LT',
57
- lastDay : '[ਕਲ] LT',
58
- lastWeek : '[ਪਿਛਲੇ] dddd, LT',
59
- sameElse : 'L'
53
+ calendar: {
54
+ sameDay: '[ਅਜ] LT',
55
+ nextDay: '[ਕਲ] LT',
56
+ nextWeek: '[ਅਗਲਾ] dddd, LT',
57
+ lastDay: '[ਕਲ] LT',
58
+ lastWeek: '[ਪਿਛਲੇ] dddd, LT',
59
+ sameElse: 'L',
60
60
  },
61
- relativeTime : {
62
- future : '%s ਵਿੱਚ',
63
- past : '%s ਪਿਛਲੇ',
64
- s : 'ਕੁਝ ਸਕਿੰਟ',
65
- ss : '%d ਸਕਿੰਟ',
66
- m : 'ਇਕ ਮਿੰਟ',
67
- mm : '%d ਮਿੰਟ',
68
- h : 'ਇੱਕ ਘੰਟਾ',
69
- hh : '%d ਘੰਟੇ',
70
- d : 'ਇੱਕ ਦਿਨ',
71
- dd : '%d ਦਿਨ',
72
- M : 'ਇੱਕ ਮਹੀਨਾ',
73
- MM : '%d ਮਹੀਨੇ',
74
- y : 'ਇੱਕ ਸਾਲ',
75
- yy : '%d ਸਾਲ'
61
+ relativeTime: {
62
+ future: '%s ਵਿੱਚ',
63
+ past: '%s ਪਿਛਲੇ',
64
+ s: 'ਕੁਝ ਸਕਿੰਟ',
65
+ ss: '%d ਸਕਿੰਟ',
66
+ m: 'ਇਕ ਮਿੰਟ',
67
+ mm: '%d ਮਿੰਟ',
68
+ h: 'ਇੱਕ ਘੰਟਾ',
69
+ hh: '%d ਘੰਟੇ',
70
+ d: 'ਇੱਕ ਦਿਨ',
71
+ dd: '%d ਦਿਨ',
72
+ M: 'ਇੱਕ ਮਹੀਨਾ',
73
+ MM: '%d ਮਹੀਨੇ',
74
+ y: 'ਇੱਕ ਸਾਲ',
75
+ yy: '%d ਸਾਲ',
76
76
  },
77
77
  preparse: function (string) {
78
78
  return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
@@ -87,7 +87,7 @@ var paIn = moment.defineLocale('pa-in', {
87
87
  // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
88
88
  // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
89
89
  meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
90
- meridiemHour : function (hour, meridiem) {
90
+ meridiemHour: function (hour, meridiem) {
91
91
  if (hour === 12) {
92
92
  hour = 0;
93
93
  }
@@ -101,7 +101,7 @@ var paIn = moment.defineLocale('pa-in', {
101
101
  return hour + 12;
102
102
  }
103
103
  },
104
- meridiem : function (hour, minute, isLower) {
104
+ meridiem: function (hour, minute, isLower) {
105
105
  if (hour < 4) {
106
106
  return 'ਰਾਤ';
107
107
  } else if (hour < 10) {
@@ -114,12 +114,8 @@ var paIn = moment.defineLocale('pa-in', {
114
114
  return 'ਰਾਤ';
115
115
  }
116
116
  },
117
- week : {
118
- dow : 0, // Sunday is the first day of the week.
119
- doy : 6 // The week that contains Jan 1st is the first week of the year.
120
- }
117
+ week: {
118
+ dow: 0, // Sunday is the first day of the week.
119
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
120
+ },
121
121
  });
122
-
123
- return paIn;
124
-
125
- })));