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,89 +3,104 @@
3
3
  //! authors : Erhan Gundogan : https://github.com/erhangundogan,
4
4
  //! Burak Yiğit Kaya: https://github.com/BYK
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 suffixes = {
15
- 1: '\'inci',
16
- 5: '\'inci',
17
- 8: '\'inci',
18
- 70: '\'inci',
19
- 80: '\'inci',
20
- 2: '\'nci',
21
- 7: '\'nci',
22
- 20: '\'nci',
23
- 50: '\'nci',
24
- 3: '\'üncü',
25
- 4: '\'üncü',
26
- 100: '\'üncü',
27
- 6: '\'ncı',
28
- 9: '\'uncu',
29
- 10: '\'uncu',
30
- 30: '\'uncu',
31
- 60: '\'ıncı',
32
- 90: '\'ıncı'
9
+ 1: "'inci",
10
+ 5: "'inci",
11
+ 8: "'inci",
12
+ 70: "'inci",
13
+ 80: "'inci",
14
+ 2: "'nci",
15
+ 7: "'nci",
16
+ 20: "'nci",
17
+ 50: "'nci",
18
+ 3: "'üncü",
19
+ 4: "'üncü",
20
+ 100: "'üncü",
21
+ 6: "'ncı",
22
+ 9: "'uncu",
23
+ 10: "'uncu",
24
+ 30: "'uncu",
25
+ 60: "'ıncı",
26
+ 90: "'ıncı",
33
27
  };
34
28
 
35
- var tr = moment.defineLocale('tr', {
36
- months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
37
- monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
38
- weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
39
- weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
40
- weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
41
- longDateFormat : {
42
- LT : 'HH:mm',
43
- LTS : 'HH:mm:ss',
44
- L : 'DD.MM.YYYY',
45
- LL : 'D MMMM YYYY',
46
- LLL : 'D MMMM YYYY HH:mm',
47
- LLLL : 'dddd, D MMMM YYYY HH:mm'
29
+ export default moment.defineLocale('tr', {
30
+ months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
31
+ '_'
32
+ ),
33
+ monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
34
+ weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
35
+ '_'
36
+ ),
37
+ weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
38
+ weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
39
+ meridiem: function (hours, minutes, isLower) {
40
+ if (hours < 12) {
41
+ return isLower ? 'öö' : 'ÖÖ';
42
+ } else {
43
+ return isLower ? 'ös' : 'ÖS';
44
+ }
45
+ },
46
+ meridiemParse: /öö|ÖÖ|ös|ÖS/,
47
+ isPM: function (input) {
48
+ return input === 'ös' || input === 'ÖS';
49
+ },
50
+ longDateFormat: {
51
+ LT: 'HH:mm',
52
+ LTS: 'HH:mm:ss',
53
+ L: 'DD.MM.YYYY',
54
+ LL: 'D MMMM YYYY',
55
+ LLL: 'D MMMM YYYY HH:mm',
56
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
48
57
  },
49
- calendar : {
50
- sameDay : '[bugün saat] LT',
51
- nextDay : '[yarın saat] LT',
52
- nextWeek : '[gelecek] dddd [saat] LT',
53
- lastDay : '[dün] LT',
54
- lastWeek : '[geçen] dddd [saat] LT',
55
- sameElse : 'L'
58
+ calendar: {
59
+ sameDay: '[bugün saat] LT',
60
+ nextDay: '[yarın saat] LT',
61
+ nextWeek: '[gelecek] dddd [saat] LT',
62
+ lastDay: '[dün] LT',
63
+ lastWeek: '[geçen] dddd [saat] LT',
64
+ sameElse: 'L',
56
65
  },
57
- relativeTime : {
58
- future : '%s sonra',
59
- past : '%s önce',
60
- s : 'birkaç saniye',
61
- ss : '%d saniye',
62
- m : 'bir dakika',
63
- mm : '%d dakika',
64
- h : 'bir saat',
65
- hh : '%d saat',
66
- d : 'bir gün',
67
- dd : '%d gün',
68
- M : 'bir ay',
69
- MM : '%d ay',
70
- y : 'bir yıl',
71
- yy : '%d yıl'
66
+ relativeTime: {
67
+ future: '%s sonra',
68
+ past: '%s önce',
69
+ s: 'birkaç saniye',
70
+ ss: '%d saniye',
71
+ m: 'bir dakika',
72
+ mm: '%d dakika',
73
+ h: 'bir saat',
74
+ hh: '%d saat',
75
+ d: 'bir gün',
76
+ dd: '%d gün',
77
+ w: 'bir hafta',
78
+ ww: '%d hafta',
79
+ M: 'bir ay',
80
+ MM: '%d ay',
81
+ y: 'bir yıl',
82
+ yy: '%d yıl',
72
83
  },
73
- dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
74
- ordinal : function (number) {
75
- if (number === 0) { // special case for zero
76
- return number + '\'ıncı';
84
+ ordinal: function (number, period) {
85
+ switch (period) {
86
+ case 'd':
87
+ case 'D':
88
+ case 'Do':
89
+ case 'DD':
90
+ return number;
91
+ default:
92
+ if (number === 0) {
93
+ // special case for zero
94
+ return number + "'ıncı";
95
+ }
96
+ var a = number % 10,
97
+ b = (number % 100) - a,
98
+ c = number >= 100 ? 100 : null;
99
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
77
100
  }
78
- var a = number % 10,
79
- b = number % 100 - a,
80
- c = number >= 100 ? 100 : null;
81
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
82
101
  },
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
- }
102
+ week: {
103
+ dow: 1, // Monday is the first day of the week.
104
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
105
+ },
87
106
  });
88
-
89
- return tr;
90
-
91
- })));
@@ -3,91 +3,87 @@
3
3
  //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
