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
@@ -3,21 +3,15 @@
3
3
  //! author : mweimerskirch : https://github.com/mweimerskirch
4
4
  //! author : David Raison : https://github.com/kwisatz
5
5
 
6
- ;(function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined'
8
- && typeof require === 'function' ? factory(require('../moment')) :
9
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
- factory(global.moment)
11
- }(this, (function (moment) { 'use strict';
12
-
6
+ import moment from '../moment';
13
7
 
14
8
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
9
  var format = {
16
- 'm': ['eng Minutt', 'enger Minutt'],
17
- 'h': ['eng Stonn', 'enger Stonn'],
18
- 'd': ['een Dag', 'engem Dag'],
19
- 'M': ['ee Mount', 'engem Mount'],
20
- 'y': ['ee Joer', 'engem Joer']
10
+ m: ['eng Minutt', 'enger Minutt'],
11
+ h: ['eng Stonn', 'enger Stonn'],
12
+ d: ['een Dag', 'engem Dag'],
13
+ M: ['ee Mount', 'engem Mount'],
14
+ y: ['ee Joer', 'engem Joer'],
21
15
  };
22
16
  return withoutSuffix ? format[key][0] : format[key][1];
23
17
  }
@@ -58,7 +52,8 @@ function eifelerRegelAppliesToNumber(number) {
58
52
  return false;
59
53
  } else if (number < 100) {
60
54
  // 2 digits
61
- var lastDigit = number % 10, firstDigit = number / 10;
55
+ var lastDigit = number % 10,
56
+ firstDigit = number / 10;
62
57
  if (lastDigit === 0) {
63
58
  return eifelerRegelAppliesToNumber(firstDigit);
64
59
  }
@@ -76,21 +71,27 @@ function eifelerRegelAppliesToNumber(number) {
76
71
  }
77
72
  }
78
73
 
79
- var lb = moment.defineLocale('lb', {
80
- months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
81
- monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
82
- monthsParseExact : true,
83
- weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
74
+ export default moment.defineLocale('lb', {
75
+ months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
76
+ '_'
77
+ ),
78
+ monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
79
+ '_'
80
+ ),
81
+ monthsParseExact: true,
82
+ weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
83
+ '_'
84
+ ),
84
85
  weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
85
86
  weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
86
- weekdaysParseExact : true,
87
+ weekdaysParseExact: true,
87
88
  longDateFormat: {
88
89
  LT: 'H:mm [Auer]',
89
90
  LTS: 'H:mm:ss [Auer]',
90
91
  L: 'DD.MM.YYYY',
91
92
  LL: 'D. MMMM YYYY',
92
93
  LLL: 'D. MMMM YYYY H:mm [Auer]',
93
- LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
94
+ LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
94
95
  },
95
96
  calendar: {
96
97
  sameDay: '[Haut um] LT',
@@ -107,32 +108,28 @@ var lb = moment.defineLocale('lb', {
107
108
  default:
108
109
  return '[Leschte] dddd [um] LT';
109
110
  }
110
- }
111
+ },
111
112
  },
112
- relativeTime : {
113
- future : processFutureTime,
114
- past : processPastTime,
115
- s : 'e puer Sekonnen',
116
- ss : '%d Sekonnen',
117
- m : processRelativeTime,
118
- mm : '%d Minutten',
119
- h : processRelativeTime,
120
- hh : '%d Stonnen',
121
- d : processRelativeTime,
122
- dd : '%d Deeg',
123
- M : processRelativeTime,
124
- MM : '%d Méint',
125
- y : processRelativeTime,
126
- yy : '%d Joer'
113
+ relativeTime: {
114
+ future: processFutureTime,
115
+ past: processPastTime,
116
+ s: 'e puer Sekonnen',
117
+ ss: '%d Sekonnen',
118
+ m: processRelativeTime,
119
+ mm: '%d Minutten',
120
+ h: processRelativeTime,
121
+ hh: '%d Stonnen',
122
+ d: processRelativeTime,
123
+ dd: '%d Deeg',
124
+ M: processRelativeTime,
125
+ MM: '%d Méint',
126
+ y: processRelativeTime,
127
+ yy: '%d Joer',
127
128
  },
128
129
  dayOfMonthOrdinalParse: /\d{1,2}\./,
129
130
  ordinal: '%d.',
130
131
  week: {
131
132
  dow: 1, // Monday is the first day of the week.
132
- doy: 4 // The week that contains Jan 4th is the first week of the year.
133
- }
133
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
134
+ },
134
135
  });
