momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -1,121 +1,124 @@
1
- // moment.js locale configuration
2
- // locale : nepali/nepalese
3
- // author : suvash : https://github.com/suvash
1
+ //! moment.js locale configuration
2
+ //! locale : Nepalese [ne]
3
+ //! author : suvash : https://github.com/suvash
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
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
- };
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ 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
+ };
38
37
 
39
- return moment.defineLocale('ne', {
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, LT',
51
- LLLL : 'dddd, D MMMM YYYY, LT'
52
- },
53
- preparse: function (string) {
54
- return string.replace(/[१२३४५६७८९०]/g, function (match) {
55
- return numberMap[match];
56
- });
57
- },
58
- postformat: function (string) {
59
- return string.replace(/\d/g, function (match) {
60
- return symbolMap[match];
61
- });
62
- },
63
- meridiemParse: /राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,
64
- meridiemHour : function (hour, meridiem) {
65
- if (hour === 12) {
66
- hour = 0;
67
- }
68
- if (meridiem === 'राती') {
69
- return hour < 3 ? hour : hour + 12;
70
- } else if (meridiem === 'बिहान') {
71
- return hour;
72
- } else if (meridiem === 'दिउँसो') {
73
- return hour >= 10 ? hour : hour + 12;
74
- } else if (meridiem === 'बेलुका' || meridiem === 'साँझ') {
75
- return hour + 12;
76
- }
77
- },
78
- meridiem : function (hour, minute, isLower) {
79
- if (hour < 3) {
80
- return 'राती';
81
- } else if (hour < 10) {
82
- return 'बिहान';
83
- } else if (hour < 15) {
84
- return 'दिउँसो';
85
- } else if (hour < 18) {
86
- return 'बेलुका';
87
- } else if (hour < 20) {
88
- return 'साँझ';
89
- } else {
90
- return 'राती';
91
- }
92
- },
93
- calendar : {
94
- sameDay : '[आज] LT',
95
- nextDay : '[भोली] LT',
96
- nextWeek : '[आउँदो] dddd[,] LT',
97
- lastDay : '[हिजो] LT',
98
- lastWeek : '[गएको] dddd[,] LT',
99
- sameElse : 'L'
100
- },
101
- relativeTime : {
102
- future : '%sमा',
103
- past : '%s अगाडी',
104
- s : 'केही समय',
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 : 1, // Monday is the first day of the week.
118
- doy : 7 // The week that contains Jan 1st is the first week of the year.
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 बजे'
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;
119
77
  }
120
- });
121
- }));
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 1st is the first week of the year.
119
+ }
120
+ });
121
+
122
+ return ne;
123
+
124
+ })));
@@ -0,0 +1,89 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Dutch (Belgium) [nl-be]
3
+ //! author : Joris Röling : https://github.com/jorisroling
4
+ //! author : Jacob Middag : https://github.com/middagj
5
+
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
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) {
23
+ if (!m) {
24
+ return monthsShortWithDots;
25
+ } else if (/-MMM-/.test(format)) {
26
+ return monthsShortWithoutDots[m.month()];
27
+ } else {
28
+ return monthsShortWithDots[m.month()];
29
+ }
30
+ },
31
+
32
+ monthsRegex: monthsRegex,
33
+ monthsShortRegex: monthsRegex,
34
+ monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
35
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
36
+
37
+ monthsParse : monthsParse,
38
+ longMonthsParse : monthsParse,
39
+ shortMonthsParse : monthsParse,
40
+
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'
52
+ },
53
+ calendar : {
54
+ sameDay: '[vandaag om] LT',
55
+ nextDay: '[morgen om] LT',
56
+ nextWeek: 'dddd [om] LT',
57
+ lastDay: '[gisteren om] LT',
58
+ lastWeek: '[afgelopen] dddd [om] LT',
59
+ sameElse: 'L'
60
+ },
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'
76
+ },
77
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
78
+ ordinal : function (number) {
79
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
80
+ },
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
+ });
86
+
87
+ return nlBe;
88
+
89
+ })));
@@ -1,69 +1,89 @@
1
- // moment.js locale configuration
2
- // locale : dutch (nl)
3
- // author : Joris Röling : https://github.com/jjupiter
1
+ //! moment.js locale configuration
2
+ //! locale : Dutch [nl]
3
+ //! author : Joris Röling : https://github.com/jorisroling
4
+ //! author : Jacob Middag : https://github.com/middagj
4
5
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
15
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
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
16
 
