momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -2,119 +2,130 @@
2
2
  //! locale : Nepalese [ne]
3
3
  //! author : suvash : https://github.com/suvash
4
4
 
5
- import moment from '../moment';
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
11
 
7
- var symbolMap = {
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
- };
12
+ //! moment.js locale configuration
31
13
 
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
- },
54
- preparse: function (string) {
55
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
56
- return numberMap[match];
57
- });
58
- },
59
- postformat: function (string) {
60
- return string.replace(/\d/g, function (match) {
61
- return symbolMap[match];
62
- });
63
- },
64
- meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
65
- meridiemHour: function (hour, meridiem) {
66
- if (hour === 12) {
67
- hour = 0;
68
- }
69
- if (meridiem === 'राति') {
70
- return hour < 4 ? hour : hour + 12;
71
- } else if (meridiem === 'बिहान') {
72
- return hour;
73
- } else if (meridiem === 'दिउँसो') {
74
- return hour >= 10 ? hour : hour + 12;
75
- } else if (meridiem === 'साँझ') {
76
- return hour + 12;
77
- }
78
- },
79
- meridiem: function (hour, minute, isLower) {
80
- if (hour < 3) {
81
- return 'राति';
82
- } else if (hour < 12) {
83
- return 'बिहान';
84
- } else if (hour < 16) {
85
- return 'दिउँसो';
86
- } else if (hour < 20) {
87
- return 'साँझ';
88
- } else {
89
- return 'राति';
90
- }
91
- },
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 बर्ष',
115
- },
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.
119
- },
120
- });
14
+ var symbolMap = {
15
+ 1: '',
16
+ 2: '',
17
+ 3: '३',
18
+ 4: '',
19
+ 5: '',
20
+ 6: '६',
21
+ 7: '७',
22
+ 8: '',
23
+ 9: '',
24
+ 0: '०',
25
+ },
26
+ numberMap = {
27
+ '१': '1',
28
+ '२': '2',
29
+ '३': '3',
30
+ '४': '4',
31
+ '५': '5',
32
+ '६': '6',
33
+ '७': '7',
34
+ '८': '8',
35
+ '९': '9',
36
+ '०': '0',
37
+ };
38
+
39
+ var ne = moment.defineLocale('ne', {
40
+ months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
41
+ '_'
42
+ ),
43
+ monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
44
+ '_'
45
+ ),
46
+ monthsParseExact: true,
47
+ weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
48
+ '_'
49
+ ),
50
+ weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
51
+ weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
52
+ weekdaysParseExact: true,
53
+ longDateFormat: {
54
+ LT: 'Aको h:mm बजे',
55
+ LTS: 'Aको h:mm:ss बजे',
56
+ L: 'DD/MM/YYYY',
57
+ LL: 'D MMMM YYYY',
58
+ LLL: 'D MMMM YYYY, Aको h:mm बजे',
59
+ LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
60
+ },
61
+ preparse: function (string) {
62
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
63
+ return numberMap[match];
64
+ });
65
+ },
66
+ postformat: function (string) {
67
+ return string.replace(/\d/g, function (match) {
68
+ return symbolMap[match];
69
+ });
70
+ },
71
+ meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
72
+ meridiemHour: function (hour, meridiem) {
73
+ if (hour === 12) {
74
+ hour = 0;
75
+ }
76
+ if (meridiem === 'राति') {
77
+ return hour < 4 ? hour : hour + 12;
78
+ } else if (meridiem === 'बिहान') {
79
+ return hour;
80
+ } else if (meridiem === 'दिउँसो') {
81
+ return hour >= 10 ? hour : hour + 12;
82
+ } else if (meridiem === 'साँझ') {
83
+ return hour + 12;
84
+ }
85
+ },
86
+ meridiem: function (hour, minute, isLower) {
87
+ if (hour < 3) {
88
+ return 'राति';
89
+ } else if (hour < 12) {
90
+ return 'बिहान';
91
+ } else if (hour < 16) {
92
+ return 'दिउँसो';
93
+ } else if (hour < 20) {
94
+ return 'साँझ';
95
+ } else {
96
+ return 'राति';
97
+ }
98
+ },
99
+ calendar: {
100
+ sameDay: '[आज] LT',
101
+ nextDay: '[भोलि] LT',
102
+ nextWeek: '[आउँदो] dddd[,] LT',
103
+ lastDay: '[हिजो] LT',
104
+ lastWeek: '[गएको] dddd[,] LT',
105
+ sameElse: 'L',
106
+ },
107
+ relativeTime: {
108
+ future: '%sमा',
109
+ past: '%s अगाडि',
110
+ s: 'केही क्षण',
111
+ ss: '%d सेकेण्ड',
112
+ m: 'एक मिनेट',
113
+ mm: '%d मिनेट',
114
+ h: 'एक घण्टा',
115
+ hh: '%d घण्टा',
116
+ d: 'एक दिन',
117
+ dd: '%d दिन',
118
+ M: 'एक महिना',
119
+ MM: '%d महिना',
120
+ y: 'एक बर्ष',
121
+ yy: '%d बर्ष',
122
+ },
123
+ week: {
124
+ dow: 0, // Sunday is the first day of the week.
125
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
126
+ },
127
+ });
128
+
129
+ return ne;
130
+
131
+ })));
@@ -3,100 +3,111 @@
3
3
  //! author : Joris Röling : https://github.com/jorisroling