4
  //! author : Iustì Canun
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
  // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
15
9
  // This is currently too difficult (maybe even impossible) to add.
16
- var tzl = moment.defineLocale('tzl', {
17
- months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
18
- monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
19
- weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
20
- weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
21
- weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
22
- longDateFormat : {
23
- LT : 'HH.mm',
24
- LTS : 'HH.mm.ss',
25
- L : 'DD.MM.YYYY',
26
- LL : 'D. MMMM [dallas] YYYY',
27
- LLL : 'D. MMMM [dallas] YYYY HH.mm',
28
- LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
10
+ export default moment.defineLocale('tzl', {
11
+ months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
12
+ '_'
13
+ ),
14
+ monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
15
+ weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
16
+ weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
17
+ weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
18
+ longDateFormat: {
19
+ LT: 'HH.mm',
20
+ LTS: 'HH.mm.ss',
21
+ L: 'DD.MM.YYYY',
22
+ LL: 'D. MMMM [dallas] YYYY',
23
+ LLL: 'D. MMMM [dallas] YYYY HH.mm',
24
+ LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
29
25
  },
30
26
  meridiemParse: /d\'o|d\'a/i,
31
- isPM : function (input) {
32
- return 'd\'o' === input.toLowerCase();
27
+ isPM: function (input) {
28
+ return "d'o" === input.toLowerCase();
33
29
  },
34
- meridiem : function (hours, minutes, isLower) {
30
+ meridiem: function (hours, minutes, isLower) {
35
31
  if (hours > 11) {
36
- return isLower ? 'd\'o' : 'D\'O';
32
+ return isLower ? "d'o" : "D'O";
37
33
  } else {
38
- return isLower ? 'd\'a' : 'D\'A';
34
+ return isLower ? "d'a" : "D'A";
39
35
  }
40
36
  },
41
- calendar : {
42
- sameDay : '[oxhi à] LT',
43
- nextDay : '[demà à] LT',
44
- nextWeek : 'dddd [à] LT',
45
- lastDay : '[ieiri à] LT',
46
- lastWeek : '[sür el] dddd [lasteu à] LT',
47
- sameElse : 'L'
37
+ calendar: {
38
+ sameDay: '[oxhi à] LT',
39
+ nextDay: '[demà à] LT',
40
+ nextWeek: 'dddd [à] LT',
41
+ lastDay: '[ieiri à] LT',
42
+ lastWeek: '[sür el] dddd [lasteu à] LT',
43
+ sameElse: 'L',
48
44
  },
49
- relativeTime : {
50
- future : 'osprei %s',
51
- past : 'ja%s',
52
- s : processRelativeTime,
53
- ss : processRelativeTime,
54
- m : processRelativeTime,
55
- mm : processRelativeTime,
56
- h : processRelativeTime,
57
- hh : processRelativeTime,
58
- d : processRelativeTime,
59
- dd : processRelativeTime,
60
- M : processRelativeTime,
61
- MM : processRelativeTime,
62
- y : processRelativeTime,
63
- yy : processRelativeTime
45
+ relativeTime: {
46
+ future: 'osprei %s',
47
+ past: 'ja%s',
48
+ s: processRelativeTime,
49
+ ss: processRelativeTime,
50
+ m: processRelativeTime,
51
+ mm: processRelativeTime,
52
+ h: processRelativeTime,
53
+ hh: processRelativeTime,
54
+ d: processRelativeTime,
55
+ dd: processRelativeTime,
56
+ M: processRelativeTime,
57
+ MM: processRelativeTime,
58
+ y: processRelativeTime,
59
+ yy: processRelativeTime,
64
60
  },
65
61
  dayOfMonthOrdinalParse: /\d{1,2}\./,
66
- ordinal : '%d.',
67
- week : {
68
- dow : 1, // Monday is the first day of the week.
69
- doy : 4 // The week that contains Jan 4th is the first week of the year.
70
- }
62
+ ordinal: '%d.',
63
+ week: {
64
+ dow: 1, // Monday is the first day of the week.
65
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
66
+ },
71
67
  });
72
68
 
73
69
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
74
70
  var format = {
75
- 's': ['viensas secunds', '\'iensas secunds'],
76
- 'ss': [number + ' secunds', '' + number + ' secunds'],
77
- 'm': ['\'n míut', '\'iens míut'],
78
- 'mm': [number + ' míuts', '' + number + ' míuts'],
79
- 'h': ['\'n þora', '\'iensa þora'],
80
- 'hh': [number + ' þoras', '' + number + ' þoras'],
81
- 'd': ['\'n ziua', '\'iensa ziua'],
82
- 'dd': [number + ' ziuas', '' + number + ' ziuas'],
83
- 'M': ['\'n mes', '\'iens mes'],
84
- 'MM': [number + ' mesen', '' + number + ' mesen'],
85
- 'y': ['\'n ar', '\'iens ar'],
86
- 'yy': [number + ' ars', '' + number + ' ars']
71
+ s: ['viensas secunds', "'iensas secunds"],
72
+ ss: [number + ' secunds', '' + number + ' secunds'],
73
+ m: ["'n míut", "'iens míut"],
74
+ mm: [number + ' míuts', '' + number + ' míuts'],
75
+ h: ["'n þora", "'iensa þora"],
76
+ hh: [number + ' þoras', '' + number + ' þoras'],
77
+ d: ["'n ziua", "'iensa ziua"],
78
+ dd: [number + ' ziuas', '' + number + ' ziuas'],
79
+ M: ["'n mes", "'iens mes"],
80
+ MM: [number + ' mesen', '' + number + ' mesen'],
81
+ y: ["'n ar", "'iens ar"],
82
+ yy: [number + ' ars', '' + number + ' ars'],
87
83
  };
88
- return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
84
+ return isFuture
85
+ ? format[key][0]
86
+ : withoutSuffix
87
+ ? format[key][0]
88
+ : format[key][1];
89
89
  }
90
-
91
- return tzl;
92
-
93
- })));
@@ -2,58 +2,52 @@
2
2
  //! locale : Central Atlas Tamazight Latin [tzm-latn]
3
3
  //! author : Abdel Said : https://github.com/abdelsaid
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 tzmLatn = moment.defineLocale('tzm-latn', {
14
- months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
15
- monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
16
- weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17
- weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
18
- weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.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 : 'dddd D MMMM YYYY HH:mm'
7
+ export default moment.defineLocale('tzm-latn', {
8
+ months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
12
+ '_'
13
+ ),
14
+ weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
15
+ weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
16
+ weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'HH:mm',
19
+ LTS: 'HH:mm:ss',
20
+ L: 'DD/MM/YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY HH:mm',
23
+ LLLL: 'dddd D MMMM YYYY HH:mm',
26
24
  },
27
- calendar : {
25
+ calendar: {
28
26
  sameDay: '[asdkh g] LT',
29
27
  nextDay: '[aska g] LT',
30
28
  nextWeek: 'dddd [g] LT',
31
29
  lastDay: '[assant g] LT',
32
30
  lastWeek: 'dddd [g] LT',
33
- sameElse: 'L'
31
+ sameElse: 'L',
32
+ },
33
+ relativeTime: {
34
+ future: 'dadkh s yan %s',
35
+ past: 'yan %s',
36
+ s: 'imik',
37
+ ss: '%d imik',
38
+ m: 'minuḍ',
39
+ mm: '%d minuḍ',
40
+ h: 'saɛa',
41
+ hh: '%d tassaɛin',
42
+ d: 'ass',
43
+ dd: '%d ossan',
44
+ M: 'ayowr',
45
+ MM: '%d iyyirn',
46
+ y: 'asgas',
47
+ yy: '%d isgasn',
34
48
  },
35
- relativeTime : {
36
- future : 'dadkh s yan %s',
37
- past : 'yan %s',
38
- s : 'imik',
39
- ss : '%d imik',
40
- m : 'minuḍ',
41
- mm : '%d minuḍ',
42
- h : 'saɛa',
43
- hh : '%d tassaɛin',
44
- d : 'ass',
45
- dd : '%d ossan',
46
- M : 'ayowr',
47
- MM : '%d iyyirn',
48
- y : 'asgas',
49
- yy : '%d isgasn'
49
+ week: {
50
+ dow: 6, // Saturday is the first day of the week.
51
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
50
52
  },
51
- week : {
52
- dow : 6, // Saturday is the first day of the week.
53
- doy : 12 // The week that contains Jan 1st is the first week of the year.
54
- }
55
53
  });
56
-
57
- return tzmLatn;
58
-
59
- })));
@@ -2,58 +2,52 @@
2
2
  //! locale : Central Atlas Tamazight [tzm]