17
- return moment.defineLocale('nl', {
18
- months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
19
- monthsShort : function (m, format) {
20
- if (/-MMM-/.test(format)) {
21
- return monthsShortWithoutDots[m.month()];
22
- } else {
23
- return monthsShortWithDots[m.month()];
24
- }
25
- },
26
- weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
27
- weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
28
- weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
29
- longDateFormat : {
30
- LT : 'HH:mm',
31
- LTS : 'LT:ss',
32
- L : 'DD-MM-YYYY',
33
- LL : 'D MMMM YYYY',
34
- LLL : 'D MMMM YYYY LT',
35
- LLLL : 'dddd D MMMM YYYY LT'
36
- },
37
- calendar : {
38
- sameDay: '[vandaag om] LT',
39
- nextDay: '[morgen om] LT',
40
- nextWeek: 'dddd [om] LT',
41
- lastDay: '[gisteren om] LT',
42
- lastWeek: '[afgelopen] dddd [om] LT',
43
- sameElse: 'L'
44
- },
45
- relativeTime : {
46
- future : 'over %s',
47
- past : '%s geleden',
48
- s : 'een paar seconden',
49
- m : 'één minuut',
50
- mm : '%d minuten',
51
- h : 'één uur',
52
- hh : '%d uur',
53
- d : 'één dag',
54
- dd : '%d dagen',
55
- M : 'één maand',
56
- MM : '%d maanden',
57
- y : 'één jaar',
58
- yy : '%d jaar'
59
- },
60
- ordinalParse: /\d{1,2}(ste|de)/,
61
- ordinal : function (number) {
62
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
63
- },
64
- week : {
65
- dow : 1, // Monday is the first day of the week.
66
- doy : 4 // The week that contains Jan 4th is the first week of the year.
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) {
23
+ if (!m) {
24
+ return monthsShortWithDots;
25
+ } else if (/-MMM-/.test(format)) {
26
+ return monthsShortWithoutDots[m.month()];
27
+ } else {
28
+ return monthsShortWithDots[m.month()];
67
29
  }
68
- });
69
- }));
30
+ },
31
+
32
+ monthsRegex: monthsRegex,
33
+ monthsShortRegex: monthsRegex,
34
+ monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
35
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
36
+
37
+ monthsParse : monthsParse,
38
+ longMonthsParse : monthsParse,
39
+ shortMonthsParse : monthsParse,
40
+
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'
52
+ },
53
+ calendar : {
54
+ sameDay: '[vandaag om] LT',
55
+ nextDay: '[morgen om] LT',
56
+ nextWeek: 'dddd [om] LT',
57
+ lastDay: '[gisteren om] LT',
58
+ lastWeek: '[afgelopen] dddd [om] LT',
59
+ sameElse: 'L'
60
+ },
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'
76
+ },
77
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
78
+ ordinal : function (number) {
79
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
80
+ },
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
+ });
86
+
87
+ return nl;
88
+
89
+ })));
@@ -1,58 +1,61 @@
1
- // moment.js locale configuration
2
- // locale : norwegian nynorsk (nn)
3
- // author : https://github.com/mechuwind
1
+ //! moment.js locale configuration
2
+ //! locale : Nynorsk [nn]
3
+ //! author : https://github.com/mechuwind
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
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'
26
+ },
27
+ calendar : {
28
+ sameDay: '[I dag klokka] LT',
29
+ nextDay: '[I morgon klokka] LT',
30
+ nextWeek: 'dddd [klokka] LT',
31
+ lastDay: '[I går klokka] LT',
32
+ lastWeek: '[Føregåande] dddd [klokka] LT',
33
+ sameElse: 'L'
34
+ },
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'
50
+ },
51
+ 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.
12
56
  }
13
- }(function (moment) {
14
- return moment.defineLocale('nn', {
15
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
17
- weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
18
- weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
19
- weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD.MM.YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY LT',
26
- LLLL : 'dddd D MMMM YYYY LT'
27
- },
28
- calendar : {
29
- sameDay: '[I dag klokka] LT',
30
- nextDay: '[I morgon klokka] LT',
31
- nextWeek: 'dddd [klokka] LT',
32
- lastDay: '[I går klokka] LT',
33
- lastWeek: '[Føregåande] dddd [klokka] LT',
34
- sameElse: 'L'
35
- },
36
- relativeTime : {
37
- future : 'om %s',
38
- past : 'for %s sidan',
39
- s : 'nokre 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'
50
- },
51
- ordinalParse: /\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
- }
57
- });
58
- }));
57
+ });
58
+
59
+ return nn;
60
+
61
+ })));