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
@@ -4,43 +4,41 @@
4
4
  //! author : David Rossellat : https://github.com/gholadr
5
5
  //! author : Tin Aung Lin : https://github.com/thanyawzinmin
6
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
-
7
+ import moment from '../moment';
14
8
 
15
9
  var symbolMap = {
16
- '1': '၁',
17
- '2': '၂',
18
- '3': '၃',
19
- '4': '၄',
20
- '5': '၅',
21
- '6': '၆',
22
- '7': '၇',
23
- '8': '၈',
24
- '9': '၉',
25
- '0': '၀'
26
- };
27
- var numberMap = {
28
- '၁': '1',
29
- '၂': '2',
30
- '၃': '3',
31
- '၄': '4',
32
- '၅': '5',
33
- '၆': '6',
34
- '၇': '7',
35
- '၈': '8',
36
- '၉': '9',
37
- '၀': '0'
38
- };
10
+ 1: '၁',
11
+ 2: '၂',
12
+ 3: '၃',
13
+ 4: '၄',
14
+ 5: '၅',
15
+ 6: '၆',
16
+ 7: '၇',
17
+ 8: '၈',
18
+ 9: '၉',
19
+ 0: '၀',
20
+ },
21
+ numberMap = {
22
+ '၁': '1',
23
+ '၂': '2',
24
+ '၃': '3',
25
+ '၄': '4',
26
+ '၅': '5',
27
+ '၆': '6',
28
+ '၇': '7',
29
+ '၈': '8',
30
+ '၉': '9',
31
+ '၀': '0',
32
+ };
39
33
 