3
3
  //! author : Abdel Said : https://github.com/abdelsaid
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 tzm = moment.defineLocale('tzm', {
14
- months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
15
- monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
16
- weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17
- weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
18
- weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH:mm',
7
+ export default moment.defineLocale('tzm', {
8
+ months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
12
+ '_'
13
+ ),
14
+ weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
15
+ weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
16
+ weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17
+ longDateFormat: {
18
+ LT: 'HH:mm',
21
19
  LTS: 'HH:mm:ss',
22
- L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY HH:mm',
25
- LLLL : 'dddd D MMMM YYYY HH:mm'
20
+ L: 'DD/MM/YYYY',
21
+ LL: 'D MMMM YYYY',
22
+ LLL: 'D MMMM YYYY HH:mm',
23
+ LLLL: 'dddd D MMMM YYYY HH:mm',
26
24
  },
27
- calendar : {
25
+ calendar: {
28
26
  sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
29
27
  nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
30
28
  nextWeek: 'dddd [ⴴ] LT',
31
29
  lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
32
30
  lastWeek: 'dddd [ⴴ] LT',
33
- sameElse: 'L'
31
+ sameElse: 'L',
32
+ },
33
+ relativeTime: {
34
+ future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
35
+ past: 'ⵢⴰⵏ %s',
36
+ s: 'ⵉⵎⵉⴽ',
37
+ ss: '%d ⵉⵎⵉⴽ',
38
+ m: 'ⵎⵉⵏⵓⴺ',
39
+ mm: '%d ⵎⵉⵏⵓⴺ',
40
+ h: 'ⵙⴰⵄⴰ',
41
+ hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
42
+ d: 'ⴰⵙⵙ',
43
+ dd: '%d oⵙⵙⴰⵏ',
44
+ M: 'ⴰⵢoⵓⵔ',
45
+ MM: '%d ⵉⵢⵢⵉⵔⵏ',
46
+ y: 'ⴰⵙⴳⴰⵙ',
47
+ yy: '%d ⵉⵙⴳⴰⵙⵏ',
34
48
  },
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 oⵙⵙⴰⵏ',
46
- M : 'ⴰⵢoⵓⵔ',
47
- MM : '%d ⵉⵢⵢⵉⵔⵏ',
48
- y : 'ⴰⵙⴳⴰⵙ',
49
- yy : '%d ⵉⵙⴳⴰⵙⵏ'
49
+ week: {
50
+ dow: 6, // Saturday is the first day of the week.
51
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
50
52
  },
51
- week : {
52
- dow : 6, // Saturday is the first day of the week.
53
- doy : 12 // The week that contains Jan 1st is the first week of the year.
54
- }
55
53
  });
56
-
57
- return tzm;
58
-
59
- })));
@@ -0,0 +1,110 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Uyghur (China) [ug-cn]
3
+ //! author: boyaq : https://github.com/boyaq
4
+
5
+ import moment from '../moment';
6
+
7
+ export default moment.defineLocale('ug-cn', {
8
+ months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
9
+ '_'
10
+ ),
11
+ monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
12
+ '_'
13
+ ),
14
+ weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
15
+ '_'
16
+ ),
17
+ weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
18
+ weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
19
+ longDateFormat: {
20
+ LT: 'HH:mm',
21
+ LTS: 'HH:mm:ss',
22
+ L: 'YYYY-MM-DD',
23
+ LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
24
+ LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
25
+ LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
26
+ },
27
+ meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
28
+ meridiemHour: function (hour, meridiem) {
29
+ if (hour === 12) {
30
+ hour = 0;
31
+ }
32
+ if (
33
+ meridiem === 'يېرىم كېچە' ||
34
+ meridiem === 'سەھەر' ||
35
+ meridiem === 'چۈشتىن بۇرۇن'
36
+ ) {
37
+ return hour;
38
+ } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
39
+ return hour + 12;
40
+ } else {
41
+ return hour >= 11 ? hour : hour + 12;
42
+ }
43
+ },
44
+ meridiem: function (hour, minute, isLower) {
45
+ var hm = hour * 100 + minute;
46
+ if (hm < 600) {
47
+ return 'يېرىم كېچە';
48
+ } else if (hm < 900) {
49
+ return 'سەھەر';
50
+ } else if (hm < 1130) {
51
+ return 'چۈشتىن بۇرۇن';
52
+ } else if (hm < 1230) {
53
+ return 'چۈش';
54
+ } else if (hm < 1800) {
55
+ return 'چۈشتىن كېيىن';
56
+ } else {
57
+ return 'كەچ';
58
+ }
59
+ },
60
+ calendar: {
61
+ sameDay: '[بۈگۈن سائەت] LT',
62
+ nextDay: '[ئەتە سائەت] LT',
63
+ nextWeek: '[كېلەركى] dddd [سائەت] LT',
64
+ lastDay: '[تۆنۈگۈن] LT',
65
+ lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
66
+ sameElse: 'L',
67
+ },
68
+ relativeTime: {
69
+ future: '%s كېيىن',
70
+ past: '%s بۇرۇن',
71
+ s: 'نەچچە سېكونت',
72
+ ss: '%d سېكونت',
73
+ m: 'بىر مىنۇت',
74
+ mm: '%d مىنۇت',
75
+ h: 'بىر سائەت',
76
+ hh: '%d سائەت',
77
+ d: 'بىر كۈن',
78
+ dd: '%d كۈن',
79
+ M: 'بىر ئاي',
80
+ MM: '%d ئاي',
81
+ y: 'بىر يىل',
82
+ yy: '%d يىل',
83
+ },
84
+
85
+ dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
86
+ ordinal: function (number, period) {
87
+ switch (period) {
88
+ case 'd':
89
+ case 'D':
90
+ case 'DDD':
91
+ return number + '-كۈنى';
92
+ case 'w':
93
+ case 'W':
94
+ return number + '-ھەپتە';
95
+ default:
96
+ return number;
97
+ }
98
+ },
99
+ preparse: function (string) {
100
+ return string.replace(/،/g, ',');
101
+ },
102
+ postformat: function (string) {
103
+ return string.replace(/,/g, '،');
104
+ },
105
+ week: {
106
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
107
+ dow: 1, // Monday is the first day of the week.
108
+ doy: 7, // The week that contains Jan 1st is the first week of the year.
109
+ },
110
+ });