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,56 +1,59 @@
1
- // moment.js locale configuration
2
- // locale : uzbek (uz)
3
- // author : Sardor Muminov : https://github.com/muminoff
1
+ //! moment.js locale configuration
2
+ //! locale : Uzbek [uz]
3
+ //! author : Sardor Muminov : https://github.com/muminoff
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 uz = moment.defineLocale('uz', {
14
+ months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
15
+ monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
16
+ weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
17
+ weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
18
+ weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.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 HH:mm',
25
+ LLLL : 'D MMMM YYYY, dddd HH:mm'
26
+ },
27
+ calendar : {
28
+ sameDay : '[Бугун соат] LT [да]',
29
+ nextDay : '[Эртага] LT [да]',
30
+ nextWeek : 'dddd [куни соат] LT [да]',
31
+ lastDay : '[Кеча соат] LT [да]',
32
+ lastWeek : '[Утган] dddd [куни соат] LT [да]',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'Якин %s ичида',
37
+ past : 'Бир неча %s олдин',
38
+ s : 'фурсат',
39
+ ss : '%d фурсат',
40
+ m : 'бир дакика',
41
+ mm : '%d дакика',
42
+ h : 'бир соат',
43
+ hh : '%d соат',
44
+ d : 'бир кун',
45
+ dd : '%d кун',
46
+ M : 'бир ой',
47
+ MM : '%d ой',
48
+ y : 'бир йил',
49
+ yy : '%d йил'
50
+ },
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 7 // The week that contains Jan 4th is the first week of the year.
12
54
  }