135
-
136
- return lb;
137
-
138
- })));
@@ -2,70 +2,64 @@
2
2
  //! locale : Lao [lo]
3
3
  //! author : Ryan Hart : https://github.com/ryanhart2
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 lo = moment.defineLocale('lo', {
14
- months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15
- monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
16
- weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
17
- weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
18
- weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
19
- weekdaysParseExact : true,
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'HH:mm:ss',
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'
7
+ export default moment.defineLocale('lo', {
8
+ months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
12
+ '_'
13
+ ),
14
+ weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15
+ weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
16
+ weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
17
+ weekdaysParseExact: true,
18
+ longDateFormat: {
19
+ LT: 'HH:mm',
20
+ LTS: 'HH:mm:ss',
21
+ L: 'DD/MM/YYYY',
22
+ LL: 'D MMMM YYYY',
23
+ LLL: 'D MMMM YYYY HH:mm',
24
+ LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
27
25
  },
28
26
  meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
29
27
  isPM: function (input) {
30
28
  return input === 'ຕອນແລງ';
31
29
  },
32
- meridiem : function (hour, minute, isLower) {
30
+ meridiem: function (hour, minute, isLower) {
33
31
  if (hour < 12) {
34
32
  return 'ຕອນເຊົ້າ';
35
33
  } else {
36
34
  return 'ຕອນແລງ';
37
35
  }
38
36
  },
39
- calendar : {
40
- sameDay : '[ມື້ນີ້ເວລາ] LT',
41
- nextDay : '[ມື້ອື່ນເວລາ] LT',
42
- nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
43
- lastDay : '[ມື້ວານນີ້ເວລາ] LT',
44
- lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
45
- sameElse : 'L'
37
+ calendar: {
38
+ sameDay: '[ມື້ນີ້ເວລາ] LT',
39
+ nextDay: '[ມື້ອື່ນເວລາ] LT',
40
+ nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
41
+ lastDay: '[ມື້ວານນີ້ເວລາ] LT',
42
+ lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
43
+ sameElse: 'L',
46
44
  },
47
- relativeTime : {
48
- future : 'ອີກ %s',
49
- past : '%sຜ່ານມາ',
50
- s : 'ບໍ່ເທົ່າໃດວິນາທີ',
51
- ss : '%d ວິນາທີ' ,
52
- m : '1 ນາທີ',
53
- mm : '%d ນາທີ',
54
- h : '1 ຊົ່ວໂມງ',
55
- hh : '%d ຊົ່ວໂມງ',
56
- d : '1 ມື້',
57
- dd : '%d ມື້',
58
- M : '1 ເດືອນ',
59
- MM : '%d ເດືອນ',
60
- y : '1 ປີ',
61
- yy : '%d ປີ'
45
+ relativeTime: {
46
+ future: 'ອີກ %s',
47
+ past: '%sຜ່ານມາ',
48
+ s: 'ບໍ່ເທົ່າໃດວິນາທີ',
49
+ ss: '%d ວິນາທີ',
50
+ m: '1 ນາທີ',
51
+ mm: '%d ນາທີ',
52
+ h: '1 ຊົ່ວໂມງ',
53
+ hh: '%d ຊົ່ວໂມງ',
54
+ d: '1 ມື້',
55
+ dd: '%d ມື້',
56
+ M: '1 ເດືອນ',
57
+ MM: '%d ເດືອນ',
58
+ y: '1 ປີ',
59
+ yy: '%d ປີ',
62
60
  },
63
61
  dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
64
- ordinal : function (number) {
62
+ ordinal: function (number) {
65
63
  return 'ທີ່' + number;
66
- }
64
+ },
67
65
  });
68
-
69
- return lo;
70
-
71
- })));
@@ -2,26 +2,20 @@
2
2
  //! locale : Lithuanian [lt]