40
- var my = moment.defineLocale('my', {
41
- months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
34
+ export default moment.defineLocale('my', {
35
+ months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
36
+ '_'
37
+ ),
42
38
  monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
43
- weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
39
+ weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
40
+ '_'
41
+ ),
44
42
  weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
45
43
  weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
46
44
 
@@ -50,7 +48,7 @@ var my = moment.defineLocale('my', {
50
48
  L: 'DD/MM/YYYY',
51
49
  LL: 'D MMMM YYYY',
52
50
  LLL: 'D MMMM YYYY HH:mm',
53
- LLLL: 'dddd D MMMM YYYY HH:mm'
51
+ LLLL: 'dddd D MMMM YYYY HH:mm',
54
52
  },
55
53
  calendar: {
56
54
  sameDay: '[ယနေ.] LT [မှာ]',
@@ -58,13 +56,13 @@ var my = moment.defineLocale('my', {
58
56
  nextWeek: 'dddd LT [မှာ]',
59
57
  lastDay: '[မနေ.က] LT [မှာ]',
60
58
  lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
61
- sameElse: 'L'
59
+ sameElse: 'L',
62
60
  },
63
61
  relativeTime: {
64
62
  future: 'လာမည့် %s မှာ',
65
63
  past: 'လွန်ခဲ့သော %s က',
66
64
  s: 'စက္ကန်.အနည်းငယ်',
67
- ss : '%d စက္ကန့်',
65
+ ss: '%d စက္ကန့်',
68
66
  m: 'တစ်မိနစ်',
69
67
  mm: '%d မိနစ်',
70
68
  h: 'တစ်နာရီ',
@@ -74,7 +72,7 @@ var my = moment.defineLocale('my', {
74
72
  M: 'တစ်လ',
75
73
  MM: '%d လ',
76
74
  y: 'တစ်နှစ်',
77
- yy: '%d နှစ်'
75
+ yy: '%d နှစ်',
78
76
  },
79
77
  preparse: function (string) {
80
78
  return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
@@ -88,10 +86,6 @@ var my = moment.defineLocale('my', {
88
86
  },
89
87
  week: {
90
88
  dow: 1, // Monday is the first day of the week.
91
- doy: 4 // The week that contains Jan 1st is the first week of the year.
92
- }
89
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
90
+ },
93
91
  });
94
-
95
- return my;
96
-
97
- })));
@@ -2,63 +2,60 @@
2
2
  //! locale : Norwegian Bokmål [nb]
3
3
  //! authors : Espen Hovlandsdal : https://github.com/rexxars
4
4
  //! Sigurd Gartmann : https://github.com/sigurdga
5
+ //! Stephen Ramthun : https://github.com/stephenramthun
5
6
 
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';
7
+ import moment from '../moment';
12
8
 
13
-
14
- var nb = moment.defineLocale('nb', {
15
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16
- monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
17
- monthsParseExact : true,
18
- weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
19
- weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
20
- weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
21
- weekdaysParseExact : true,
22
- longDateFormat : {
23
- LT : 'HH:mm',
24
- LTS : 'HH:mm:ss',
25
- L : 'DD.MM.YYYY',
26
- LL : 'D. MMMM YYYY',
27
- LLL : 'D. MMMM YYYY [kl.] HH:mm',
28
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
9
+ export default moment.defineLocale('nb', {
10
+ months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
11
+ '_'
12
+ ),
13
+ monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
14
+ '_'
15
+ ),
16
+ monthsParseExact: true,
17
+ weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
18
+ weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
19
+ weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
20
+ weekdaysParseExact: true,
21
+ longDateFormat: {
22
+ LT: 'HH:mm',
23
+ LTS: 'HH:mm:ss',
24
+ L: 'DD.MM.YYYY',
25
+ LL: 'D. MMMM YYYY',
26
+ LLL: 'D. MMMM YYYY [kl.] HH:mm',
27
+ LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
29
28
  },
30
- calendar : {
29
+ calendar: {
31
30
  sameDay: '[i dag kl.] LT',
32
31
  nextDay: '[i morgen kl.] LT',
33
32
  nextWeek: 'dddd [kl.] LT',
34
33
  lastDay: '[i går kl.] LT',
35
34
  lastWeek: '[forrige] dddd [kl.] LT',
36
- sameElse: 'L'
35
+ sameElse: 'L',
37
36
  },
38
- relativeTime : {
39
- future : 'om %s',
40
- past : '%s siden',
41
- s : 'noen sekunder',
42
- ss : '%d sekunder',
43
- m : 'ett minutt',
44
- mm : '%d minutter',
45
- h : 'en time',
46
- hh : '%d timer',
47
- d : 'en dag',
48
- dd : '%d dager',
49
- M : 'en måned',
50
- MM : '%d måneder',
51
- y : 'ett år',
52
- yy : '%d år'
37
+ relativeTime: {
38
+ future: 'om %s',
39
+ past: '%s siden',
40
+ s: 'noen sekunder',
41
+ ss: '%d sekunder',
42
+ m: 'ett minutt',
43
+ mm: '%d minutter',
44
+ h: 'en time',
45
+ hh: '%d timer',
46
+ d: 'en dag',
47
+ dd: '%d dager',
48
+ w: 'en uke',
49
+ ww: '%d uker',
50
+ M: 'en måned',
51
+ MM: '%d måneder',
52
+ y: 'ett år',
53
+ yy: '%d år',
53
54
  },
54
55
  dayOfMonthOrdinalParse: /\d{1,2}\./,
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
- }
56
+ ordinal: '%d.',
57
+ week: {
58
+ dow: 1, // Monday is the first day of the week.
59
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
60
+ },
60
61
  });
61
-
62
- return nb;
63
-
64
- })));
@@ -2,54 +2,54 @@
2
2
  //! locale : Nepalese [ne]