13
- }(function (moment) {
14
- return moment.defineLocale('uz', {
15
- months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
16
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
17
- weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
18
- weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
19
- weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.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 : 'D MMMM YYYY, dddd LT'
27
- },
28
- calendar : {
29
- sameDay : '[Бугун соат] LT [да]',
30
- nextDay : '[Эртага] LT [да]',
31
- nextWeek : 'dddd [куни соат] LT [да]',
32
- lastDay : '[Кеча соат] LT [да]',
33
- lastWeek : '[Утган] dddd [куни соат] LT [да]',
34
- sameElse : 'L'
35
- },
36
- relativeTime : {
37
- future : 'Якин %s ичида',
38
- past : 'Бир неча %s олдин',
39
- s : 'фурсат',
40
- m : 'бир дакика',
41
- mm : '%d дакика',
42
- h : 'бир соат',
43
- hh : '%d соат',
44
- d : 'бир кун',
45
- dd : '%d кун',
46
- M : 'бир ой',
47
- MM : '%d ой',
48
- y : 'бир йил',
49
- yy : '%d йил'
50
- },
51
- week : {
52
- dow : 1, // Monday is the first day of the week.
53
- doy : 7 // The week that contains Jan 4th is the first week of the year.
54
- }
55
- });
56
- }));
55
+ });
56
+
57
+ return uz;
58
+
59
+ })));
@@ -1,64 +1,80 @@
1
- // moment.js locale configuration
2
- // locale : vietnamese (vi)
3
- // author : Bang Nguyen : https://github.com/bangnk
1
+ //! moment.js locale configuration
2
+ //! locale : Vietnamese [vi]
3
+ //! author : Bang Nguyen : https://github.com/bangnk
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
- return moment.defineLocale('vi', {
15
- months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
16
- monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
17
- weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18
- weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19
- weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM [năm] YYYY',
25
- LLL : 'D MMMM [năm] YYYY LT',
26
- LLLL : 'dddd, D MMMM [năm] YYYY LT',
27
- l : 'DD/M/YYYY',
28
- ll : 'D MMM YYYY',
29
- lll : 'D MMM YYYY LT',
30
- llll : 'ddd, D MMM YYYY LT'
31
- },
32
- calendar : {
33
- sameDay: '[Hôm nay lúc] LT',
34
- nextDay: '[Ngày mai lúc] LT',
35
- nextWeek: 'dddd [tuần tới lúc] LT',
36
- lastDay: '[Hôm qua lúc] LT',
37
- lastWeek: 'dddd [tuần rồi lúc] LT',
38
- sameElse: 'L'
39
- },
40
- relativeTime : {
41
- future : '%s tới',
42
- past : '%s trước',
43
- s : 'vài giây',
44
- m : 'một phút',
45
- mm : '%d phút',
46
- h : 'một giờ',
47
- hh : '%d giờ',
48
- d : 'một ngày',
49
- dd : '%d ngày',
50
- M : 'một tháng',
51
- MM : '%d tháng',
52
- y : 'một năm',
53
- yy : '%d năm'
54
- },
55
- ordinalParse: /\d{1,2}/,
56
- ordinal : function (number) {
57
- return number;
58
- },
59
- week : {
60
- dow : 1, // Monday is the first day of the week.
61
- doy : 4 // The week that contains Jan 4th is the first week of the year.
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 vi = moment.defineLocale('vi', {
14
+ months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
15
+ monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
16
+ monthsParseExact : true,
17
+ weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18
+ weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19
+ weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20
+ weekdaysParseExact : true,
21
+ meridiemParse: /sa|ch/i,
22
+ isPM : function (input) {
23
+ return /^ch$/i.test(input);
24
+ },
25
+ meridiem : function (hours, minutes, isLower) {
26
+ if (hours < 12) {
27
+ return isLower ? 'sa' : 'SA';
28
+ } else {
29
+ return isLower ? 'ch' : 'CH';
62
30
  }
63
- });
64
- }));
31
+ },
32
+ longDateFormat : {
33
+ LT : 'HH:mm',
34
+ LTS : 'HH:mm:ss',
35
+ L : 'DD/MM/YYYY',
36
+ LL : 'D MMMM [năm] YYYY',
37
+ LLL : 'D MMMM [năm] YYYY HH:mm',
38
+ LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
39
+ l : 'DD/M/YYYY',
40
+ ll : 'D MMM YYYY',
41
+ lll : 'D MMM YYYY HH:mm',
42
+ llll : 'ddd, D MMM YYYY HH:mm'
43
+ },
44
+ calendar : {
45
+ sameDay: '[Hôm nay lúc] LT',
46
+ nextDay: '[Ngày mai lúc] LT',
47
+ nextWeek: 'dddd [tuần tới lúc] LT',
48
+ lastDay: '[Hôm qua lúc] LT',
49
+ lastWeek: 'dddd [tuần rồi lúc] LT',
50
+ sameElse: 'L'
51
+ },
52
+ relativeTime : {
53
+ future : '%s tới',
54
+ past : '%s trước',
55
+ s : 'vài giây',
56
+ ss : '%d giây' ,
57
+ m : 'một phút',
58
+ mm : '%d phút',
59
+ h : 'một giờ',
60
+ hh : '%d giờ',
61
+ d : 'một ngày',
62
+ dd : '%d ngày',
63
+ M : 'một tháng',
64
+ MM : '%d tháng',
65
+ y : 'một năm',
66
+ yy : '%d năm'
67
+ },
68
+ dayOfMonthOrdinalParse: /\d{1,2}/,
69
+ ordinal : function (number) {
70
+ return number;
71
+ },
72
+ week : {
73
+ dow : 1, // Monday is the first day of the week.
74
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
75
+ }
76
+ });
77
+
78
+ return vi;
79
+
80
+ })));
@@ -0,0 +1,69 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Pseudo [x-pseudo]
3
+ //! author : Andrew Hood : https://github.com/andrewhood125
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
+
12
+
13
+ var xPseudo = moment.defineLocale('x-pseudo', {
14
+ months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
15
+ monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
16
+ monthsParseExact : true,
17
+ weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
18
+ weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
19
+ weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay : '[T~ódá~ý át] LT',
30
+ nextDay : '[T~ómó~rró~w át] LT',
31
+ nextWeek : 'dddd [át] LT',
32
+ lastDay : '[Ý~ést~érdá~ý át] LT',
33
+ lastWeek : '[L~ást] dddd [át] LT',
34
+ sameElse : 'L'
35
+ },
36
+ relativeTime : {
37
+ future : 'í~ñ %s',
38
+ past : '%s á~gó',
39
+ s : 'á ~féw ~sécó~ñds',
40
+ ss : '%d s~écóñ~ds',
41
+ m : 'á ~míñ~úté',
42
+ mm : '%d m~íñú~tés',
43
+ h : 'á~ñ hó~úr',
44
+ hh : '%d h~óúrs',
45
+ d : 'á ~dáý',
46
+ dd : '%d d~áýs',
47
+ M : 'á ~móñ~th',
48
+ MM : '%d m~óñt~hs',
49
+ y : 'á ~ýéár',
50
+ yy : '%d ý~éárs'
51
+ },
52
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
53
+ ordinal : function (number) {
54
+ var b = number % 10,
55
+ output = (~~(number % 100 / 10) === 1) ? 'th' :
56
+ (b === 1) ? 'st' :
57
+ (b === 2) ? 'nd' :
58
+ (b === 3) ? 'rd' : 'th';
59
+ return number + output;
60
+ },
61
+ week : {
62
+ dow : 1, // Monday is the first day of the week.
63
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
64
+ }
65
+ });
66
+
67
+ return xPseudo;
68
+
69
+ })));
@@ -0,0 +1,61 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Yoruba Nigeria [yo]
3
+ //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
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
+
12
+
13
+ var yo = moment.defineLocale('yo', {
14
+ months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
15
+ monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
16
+ weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
17
+ weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
18
+ weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'h:mm A',
21
+ LTS : 'h:mm:ss A',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY h:mm A',
25
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
26
+ },
27
+ calendar : {
28
+ sameDay : '[Ònì ni] LT',
29
+ nextDay : '[Ọ̀la ni] LT',
30
+ nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
31
+ lastDay : '[Àna ni] LT',
32
+ lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'ní %s',
37
+ past : '%s kọjá',
38
+ s : 'ìsẹjú aayá die',
39
+ ss :'aayá %d',
40
+ m : 'ìsẹjú kan',
41
+ mm : 'ìsẹjú %d',
42
+ h : 'wákati kan',
43
+ hh : 'wákati %d',
44
+ d : 'ọjọ́ kan',
45
+ dd : 'ọjọ́ %d',
46
+ M : 'osù kan',
47
+ MM : 'osù %d',
48
+ y : 'ọdún kan',
49
+ yy : 'ọdún %d'
50
+ },
51
+ dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
52
+ ordinal : 'ọjọ́ %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
+
59
+ return yo;
60
+
61
+ })));
@@ -1,93 +1,76 @@
1
- // moment.js locale configuration
2
- // locale : chinese (zh-cn)
3
- // author : suupic : https://github.com/suupic
4
- // author : Zeno Zeng : https://github.com/zenozeng
1
+ //! moment.js locale configuration
2
+ //! locale : Chinese (China) [zh-cn]
3
+ //! author : suupic : https://github.com/suupic
4
+ //! author : Zeno Zeng : https://github.com/zenozeng
5
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
- }
14
- }(function (moment) {
15
- return moment.defineLocale('zh-cn', {
16
- months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
17
- monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
18
- weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
19
- weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
20
- weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
21
- longDateFormat : {
22
- LT : 'Ah点mm',
23
- LTS : 'Ah点m分s秒',
24
- L : 'YYYY-MM-DD',
25
- LL : 'YYYY年MMMD日',
26
- LLL : 'YYYY年MMMDLT',
27
- LLLL : 'YYYY年MMMD日ddddLT',
28
- l : 'YYYY-MM-DD',
29
- ll : 'YYYY年MMMD日',
30
- lll : 'YYYY年MMMDLT',
31
- llll : 'YYYY年MMMD日ddddLT'
32
- },
33
- meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
34
- meridiemHour: function (hour, meridiem) {
35
- if (hour === 12) {
36
- hour = 0;
37
- }
38
- if (meridiem === '凌晨' || meridiem === '早上' ||
39
- meridiem === '上午') {
40
- return hour;
41
- } else if (meridiem === '下午' || meridiem === '晚上') {
42
- return hour + 12;
43
- } else {
44
- // '中午'
45
- return hour >= 11 ? hour : hour + 12;
46
- }
47
- },
48
- meridiem : function (hour, minute, isLower) {
49
- var hm = hour * 100 + minute;
50
- if (hm < 600) {
51
- return '凌晨';
52
- } else if (hm < 900) {
53
- return '早上';
54
- } else if (hm < 1130) {
55
- return '上午';
56
- } else if (hm < 1230) {
57
- return '中午';
58
- } else if (hm < 1800) {
59
- return '下午';
60
- } else {
61
- return '晚上';
62
- }
63
- },
64
- calendar : {
65
- sameDay : function () {
66
- return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
67
- },
68
- nextDay : function () {
69
- return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
70
- },
71
- lastDay : function () {
72
- return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
73
- },
74
- nextWeek : function () {
75
- var startOfWeek, prefix;
76
- startOfWeek = moment().startOf('week');
77
- prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
78
- return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
79
- },
80
- lastWeek : function () {
81
- var startOfWeek, prefix;
82
- startOfWeek = moment().startOf('week');
83
- prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
84
- return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
85
- },
86
- sameElse : 'LL'
87
- },
88
- ordinalParse: /\d{1,2}(日|月|周)/,
89
- ordinal : function (number, period) {
90
- switch (period) {
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 zhCn = moment.defineLocale('zh-cn', {
15
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
16
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
17
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18
+ weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
19
+ weekdaysMin : '______'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'YYYY/MM/DD',
24
+ LL : 'YYYY年M月D日',
25
+ LLL : 'YYYY年M月DAh点mm分',
26
+ LLLL : 'YYYY年M月DddddAh点mm分',
27
+ l : 'YYYY/M/D',
28
+ ll : 'YYYY年M月D日',
29
+ lll : 'YYYY年M月D HH:mm',
30
+ llll : 'YYYY年M月Ddddd HH:mm'
31
+ },
32
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
33
+ meridiemHour: function (hour, meridiem) {
34
+ if (hour === 12) {
35
+ hour = 0;
36
+ }
37
+ if (meridiem === '凌晨' || meridiem === '早上' ||
38
+ meridiem === '上午') {
39
+ return hour;
40
+ } else if (meridiem === '下午' || meridiem === '晚上') {
41
+ return hour + 12;
42
+ } else {
43
+ // '中午'
44
+ return hour >= 11 ? hour : hour + 12;
45
+ }
46
+ },
47
+ meridiem : function (hour, minute, isLower) {
48
+ var hm = hour * 100 + minute;
49
+ if (hm < 600) {
50
+ return '凌晨';
51
+ } else if (hm < 900) {
52
+ return '早上';
53
+ } else if (hm < 1130) {
54
+ return '上午';
55
+ } else if (hm < 1230) {
56
+ return '中午';
57
+ } else if (hm < 1800) {
58
+ return '下午';
59
+ } else {
60
+ return '晚上';
61
+ }
62
+ },
63
+ calendar : {
64
+ sameDay : '[今天]LT',
65
+ nextDay : '[明天]LT',
66
+ nextWeek : '[]ddddLT',
67
+ lastDay : '[昨天]LT',
68
+ lastWeek : '[上]ddddLT',
69
+ sameElse : 'L'
70
+ },
71
+ dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
72
+ ordinal : function (number, period) {
73
+ switch (period) {
91
74
  case 'd':
92
75
  case 'D':
93
76
  case 'DDD':
@@ -99,27 +82,31 @@
99
82
  return number + '周';
100
83
  default:
101
84
  return number;
102
- }
103
- },
104
- relativeTime : {
105
- future : '%s内',
106
- past : '%s前',
107
- s : '几秒',
108
- m : '1分钟',
109
- mm : '%d分钟',
110
- h : '1小时',
111
- hh : '%d小时',
112
- d : '1天',
113
- dd : '%d天',
114
- M : '1个月',
115
- MM : '%d个月',
116
- y : '1年',
117
- yy : '%d年'
118
- },
119
- week : {
120
- // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
121
- dow : 1, // Monday is the first day of the week.
122
- doy : 4 // The week that contains Jan 4th is the first week of the year.
123
85
  }
124
- });
125
- }));
86
+ },
87
+ relativeTime : {
88
+ future : '%s内',
89
+ past : '%s前',
90
+ s : '几秒',
91
+ ss : '%d 秒',
92
+ m : '1 分钟',
93
+ mm : '%d 分钟',
94
+ h : '1 小时',
95
+ hh : '%d 小时',
96
+ d : '1 天',
97
+ dd : '%d 天',
98
+ M : '1 个月',
99
+ MM : '%d 个月',
100
+ y : '1 年',
101
+ yy : '%d 年'
102
+ },
103
+ week : {
104
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
105
+ dow : 1, // Monday is the first day of the week.
106
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
107
+ }
108
+ });
109
+
110
+ return zhCn;
111
+
112
+ })));