3
3
  //! author : Mindaugas Mozūras : https://github.com/mmozuras
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 units = {
14
- 'ss' : 'sekundė_sekundžių_sekundes',
15
- 'm' : 'minutė_minutės_minutę',
16
- 'mm': 'minutės_minučių_minutes',
17
- 'h' : 'valanda_valandos_valandą',
18
- 'hh': 'valandos_valandų_valandas',
19
- 'd' : 'diena_dienos_dieną',
20
- 'dd': 'dienos_dienų_dienas',
21
- 'M' : 'mėnuo_mėnesio_mėnesį',
22
- 'MM': 'mėnesiai_mėnesių_mėnesius',
23
- 'y' : 'metai_metų_metus',
24
- 'yy': 'metai_metų_metus'
8
+ ss: 'sekundė_sekundžių_sekundes',
9
+ m: 'minutė_minutės_minutę',
10
+ mm: 'minutės_minučių_minutes',
11
+ h: 'valanda_valandos_valandą',
12
+ hh: 'valandos_valandų_valandas',
13
+ d: 'diena_dienos_dieną',
14
+ dd: 'dienos_dienų_dienas',
15
+ M: 'mėnuo_mėnesio_mėnesį',
16
+ MM: 'mėnesiai_mėnesių_mėnesius',
17
+ y: 'metai_metų_metus',
18
+ yy: 'metai_metų_metus',
25
19
  };