3
3
  //! author : suvash : https://github.com/suvash
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 ne = moment.defineLocale('ne', {
39
- months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
40
- monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
41
- monthsParseExact : true,
42
- weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
43
- weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
44
- weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
45
- weekdaysParseExact : true,
46
- longDateFormat : {
47
- LT : 'Aको h:mm बजे',
48
- LTS : 'Aको h:mm:ss बजे',
49
- L : 'DD/MM/YYYY',
50
- LL : 'D MMMM YYYY',
51
- LLL : 'D MMMM YYYY, Aको h:mm बजे',
52
- LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
32
+ export default moment.defineLocale('ne', {
33
+ months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
37
+ '_'
38
+ ),
39
+ monthsParseExact: true,
40
+ weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
41
+ '_'
42
+ ),
43
+ weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
44
+ weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
45
+ weekdaysParseExact: true,
46
+ longDateFormat: {
47
+ LT: 'Aको h:mm बजे',
48
+ LTS: 'Aको h:mm:ss बजे',
49
+ L: 'DD/MM/YYYY',
50
+ LL: 'D MMMM YYYY',
51
+ LLL: 'D MMMM YYYY, Aको h:mm बजे',
52
+ LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
53
53
  },
54
54
  preparse: function (string) {
55
55
  return string.replace(/[१२३४५६७८९०]/g, function (match) {
@@ -62,7 +62,7 @@ var ne = moment.defineLocale('ne', {
62
62
  });
63
63
  },
64
64
  meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
65
- meridiemHour : function (hour, meridiem) {
65
+ meridiemHour: function (hour, meridiem) {
66
66
  if (hour === 12) {
67
67
  hour = 0;
68
68
  }
@@ -76,7 +76,7 @@ var ne = moment.defineLocale('ne', {
76
76
  return hour + 12;
77
77
  }
78
78
  },
79
- meridiem : function (hour, minute, isLower) {
79
+ meridiem: function (hour, minute, isLower) {
80
80
  if (hour < 3) {
81
81
  return 'राति';
82
82
  } else if (hour < 12) {
@@ -89,36 +89,32 @@ var ne = moment.defineLocale('ne', {
89
89
  return 'राति';
90
90
  }
91
91
  },
92
- calendar : {
93
- sameDay : '[आज] LT',
94
- nextDay : '[भोलि] LT',
95
- nextWeek : '[आउँदो] dddd[,] LT',
96
- lastDay : '[हिजो] LT',
97
- lastWeek : '[गएको] dddd[,] LT',
98
- sameElse : 'L'
92
+ calendar: {
93
+ sameDay: '[आज] LT',
94
+ nextDay: '[भोलि] LT',
95
+ nextWeek: '[आउँदो] dddd[,] LT',
96
+ lastDay: '[हिजो] LT',
97
+ lastWeek: '[गएको] dddd[,] LT',
98
+ sameElse: 'L',
99
+ },
100
+ relativeTime: {
101
+ future: '%sमा',
102
+ past: '%s अगाडि',
103
+ s: 'केही क्षण',
104
+ ss: '%d सेकेण्ड',
105
+ m: 'एक मिनेट',
106
+ mm: '%d मिनेट',
107
+ h: 'एक घण्टा',
108
+ hh: '%d घण्टा',
109
+ d: 'एक दिन',
110
+ dd: '%d दिन',
111
+ M: 'एक महिना',
112
+ MM: '%d महिना',
113
+ y: 'एक बर्ष',
114
+ yy: '%d बर्ष',
99
115
  },
100
- relativeTime : {
101
- future : '%sमा',
102
- past : '%s अगाडि',
103
- s : 'केही क्षण',
104
- ss : '%d सेकेण्ड',
105
- m : 'एक मिनेट',
106
- mm : '%d मिनेट',
107
- h : 'एक घण्टा',
108
- hh : '%d घण्टा',
109
- d : 'एक दिन',
110
- dd : '%d दिन',
111
- M : 'एक महिना',
112
- MM : '%d महिना',
113
- y : 'एक बर्ष',
114
- yy : '%d बर्ष'
116
+ week: {
117
+ dow: 0, // Sunday is the first day of the week.
118
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
115
119
  },
116
- week : {
117
- dow : 0, // Sunday is the first day of the week.
118
- doy : 6 // The week that contains Jan 1st is the first week of the year.
119
- }
120
120
  });
121
-
122
- return ne;
123
-
124
- })));
@@ -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 nlBe = moment.defineLocale('nl-be', {
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-be', {
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,60 @@ var nlBe = moment.defineLocale('nl-be', {
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
+ M: 'één maand',
87
+ MM: '%d maanden',
88
+ y: 'één jaar',
89
+ yy: '%d jaar',
76
90
  },
77
91
  dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
78
- ordinal : function (number) {
79
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
92
+ ordinal: function (number) {
93
+ return (
94
+ number +
95
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
96
+ );
97
+ },
98
+ week: {
99
+ dow: 1, // Monday is the first day of the week.
100
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
80
101
  },
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
102
  });
86
-
87
- return nlBe;
88
-
89
- })));