4
4
  //! author : Jacob Middag : https://github.com/middagj
5
5
 
6
- import moment from '../moment';
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
12
 
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
+ //! moment.js locale configuration
29
14
 
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) {
35
- if (!m) {
36
- return monthsShortWithDots;
37
- } else if (/-MMM-/.test(format)) {
38
- return monthsShortWithoutDots[m.month()];
39
- } else {
40
- return monthsShortWithDots[m.month()];
41
- }
42
- },
15
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
16
+ '_'
17
+ ),
18
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
19
+ '_'
20
+ ),
21
+ monthsParse = [
22
+ /^jan/i,
23
+ /^feb/i,
24
+ /^maart|mrt.?$/i,
25
+ /^apr/i,
26
+ /^mei$/i,
27
+ /^jun[i.]?$/i,
28
+ /^jul[i.]?$/i,
29
+ /^aug/i,
30
+ /^sep/i,
31
+ /^okt/i,
32
+ /^nov/i,
33
+ /^dec/i,
34
+ ],
35
+ 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;
43
36
 
44
- monthsRegex: monthsRegex,
45
- monthsShortRegex: monthsRegex,
46
- monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
47
- monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
37
+ var nlBe = moment.defineLocale('nl-be', {
38
+ months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
39
+ '_'
40
+ ),
41
+ monthsShort: function (m, format) {
42
+ if (!m) {
43
+ return monthsShortWithDots;
44
+ } else if (/-MMM-/.test(format)) {
45
+ return monthsShortWithoutDots[m.month()];
46
+ } else {
47
+ return monthsShortWithDots[m.month()];
48
+ }
49
+ },
48
50
 
49
- monthsParse: monthsParse,
50
- longMonthsParse: monthsParse,
51
- shortMonthsParse: monthsParse,
51
+ monthsRegex: monthsRegex,
52
+ monthsShortRegex: monthsRegex,
53
+ monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
54
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
52
55
 
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',
66
- },
67
- calendar: {
68
- sameDay: '[vandaag om] LT',
69
- nextDay: '[morgen om] LT',
70
- nextWeek: 'dddd [om] LT',
71
- lastDay: '[gisteren om] LT',
72
- lastWeek: '[afgelopen] dddd [om] LT',
73
- sameElse: 'L',
74
- },
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',
90
- },
91
- dayOfMonthOrdinalParse: /\d{1,2}(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.
101
- },
102
- });
56
+ monthsParse: monthsParse,
57
+ longMonthsParse: monthsParse,
58
+ shortMonthsParse: monthsParse,
59
+
60
+ weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
61
+ '_'
62
+ ),
63
+ weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
64
+ weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
65
+ weekdaysParseExact: true,
66
+ longDateFormat: {
67
+ LT: 'HH:mm',
68
+ LTS: 'HH:mm:ss',
69
+ L: 'DD/MM/YYYY',
70
+ LL: 'D MMMM YYYY',
71
+ LLL: 'D MMMM YYYY HH:mm',
72
+ LLLL: 'dddd D MMMM YYYY HH:mm',
73
+ },
74
+ calendar: {
75
+ sameDay: '[vandaag om] LT',
76
+ nextDay: '[morgen om] LT',
77
+ nextWeek: 'dddd [om] LT',
78
+ lastDay: '[gisteren om] LT',
79
+ lastWeek: '[afgelopen] dddd [om] LT',
80
+ sameElse: 'L',
81
+ },
82
+ relativeTime: {
83
+ future: 'over %s',
84
+ past: '%s geleden',
85
+ s: 'een paar seconden',
86
+ ss: '%d seconden',
87
+ m: 'één minuut',
88
+ mm: '%d minuten',
89
+ h: 'één uur',
90
+ hh: '%d uur',
91
+ d: 'één dag',
92
+ dd: '%d dagen',
93
+ M: 'één maand',
94
+ MM: '%d maanden',
95
+ y: 'één jaar',
96
+ yy: '%d jaar',
97
+ },
98
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
99
+ ordinal: function (number) {
100
+ return (
101
+ number +
102
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
103
+ );
104
+ },
105
+ week: {
106
+ dow: 1, // Monday is the first day of the week.
107
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
108
+ },
109
+ });
110
+
111
+ return nlBe;
112
+
113
+ })));