26
20
  function translateSeconds(number, withoutSuffix, key, isFuture) {
27
21
  if (withoutSuffix) {
@@ -31,7 +25,11 @@ function translateSeconds(number, withoutSuffix, key, isFuture) {
31
25
  }
32
26
  }
33
27
  function translateSingular(number, withoutSuffix, key, isFuture) {
34
- return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
28
+ return withoutSuffix
29
+ ? forms(key)[0]
30
+ : isFuture
31
+ ? forms(key)[1]
32
+ : forms(key)[2];
35
33
  }
36
34
  function special(number) {
37
35
  return number % 10 === 0 || (number > 10 && number < 20);
@@ -42,7 +40,9 @@ function forms(key) {
42
40
  function translate(number, withoutSuffix, key, isFuture) {
43
41
  var result = number + ' ';
44
42
  if (number === 1) {
45
- return result + translateSingular(number, withoutSuffix, key[0], isFuture);
43
+ return (
44
+ result + translateSingular(number, withoutSuffix, key[0], isFuture)
45
+ );
46
46
  } else if (withoutSuffix) {
47
47
  return result + (special(number) ? forms(key)[1] : forms(key)[0]);
48
48
  } else {
@@ -53,67 +53,71 @@ function translate(number, withoutSuffix, key, isFuture) {
53
53
  }
54
54
  }
55
55
  }
56
- var lt = moment.defineLocale('lt', {
57
- months : {
58
- format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
59
- standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
60
- isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
56
+ export default moment.defineLocale('lt', {
57
+ months: {
58
+ format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
59
+ '_'
60
+ ),
61
+ standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
62
+ '_'
63
+ ),
64
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
61
65
  },
62
- monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
63
- weekdays : {
64
- format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
65
- standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
66
- isFormat: /dddd HH:mm/
66
+ monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
67
+ weekdays: {
68
+ format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
69
+ '_'
70
+ ),
71
+ standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
72
+ '_'
73
+ ),
74
+ isFormat: /dddd HH:mm/,
67
75
  },
68
- weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
69
- weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
70
- weekdaysParseExact : true,
71
- longDateFormat : {
72
- LT : 'HH:mm',
73
- LTS : 'HH:mm:ss',
74
- L : 'YYYY-MM-DD',
75
- LL : 'YYYY [m.] MMMM D [d.]',
76
- LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
77
- LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
78
- l : 'YYYY-MM-DD',
79
- ll : 'YYYY [m.] MMMM D [d.]',
80
- lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
81
- llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
76
+ weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
77
+ weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
78
+ weekdaysParseExact: true,
79
+ longDateFormat: {
80
+ LT: 'HH:mm',
81
+ LTS: 'HH:mm:ss',
82
+ L: 'YYYY-MM-DD',
83
+ LL: 'YYYY [m.] MMMM D [d.]',
84
+ LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
85
+ LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
86
+ l: 'YYYY-MM-DD',
87
+ ll: 'YYYY [m.] MMMM D [d.]',
88
+ lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
89
+ llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
82
90
  },
83
- calendar : {
84
- sameDay : '[Šiandien] LT',
85
- nextDay : '[Rytoj] LT',
86
- nextWeek : 'dddd LT',
87
- lastDay : '[Vakar] LT',
88
- lastWeek : '[Praėjusį] dddd LT',
89
- sameElse : 'L'
91
+ calendar: {
92
+ sameDay: '[Šiandien] LT',
93
+ nextDay: '[Rytoj] LT',
94
+ nextWeek: 'dddd LT',
95
+ lastDay: '[Vakar] LT',
96
+ lastWeek: '[Praėjusį] dddd LT',
97
+ sameElse: 'L',
90
98
  },
91
- relativeTime : {
92
- future : 'po %s',
93
- past : 'prieš %s',
94
- s : translateSeconds,
95
- ss : translate,
96
- m : translateSingular,
97
- mm : translate,
98
- h : translateSingular,
99
- hh : translate,
100
- d : translateSingular,
101
- dd : translate,
102
- M : translateSingular,
103
- MM : translate,
104
- y : translateSingular,
105
- yy : translate
99
+ relativeTime: {
100
+ future: 'po %s',
101
+ past: 'prieš %s',
102
+ s: translateSeconds,
103
+ ss: translate,
104
+ m: translateSingular,
105
+ mm: translate,
106
+ h: translateSingular,
107
+ hh: translate,
108
+ d: translateSingular,
109
+ dd: translate,
110
+ M: translateSingular,
111
+ MM: translate,
112
+ y: translateSingular,
113
+ yy: translate,
106
114
  },
107
115
  dayOfMonthOrdinalParse: /\d{1,2}-oji/,
108
- ordinal : function (number) {
116
+ ordinal: function (number) {
109
117
  return number + '-oji';
110
118
  },
111
- week : {
112
- dow : 1, // Monday is the first day of the week.
113
- doy : 4 // The week that contains Jan 4th is the first week of the year.
114
- }
119
+ week: {
120
+ dow: 1, // Monday is the first day of the week.
121
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
122
+ },
115
123
  });
116
-
117
- return lt;
118
-
119
- })));
@@ -3,26 +3,20 @@
3
3
  //! author : Kristaps Karlsons : https://github.com/skakri
4
4
  //! author : Jānis Elmeris : https://github.com/JanisE
5
5
 
6
- ;(function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined'
8
- && typeof require === 'function' ? factory(require('../moment')) :
9
- typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
- factory(global.moment)
11
- }(this, (function (moment) { 'use strict';
12
-
6
+ import moment from '../moment';
13
7
 
14
8
  var units = {
15
- 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
16
- 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
17
- 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
18
- 'h': 'stundas_stundām_stunda_stundas'.split('_'),
19
- 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
20
- 'd': 'dienas_dienām_diena_dienas'.split('_'),
21
- 'dd': 'dienas_dienām_diena_dienas'.split('_'),
22
- 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
23
- 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
24
- 'y': 'gada_gadiem_gads_gadi'.split('_'),
25
- 'yy': 'gada_gadiem_gads_gadi'.split('_')
9
+ ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
10
+ m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
11
+ mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
12
+ h: 'stundas_stundām_stunda_stundas'.split('_'),
13
+ hh: 'stundas_stundām_stunda_stundas'.split('_'),
14
+ d: 'dienas_dienām_diena_dienas'.split('_'),
15
+ dd: 'dienas_dienām_diena_dienas'.split('_'),
16
+ M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
17
+ MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
18
+ y: 'gada_gadiem_gads_gadi'.split('_'),
19
+ yy: 'gada_gadiem_gads_gadi'.split('_'),
26
20
  };
27
21
  /**
28
22
  * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
@@ -47,53 +41,53 @@ function relativeSeconds(number, withoutSuffix) {
47
41
  return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
48
42
  }
49
43
 
50
- var lv = moment.defineLocale('lv', {
51
- months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
52
- monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
53
- weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
54
- weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
55
- weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
56
- weekdaysParseExact : true,
57
- longDateFormat : {
58
- LT : 'HH:mm',
59
- LTS : 'HH:mm:ss',
60
- L : 'DD.MM.YYYY.',
61
- LL : 'YYYY. [gada] D. MMMM',
62
- LLL : 'YYYY. [gada] D. MMMM, HH:mm',
63
- LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
44
+ export default moment.defineLocale('lv', {
45
+ months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
46
+ '_'
47
+ ),
48
+ monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
49
+ weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
50
+ '_'
51
+ ),
52
+ weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
53
+ weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
54
+ weekdaysParseExact: true,
55
+ longDateFormat: {
56
+ LT: 'HH:mm',
57
+ LTS: 'HH:mm:ss',
58
+ L: 'DD.MM.YYYY.',
59
+ LL: 'YYYY. [gada] D. MMMM',
60
+ LLL: 'YYYY. [gada] D. MMMM, HH:mm',
61
+ LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
64
62
  },
65
- calendar : {
66
- sameDay : '[Šodien pulksten] LT',
67
- nextDay : '[Rīt pulksten] LT',
68
- nextWeek : 'dddd [pulksten] LT',
69
- lastDay : '[Vakar pulksten] LT',
70
- lastWeek : '[Pagājušā] dddd [pulksten] LT',
71
- sameElse : 'L'
63
+ calendar: {
64
+ sameDay: '[Šodien pulksten] LT',
65
+ nextDay: '[Rīt pulksten] LT',
66
+ nextWeek: 'dddd [pulksten] LT',
67
+ lastDay: '[Vakar pulksten] LT',
68
+ lastWeek: '[Pagājušā] dddd [pulksten] LT',
69
+ sameElse: 'L',
72
70
  },
73
- relativeTime : {
74
- future : 'pēc %s',
75
- past : 'pirms %s',
76
- s : relativeSeconds,
77
- ss : relativeTimeWithPlural,
78
- m : relativeTimeWithSingular,
79
- mm : relativeTimeWithPlural,
80
- h : relativeTimeWithSingular,
81
- hh : relativeTimeWithPlural,
82
- d : relativeTimeWithSingular,
83
- dd : relativeTimeWithPlural,
84
- M : relativeTimeWithSingular,
85
- MM : relativeTimeWithPlural,
86
- y : relativeTimeWithSingular,
87
- yy : relativeTimeWithPlural
71
+ relativeTime: {
72
+ future: 'pēc %s',
73
+ past: 'pirms %s',
74
+ s: relativeSeconds,
75
+ ss: relativeTimeWithPlural,
76
+ m: relativeTimeWithSingular,
77
+ mm: relativeTimeWithPlural,
78
+ h: relativeTimeWithSingular,
79
+ hh: relativeTimeWithPlural,
80
+ d: relativeTimeWithSingular,
81
+ dd: relativeTimeWithPlural,
82
+ M: relativeTimeWithSingular,
83
+ MM: relativeTimeWithPlural,
84
+ y: relativeTimeWithSingular,
85
+ yy: relativeTimeWithPlural,
88
86
  },
89
87
  dayOfMonthOrdinalParse: /\d{1,2}\./,
90
- ordinal : '%d.',
91
- week : {
92
- dow : 1, // Monday is the first day of the week.
93
- doy : 4 // The week that contains Jan 4th is the first week of the year.
94
- }
88
+ ordinal: '%d.',
89
+ week: {
90
+ dow: 1, // Monday is the first day of the week.
91
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
92
+ },
95
93
  });
96
-
97
- return lv;
98
-
99
- })));