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,76 +2,80 @@
2
2
  //! locale : Tibetan [bo]
3
3
  //! author : Thupten N. Chakrishar : https://github.com/vajradog
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 bo = moment.defineLocale('bo', {
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('bo', {
33
+ months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
34
+ '_'
35
+ ),
36
+ monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
37
+ '_'
38
+ ),
39
+ monthsShortRegex: /^(ཟླ་\d{1,2})/,
40
+ monthsParseExact: true,
41
+ weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
42
+ '_'
43
+ ),
44
+ weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
45
+ '_'
46
+ ),
47
+ weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
48
+ longDateFormat: {
49
+ LT: 'A h:mm',
50
+ LTS: 'A h:mm:ss',
51
+ L: 'DD/MM/YYYY',
52
+ LL: 'D MMMM YYYY',
53
+ LLL: 'D MMMM YYYY, A h:mm',
54
+ LLLL: 'dddd, D MMMM YYYY, A h:mm',
51
55
  },
52
- calendar : {
53
- sameDay : '[དི་རིང] LT',
54
- nextDay : '[སང་ཉིན] LT',
55
- nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
56
- lastDay : '[ཁ་སང] LT',
57
- lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
58
- sameElse : 'L'
56
+ calendar: {
57
+ sameDay: '[དི་རིང] LT',
58
+ nextDay: '[སང་ཉིན] LT',
59
+ nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
60
+ lastDay: '[ཁ་སང] LT',
61
+ lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
62
+ sameElse: 'L',
59
63
  },
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 ལོ'
64
+ relativeTime: {
65
+ future: '%s ལ་',
66
+ past: '%s སྔན་ལ',
67
+ s: 'ལམ་སང',
68
+ ss: '%d སྐར་ཆ།',
69
+ m: 'སྐར་མ་གཅིག',
70
+ mm: '%d སྐར་མ',
71
+ h: 'ཆུ་ཚོད་གཅིག',
72
+ hh: '%d ཆུ་ཚོད',
73
+ d: 'ཉིན་གཅིག',
74
+ dd: '%d ཉིན་',
75
+ M: 'ཟླ་བ་གཅིག',
76
+ MM: '%d ཟླ་བ',
77
+ y: 'ལོ་གཅིག',
78
+ yy: '%d ལོ',
75
79
  },
76
80
  preparse: function (string) {
77
81
  return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
@@ -84,19 +88,21 @@ var bo = moment.defineLocale('bo', {
84
88
  });
85
89
  },
86
90
  meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
87
- meridiemHour : function (hour, meridiem) {
91
+ meridiemHour: function (hour, meridiem) {
88
92
  if (hour === 12) {
89
93
  hour = 0;
90
94
  }
91
- if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
92
- (meridiem === 'ཉིན་གུང' && hour < 5) ||
93
- meridiem === 'དགོང་དག') {
95
+ if (
96
+ (meridiem === 'མཚན་མོ' && hour >= 4) ||
97
+ (meridiem === 'ཉིན་གུང' && hour < 5) ||
98
+ meridiem === 'དགོང་དག'
99
+ ) {
94
100
  return hour + 12;
95
101
  } else {
96
102
  return hour;
97
103
  }
98
104
  },
99
- meridiem : function (hour, minute, isLower) {
105
+ meridiem: function (hour, minute, isLower) {
100
106
  if (hour < 4) {
101
107
  return 'མཚན་མོ';
102
108
  } else if (hour < 10) {
@@ -109,12 +115,8 @@ var bo = moment.defineLocale('bo', {
109
115
  return 'མཚན་མོ';
110
116
  }
111
117
  },
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
- }
118
+ week: {
119
+ dow: 0, // Sunday is the first day of the week.
120
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
121
+ },
116
122
  });
117
-
118
- return bo;
119
-
120
- })));
@@ -2,19 +2,13 @@
2
2
  //! locale : Breton [br]
3
3
  //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
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
  function relativeTimeWithMutation(number, withoutSuffix, key) {
14
8
  var format = {
15
- 'mm': 'munutenn',
16
- 'MM': 'miz',
17
- 'dd': 'devezh'
9
+ mm: 'munutenn',
10
+ MM: 'miz',
11
+ dd: 'devezh',
18
12
  };
19
13
  return number + ' ' + mutation(format[key], number);
20
14
  }
@@ -44,9 +38,9 @@ function mutation(text, number) {
44
38
  }
