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
@@ -2,66 +2,66 @@
2
2
  //! locale : Bulgarian [bg]
3
3
  //! author : Krasen Borisov : https://github.com/kraz
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';
5
+ import moment from '../moment';
11
6
 
12
-
13
- var bg = moment.defineLocale('bg', {
14
- months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
15
- monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
16
- weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
17
- weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
18
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
19
- longDateFormat : {
20
- LT : 'H:mm',
21
- LTS : 'H:mm:ss',
22
- L : 'D.MM.YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY H:mm',
25
- LLLL : 'dddd, D MMMM YYYY H:mm'
7
+ export default moment.defineLocale('bg', {
8
+ months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
12
+ weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
13
+ '_'
14
+ ),
15
+ weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
16
+ weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'H:mm',
19
+ LTS: 'H:mm:ss',
20
+ L: 'D.MM.YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY H:mm',
23
+ LLLL: 'dddd, D MMMM YYYY H:mm',
26
24
  },
27
- calendar : {
28
- sameDay : '[Днес в] LT',
29
- nextDay : '[Утре в] LT',
30
- nextWeek : 'dddd [в] LT',
31
- lastDay : '[Вчера в] LT',
32
- lastWeek : function () {
25
+ calendar: {
26
+ sameDay: '[Днес в] LT',
27
+ nextDay: '[Утре в] LT',
28
+ nextWeek: 'dddd [в] LT',
29
+ lastDay: '[Вчера в] LT',
30
+ lastWeek: function () {
33
31
  switch (this.day()) {
34
32
  case 0:
35
33
  case 3:
36
34
  case 6:
37
- return '[В изминалата] dddd [в] LT';
35
+ return '[Миналата] dddd [в] LT';
38
36
  case 1:
39
37
  case 2:
40
38
  case 4:
41
39
  case 5:
42
- return '[В изминалия] dddd [в] LT';
40
+ return '[Миналия] dddd [в] LT';
43
41
  }
44
42
  },
45
- sameElse : 'L'
43
+ sameElse: 'L',
46
44
  },
47
- relativeTime : {
48
- future : 'след %s',
49
- past : 'преди %s',
50
- s : 'няколко секунди',
51
- ss : '%d секунди',
52
- m : 'минута',
53
- mm : '%d минути',
54
- h : 'час',
55
- hh : '%d часа',
56
- d : 'ден',
57
- dd : '%d дни',
58
- M : 'месец',
59
- MM : '%d месеца',
60
- y : 'година',
61
- yy : '%d години'
45
+ relativeTime: {
46
+ future: 'след %s',
47
+ past: 'преди %s',
48
+ s: 'няколко секунди',
49
+ ss: '%d секунди',
50
+ m: 'минута',
51
+ mm: '%d минути',
52
+ h: 'час',
53
+ hh: '%d часа',
54
+ d: 'ден',
55
+ dd: '%d дена',
56
+ w: 'седмица',
57
+ ww: '%d седмици',
58
+ M: 'месец',
59
+ MM: '%d месеца',
60
+ y: 'година',
61
+ yy: '%d години',
62
62
  },
63
63
  dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
64
- ordinal : function (number) {
64
+ ordinal: function (number) {
65
65
  var lastDigit = number % 10,
66
66
  last2Digits = number % 100;
67
67
  if (number === 0) {
@@ -80,12 +80,8 @@ var bg = moment.defineLocale('bg', {
80
80
  return number + '-ти';
81
81
  }
82
82
  },
83
- week : {
84
- dow : 1, // Monday is the first day of the week.
85
- doy : 7 // The week that contains Jan 1st is the first week of the year.
86
- }
83
+ week: {
84
+ dow: 1, // Monday is the first day of the week.
85
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
86
+ },
87
87
  });
88
-
89
- return bg;
90
-
91
- })));
@@ -1,60 +1,52 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Bambara [bm]
3
3
  //! author : Estelle Comment : https://github.com/estellecomment
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
4
  // Language contact person : Abdoufata Kane : https://github.com/abdoufata
13
5
 
14
- var bm = moment.defineLocale('bm', {
15
- months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
16
- monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
17
- weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
18
- weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
19
- weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'HH:mm:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'MMMM [tile] D [san] YYYY',
25
- LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
26
- LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
6
+ import moment from '../moment';
7
+
8
+ export default moment.defineLocale('bm', {
9
+ months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
10
+ '_'
11
+ ),
12
+ monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
13
+ weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
14
+ weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
15
+ weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
16
+ longDateFormat: {
17
+ LT: 'HH:mm',
18
+ LTS: 'HH:mm:ss',
19
+ L: 'DD/MM/YYYY',
20
+ LL: 'MMMM [tile] D [san] YYYY',
21
+ LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
22
+ LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
27
23
  },
28
- calendar : {
29
- sameDay : '[Bi lɛrɛ] LT',
30
- nextDay : '[Sini lɛrɛ] LT',
31
- nextWeek : 'dddd [don lɛrɛ] LT',
32
- lastDay : '[Kunu lɛrɛ] LT',
33
- lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
34
- sameElse : 'L'
24
+ calendar: {
25
+ sameDay: '[Bi lɛrɛ] LT',
26
+ nextDay: '[Sini lɛrɛ] LT',
27
+ nextWeek: 'dddd [don lɛrɛ] LT',
28
+ lastDay: '[Kunu lɛrɛ] LT',
29
+ lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
30
+ sameElse: 'L',
35
31
  },
36
- relativeTime : {
37
- future : '%s kɔnɔ',
38
- past : 'a bɛ %s bɔ',
39
- s : 'sanga dama dama',
40
- ss : 'sekondi %d',
41
- m : 'miniti kelen',
42
- mm : 'miniti %d',
43
- h : 'lɛrɛ kelen',
44
- hh : 'lɛrɛ %d',
45
- d : 'tile kelen',
46
- dd : 'tile %d',
47
- M : 'kalo kelen',
48
- MM : 'kalo %d',
49
- y : 'san kelen',
50
- yy : 'san %d'
32
+ relativeTime: {
33
+ future: '%s kɔnɔ',
34
+ past: 'a bɛ %s bɔ',
35
+ s: 'sanga dama dama',
36
+ ss: 'sekondi %d',
37
+ m: 'miniti kelen',
38
+ mm: 'miniti %d',
39
+ h: 'lɛrɛ kelen',
40
+ hh: 'lɛrɛ %d',
41
+ d: 'tile kelen',
42
+ dd: 'tile %d',
43
+ M: 'kalo kelen',
44
+ MM: 'kalo %d',
45
+ y: 'san kelen',
46
+ yy: 'san %d',
47
+ },
48
+ week: {
49
+ dow: 1, // Monday is the first day of the week.
50
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
51
51
  },
52
- week : {
53
- dow : 1, // Monday is the first day of the week.
54
- doy : 4 // The week that contains Jan 4th is the first week of the year.
55
- }
56
52
  });
57
-
58
- return bm;
59
-
60
- })));
@@ -0,0 +1,128 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Bengali (Bangladesh) [bn-bd]
3
+ //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
4
+
5
+ import moment from '../moment';
6
+
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
+ };
31
+
32
+ export default moment.defineLocale('bn-bd', {
33
+ months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
37
+ '_'
38
+ ),
39
+ weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
40
+ '_'
41
+ ),
42
+ weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
43
+ weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
44
+ longDateFormat: {
45
+ LT: 'A h:mm সময়',
46
+ LTS: 'A h:mm:ss সময়',
47
+ L: 'DD/MM/YYYY',
48
+ LL: 'D MMMM YYYY',
49
+ LLL: 'D MMMM YYYY, A h:mm সময়',
50
+ LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
51
+ },
52
+ calendar: {
53
+ sameDay: '[আজ] LT',
54
+ nextDay: '[আগামীকাল] LT',
55
+ nextWeek: 'dddd, LT',
56
+ lastDay: '[গতকাল] LT',
57
+ lastWeek: '[গত] dddd, LT',
58
+ sameElse: 'L',
59
+ },
60
+ relativeTime: {
61
+ future: '%s পরে',
62
+ past: '%s আগে',
63
+ s: 'কয়েক সেকেন্ড',
64
+ ss: '%d সেকেন্ড',
65
+ m: 'এক মিনিট',
66
+ mm: '%d মিনিট',
67
+ h: 'এক ঘন্টা',
68
+ hh: '%d ঘন্টা',
69
+ d: 'এক দিন',
70
+ dd: '%d দিন',
71
+ M: 'এক মাস',
72
+ MM: '%d মাস',
73
+ y: 'এক বছর',
74
+ yy: '%d বছর',
75
+ },
76
+ preparse: function (string) {
77
+ return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
78
+ return numberMap[match];
79
+ });
80
+ },
81
+ postformat: function (string) {
82
+ return string.replace(/\d/g, function (match) {
83
+ return symbolMap[match];
84
+ });
85
+ },
86
+
87
+ meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
88
+ meridiemHour: function (hour, meridiem) {
89
+ if (hour === 12) {
90
+ hour = 0;
91
+ }
92
+ if (meridiem === 'রাত') {
93
+ return hour < 4 ? hour : hour + 12;
94
+ } else if (meridiem === 'ভোর') {
95
+ return hour;
96
+ } else if (meridiem === 'সকাল') {
97
+ return hour;
98
+ } else if (meridiem === 'দুপুর') {
99
+ return hour >= 3 ? hour : hour + 12;
100
+ } else if (meridiem === 'বিকাল') {
101
+ return hour + 12;
102
+ } else if (meridiem === 'সন্ধ্যা') {
103
+ return hour + 12;
104
+ }
105
+ },
106
+
107
+ meridiem: function (hour, minute, isLower) {
108
+ if (hour < 4) {
109
+ return 'রাত';
110
+ } else if (hour < 6) {
111
+ return 'ভোর';
112
+ } else if (hour < 12) {
113
+ return 'সকাল';
114
+ } else if (hour < 15) {
115
+ return 'দুপুর';
116
+ } else if (hour < 18) {
117
+ return 'বিকাল';
118
+ } else if (hour < 20) {
119
+ return 'সন্ধ্যা';
120
+ } else {
121
+ return 'রাত';
122
+ }
123
+ },
124
+ week: {
125
+ dow: 0, // Sunday is the first day of the week.
126
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
127
+ },
128
+ });
@@ -2,76 +2,76 @@
2
2
  //! locale : Bengali [bn]
3
3
  //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
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 bn = moment.defineLocale('bn', {
39
- months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
40
- monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
41
- weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
42
- weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
43
- weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
44
- longDateFormat : {
45
- LT : 'A h:mm সময়',
46
- LTS : 'A h:mm:ss সময়',
47
- L : 'DD/MM/YYYY',
48
- LL : 'D MMMM YYYY',
49
- LLL : 'D MMMM YYYY, A h:mm সময়',
50
- LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
32
+ export default moment.defineLocale('bn', {
33
+ months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
37
+ '_'
38
+ ),
39
+ weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
40
+ '_'
41
+ ),
42
+ weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
43
+ weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
44
+ longDateFormat: {
45
+ LT: 'A h:mm সময়',
46
+ LTS: 'A h:mm:ss সময়',
47
+ L: 'DD/MM/YYYY',
48
+ LL: 'D MMMM YYYY',
49
+ LLL: 'D MMMM YYYY, A h:mm সময়',
50
+ LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
51
51
  },
52
- calendar : {
53
- sameDay : '[আজ] LT',
54
- nextDay : '[আগামীকাল] LT',
55
- nextWeek : 'dddd, LT',
56
- lastDay : '[গতকাল] LT',
57
- lastWeek : '[গত] dddd, LT',
58
- sameElse : 'L'
52
+ calendar: {
53
+ sameDay: '[আজ] LT',
54
+ nextDay: '[আগামীকাল] LT',
55
+ nextWeek: 'dddd, LT',
56
+ lastDay: '[গতকাল] LT',
57
+ lastWeek: '[গত] dddd, LT',
58
+ sameElse: 'L',
59
59
  },
60
- relativeTime : {
61
- future : '%s পরে',
62
- past : '%s আগে',
63
- s : 'কয়েক সেকেন্ড',
64
- ss : '%d সেকেন্ড',
65
- m : 'এক মিনিট',
66
- mm : '%d মিনিট',
67
- h : 'এক ঘন্টা',
68
- hh : '%d ঘন্টা',
69
- d : 'এক দিন',
70
- dd : '%d দিন',
71
- M : 'এক মাস',
72
- MM : '%d মাস',
73
- y : 'এক বছর',
74
- yy : '%d বছর'
60
+ relativeTime: {
61
+ future: '%s পরে',
62
+ past: '%s আগে',
63
+ s: 'কয়েক সেকেন্ড',
64
+ ss: '%d সেকেন্ড',
65
+ m: 'এক মিনিট',
66
+ mm: '%d মিনিট',
67
+ h: 'এক ঘন্টা',
68
+ hh: '%d ঘন্টা',
69
+ d: 'এক দিন',
70
+ dd: '%d দিন',
71
+ M: 'এক মাস',
72
+ MM: '%d মাস',
73
+ y: 'এক বছর',
74
+ yy: '%d বছর',
75
75
  },
76
76
  preparse: function (string) {
77
77
  return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
@@ -84,19 +84,21 @@ var bn = moment.defineLocale('bn', {
84
84
  });
85
85
  },
86
86
  meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
87
- meridiemHour : function (hour, meridiem) {
87
+ meridiemHour: function (hour, meridiem) {
88
88
  if (hour === 12) {
89
89
  hour = 0;
90
90
  }
91
- if ((meridiem === 'রাত' && hour >= 4) ||
92
- (meridiem === 'দুপুর' && hour < 5) ||
93
- meridiem === 'বিকাল') {
91
+ if (
92
+ (meridiem === 'রাত' && hour >= 4) ||
93
+ (meridiem === 'দুপুর' && hour < 5) ||
94
+ meridiem === 'বিকাল'
95
+ ) {
94
96
  return hour + 12;
95
97
  } else {
96
98
  return hour;
97
99
  }
98
100
  },
99
- meridiem : function (hour, minute, isLower) {
101
+ meridiem: function (hour, minute, isLower) {
100
102
  if (hour < 4) {
101
103
  return 'রাত';
102
104
  } else if (hour < 10) {
@@ -109,12 +111,8 @@ var bn = moment.defineLocale('bn', {
109
111
  return 'রাত';
110
112
  }
111
113
  },
112
- week : {
113
- dow : 0, // Sunday is the first day of the week.
114
- doy : 6 // The week that contains Jan 1st is the first week of the year.
115
- }
114
+ week: {
115
+ dow: 0, // Sunday is the first day of the week.
116
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
117
+ },
116
118
  });
117
-
118
- return bn;
119
-
120
- })));