45
39
  function softMutation(text) {
46
40
  var mutationTable = {
47
- 'm': 'v',
48
- 'b': 'v',
49
- 'd': 'z'
41
+ m: 'v',
42
+ b: 'v',
43
+ d: 'z',
50
44
  };
51
45
  if (mutationTable[text.charAt(0)] === undefined) {
52
46
  return text;
@@ -54,56 +48,118 @@ function softMutation(text) {
54
48
  return mutationTable[text.charAt(0)] + text.substring(1);
55
49
  }
56
50
 
57
- var br = moment.defineLocale('br', {
58
- months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
59
- monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
60
- weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
61
- weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
62
- weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
63
- weekdaysParseExact : true,
64
- longDateFormat : {
65
- LT : 'h[e]mm A',
66
- LTS : 'h[e]mm:ss A',
67
- L : 'DD/MM/YYYY',
68
- LL : 'D [a viz] MMMM YYYY',
69
- LLL : 'D [a viz] MMMM YYYY h[e]mm A',
70
- LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
51
+ var monthsParse = [
52
+ /^gen/i,
53
+ /^c[ʼ\']hwe/i,
54
+ /^meu/i,
55
+ /^ebr/i,
56
+ /^mae/i,
57
+ /^(mez|eve)/i,
58
+ /^gou/i,
59
+ /^eos/i,
60
+ /^gwe/i,
61
+ /^her/i,
62
+ /^du/i,
63
+ /^ker/i,
64
+ ],
65
+ monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
66
+ monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
67
+ monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
68
+ fullWeekdaysParse = [
69
+ /^sul/i,
70
+ /^lun/i,
71
+ /^meurzh/i,
72
+ /^merc[ʼ\']her/i,
73
+ /^yaou/i,
74
+ /^gwener/i,
75
+ /^sadorn/i,
76
+ ],
77
+ shortWeekdaysParse = [
78
+ /^Sul/i,
79
+ /^Lun/i,
80
+ /^Meu/i,
81
+ /^Mer/i,
82
+ /^Yao/i,
83
+ /^Gwe/i,
84
+ /^Sad/i,
85
+ ],
86
+ minWeekdaysParse = [
87
+ /^Su/i,
88
+ /^Lu/i,
89
+ /^Me([^r]|$)/i,
90
+ /^Mer/i,
91
+ /^Ya/i,
92
+ /^Gw/i,
93
+ /^Sa/i,
94
+ ];
95
+
96
+ export default moment.defineLocale('br', {
97
+ months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
98
+ '_'
99
+ ),
100
+ monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
101
+ weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
102
+ weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
103
+ weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
104
+ weekdaysParse: minWeekdaysParse,
105
+ fullWeekdaysParse: fullWeekdaysParse,
106
+ shortWeekdaysParse: shortWeekdaysParse,
107
+ minWeekdaysParse: minWeekdaysParse,
108
+
109
+ monthsRegex: monthsRegex,
110
+ monthsShortRegex: monthsRegex,
111
+ monthsStrictRegex: monthsStrictRegex,
112
+ monthsShortStrictRegex: monthsShortStrictRegex,
113
+ monthsParse: monthsParse,
114
+ longMonthsParse: monthsParse,
115
+ shortMonthsParse: monthsParse,
116
+
117
+ longDateFormat: {
118
+ LT: 'HH:mm',
119
+ LTS: 'HH:mm:ss',
120
+ L: 'DD/MM/YYYY',
121
+ LL: 'D [a viz] MMMM YYYY',
122
+ LLL: 'D [a viz] MMMM YYYY HH:mm',
123
+ LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
71
124
  },
72
- calendar : {
73
- sameDay : '[Hiziv da] LT',
74
- nextDay : '[Warc\'hoazh da] LT',
75
- nextWeek : 'dddd [da] LT',
76
- lastDay : '[Dec\'h da] LT',
77
- lastWeek : 'dddd [paset da] LT',
78
- sameElse : 'L'
125
+ calendar: {
126
+ sameDay: '[Hiziv da] LT',
127
+ nextDay: '[Warcʼhoazh da] LT',
128
+ nextWeek: 'dddd [da] LT',
129
+ lastDay: '[Decʼh da] LT',
130
+ lastWeek: 'dddd [paset da] LT',
131
+ sameElse: 'L',
79
132
  },
80
- relativeTime : {
81
- future : 'a-benn %s',
82
- past : '%s \'zo',
83
- s : 'un nebeud segondennoù',
84
- ss : '%d eilenn',
85
- m : 'ur vunutenn',
86
- mm : relativeTimeWithMutation,
87
- h : 'un eur',
88
- hh : '%d eur',
89
- d : 'un devezh',
90
- dd : relativeTimeWithMutation,
91
- M : 'ur miz',
92
- MM : relativeTimeWithMutation,
93
- y : 'ur bloaz',
94
- yy : specialMutationForYears
133
+ relativeTime: {
134
+ future: 'a-benn %s',
135
+ past: '%s ʼzo',
136
+ s: 'un nebeud segondennoù',
137
+ ss: '%d eilenn',
138
+ m: 'ur vunutenn',
139
+ mm: relativeTimeWithMutation,
140
+ h: 'un eur',
141
+ hh: '%d eur',
142
+ d: 'un devezh',
143
+ dd: relativeTimeWithMutation,
144
+ M: 'ur miz',
145
+ MM: relativeTimeWithMutation,
146
+ y: 'ur bloaz',
147
+ yy: specialMutationForYears,
95
148
  },
96
149
  dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
97
- ordinal : function (number) {
98
- var output = (number === 1) ? 'añ' : 'vet';
150
+ ordinal: function (number) {
151
+ var output = number === 1 ? 'añ' : 'vet';
99
152
  return number + output;
100
153
  },
101
- week : {
102
- dow : 1, // Monday is the first day of the week.
103
- doy : 4 // The week that contains Jan 4th is the first week of the year.
104
- }
154
+ week: {
155
+ dow: 1, // Monday is the first day of the week.
156
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
157
+ },
158
+ meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
159
+ isPM: function (token) {
160
+ return token === 'g.m.';
161
+ },
162
+ meridiem: function (hour, minute, isLower) {
163
+ return hour < 12 ? 'a.m.' : 'g.m.';
164
+ },
105
165
  });
106
-
107
- return br;
108
-
109
- })));
@@ -3,13 +3,7 @@
3
3
  //! author : Nedim Cholich : https://github.com/frontyard
4
4
  //! based on (hr) translation by Bojan Marković
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 translate(number, withoutSuffix, key) {
15
9
  var result = number + ' ';
@@ -73,26 +67,32 @@ function translate(number, withoutSuffix, key) {
73
67
  }
74
68
  }
75
69
 
76
- var bs = moment.defineLocale('bs', {
77
- months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
78
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
70
+ export default moment.defineLocale('bs', {
71
+ months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
72
+ '_'
73
+ ),
74
+ monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
75
+ '_'
76
+ ),
79
77
  monthsParseExact: true,
80
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
81
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
82
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
83
- weekdaysParseExact : true,
84
- longDateFormat : {
85
- LT : 'H:mm',
86
- LTS : 'H:mm:ss',
87
- L : 'DD.MM.YYYY',
88
- LL : 'D. MMMM YYYY',
89
- LLL : 'D. MMMM YYYY H:mm',
90
- LLLL : 'dddd, D. MMMM YYYY H:mm'
78
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
79
+ '_'
80
+ ),
81
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
82
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
83
+ weekdaysParseExact: true,
84
+ longDateFormat: {
85
+ LT: 'H:mm',
86
+ LTS: 'H:mm:ss',
87
+ L: 'DD.MM.YYYY',
88
+ LL: 'D. MMMM YYYY',
89
+ LLL: 'D. MMMM YYYY H:mm',
90
+ LLLL: 'dddd, D. MMMM YYYY H:mm',
91
91
  },
92
- calendar : {
93
- sameDay : '[danas u] LT',
94
- nextDay : '[sutra u] LT',
95
- nextWeek : function () {
92
+ calendar: {
93
+ sameDay: '[danas u] LT',
94
+ nextDay: '[sutra u] LT',
95
+ nextWeek: function () {
96
96
  switch (this.day()) {
97
97
  case 0:
98
98
  return '[u] [nedjelju] [u] LT';
@@ -107,8 +107,8 @@ var bs = moment.defineLocale('bs', {
107
107
  return '[u] dddd [u] LT';
108
108
  }
109
109
  },
110
- lastDay : '[jučer u] LT',
111
- lastWeek : function () {
110
+ lastDay: '[jučer u] LT',
111
+ lastWeek: function () {
112
112
  switch (this.day()) {
113
113
  case 0:
114
114
  case 3:
@@ -122,32 +122,28 @@ var bs = moment.defineLocale('bs', {
122
122
  return '[prošli] dddd [u] LT';
123
123
  }
124
124
  },
125
- sameElse : 'L'
125
+ sameElse: 'L',
126
126
  },
127
- relativeTime : {
128
- future : 'za %s',
129
- past : 'prije %s',
130
- s : 'par sekundi',
131
- ss : translate,
132
- m : translate,
133
- mm : translate,
134
- h : translate,
135
- hh : translate,
136
- d : 'dan',
137
- dd : translate,
138
- M : 'mjesec',
139
- MM : translate,
140
- y : 'godinu',
141
- yy : translate
127
+ relativeTime: {
128
+ future: 'za %s',
129
+ past: 'prije %s',
130
+ s: 'par sekundi',
131
+ ss: translate,
132
+ m: translate,
133
+ mm: translate,
134
+ h: translate,
135
+ hh: translate,
136
+ d: 'dan',
137
+ dd: translate,
138
+ M: 'mjesec',
139
+ MM: translate,
140
+ y: 'godinu',
141
+ yy: translate,
142
142
  },
143
143
  dayOfMonthOrdinalParse: /\d{1,2}\./,
144
- ordinal : '%d.',
145
- week : {
146
- dow : 1, // Monday is the first day of the week.
147
- doy : 7 // The week that contains Jan 1st is the first week of the year.
148
- }
144
+ ordinal: '%d.',
145
+ week: {
146
+ dow: 1, // Monday is the first day of the week.
147
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
148
+ },
149
149
  });
150
-
151
- return bs;
152
-
153
- })));