momentjs-rails 2.29.4 → 2.29.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/vendor/assets/javascripts/moment/af.js +77 -66
  5. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  6. data/vendor/assets/javascripts/moment/ar-kw.js +59 -48
  7. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  8. data/vendor/assets/javascripts/moment/ar-ma.js +59 -48
  9. data/vendor/assets/javascripts/moment/ar-sa.js +108 -97
  10. data/vendor/assets/javascripts/moment/ar-tn.js +59 -48
  11. data/vendor/assets/javascripts/moment/ar.js +191 -180
  12. data/vendor/assets/javascripts/moment/az.js +105 -94
  13. data/vendor/assets/javascripts/moment/be.js +137 -126
  14. data/vendor/assets/javascripts/moment/bg.js +91 -80
  15. data/vendor/assets/javascripts/moment/bm.js +57 -47
  16. data/vendor/assets/javascripts/moment/bn-bd.js +130 -119
  17. data/vendor/assets/javascripts/moment/bn.js +122 -111
  18. data/vendor/assets/javascripts/moment/bo.js +125 -114
  19. data/vendor/assets/javascripts/moment/br.js +165 -154
  20. data/vendor/assets/javascripts/moment/bs.js +149 -138
  21. data/vendor/assets/javascripts/moment/ca.js +99 -88
  22. data/vendor/assets/javascripts/moment/cs.js +179 -168
  23. data/vendor/assets/javascripts/moment/cv.js +66 -55
  24. data/vendor/assets/javascripts/moment/cy.js +100 -89
  25. data/vendor/assets/javascripts/moment/da.js +59 -48
  26. data/vendor/assets/javascripts/moment/de-at.js +79 -68
  27. data/vendor/assets/javascripts/moment/de-ch.js +78 -69
  28. data/vendor/assets/javascripts/moment/de.js +79 -68
  29. data/vendor/assets/javascripts/moment/dv.js +95 -84
  30. data/vendor/assets/javascripts/moment/el.js +107 -96
  31. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  32. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  33. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  34. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  35. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  36. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  37. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  38. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  39. data/vendor/assets/javascripts/moment/eo.js +71 -60
  40. data/vendor/assets/javascripts/moment/es-do.js +108 -97
  41. data/vendor/assets/javascripts/moment/es-mx.js +109 -98
  42. data/vendor/assets/javascripts/moment/es-us.js +108 -97
  43. data/vendor/assets/javascripts/moment/es.js +109 -98
  44. data/vendor/assets/javascripts/moment/et.js +79 -68
  45. data/vendor/assets/javascripts/moment/eu.js +69 -58
  46. data/vendor/assets/javascripts/moment/fa.js +116 -105
  47. data/vendor/assets/javascripts/moment/fi.js +126 -115
  48. data/vendor/assets/javascripts/moment/fil.js +63 -52
  49. data/vendor/assets/javascripts/moment/fo.js +60 -49
  50. data/vendor/assets/javascripts/moment/fr-ca.js +73 -62
  51. data/vendor/assets/javascripts/moment/fr-ch.js +77 -66
  52. data/vendor/assets/javascripts/moment/fr.js +109 -98
  53. data/vendor/assets/javascripts/moment/fy.js +80 -69
  54. data/vendor/assets/javascripts/moment/ga.js +100 -89
  55. data/vendor/assets/javascripts/moment/gd.js +100 -89
  56. data/vendor/assets/javascripts/moment/gl.js +75 -64
  57. data/vendor/assets/javascripts/moment/gom-deva.js +129 -118
  58. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  59. data/vendor/assets/javascripts/moment/gu.js +125 -114
  60. data/vendor/assets/javascripts/moment/he.js +93 -82
  61. data/vendor/assets/javascripts/moment/hi.js +165 -154
  62. data/vendor/assets/javascripts/moment/hr.js +154 -143
  63. data/vendor/assets/javascripts/moment/hu.js +117 -106
  64. data/vendor/assets/javascripts/moment/hy-am.js +96 -85
  65. data/vendor/assets/javascripts/moment/id.js +81 -70
  66. data/vendor/assets/javascripts/moment/is.js +136 -125
  67. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  68. data/vendor/assets/javascripts/moment/it.js +106 -95
  69. data/vendor/assets/javascripts/moment/ja.js +146 -135
  70. data/vendor/assets/javascripts/moment/jv.js +81 -70
  71. data/vendor/assets/javascripts/moment/ka.js +91 -80
  72. data/vendor/assets/javascripts/moment/kk.js +87 -76
  73. data/vendor/assets/javascripts/moment/km.js +106 -95
  74. data/vendor/assets/javascripts/moment/kn.js +127 -116
  75. data/vendor/assets/javascripts/moment/ko.js +80 -69
  76. data/vendor/assets/javascripts/moment/ku.js +123 -112
  77. data/vendor/assets/javascripts/moment/ky.js +89 -78
  78. data/vendor/assets/javascripts/moment/lb.js +132 -121
  79. data/vendor/assets/javascripts/moment/lo.js +70 -59
  80. data/vendor/assets/javascripts/moment/lt.js +123 -112
  81. data/vendor/assets/javascripts/moment/lv.js +95 -84
  82. data/vendor/assets/javascripts/moment/me.js +119 -108
  83. data/vendor/assets/javascripts/moment/mi.js +64 -53
  84. data/vendor/assets/javascripts/moment/mk.js +90 -78
  85. data/vendor/assets/javascripts/moment/ml.js +86 -75
  86. data/vendor/assets/javascripts/moment/mn.js +101 -90
  87. data/vendor/assets/javascripts/moment/mr.js +202 -191
  88. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  89. data/vendor/assets/javascripts/moment/ms.js +81 -70
  90. data/vendor/assets/javascripts/moment/mt.js +60 -49
  91. data/vendor/assets/javascripts/moment/my.js +93 -82
  92. data/vendor/assets/javascripts/moment/nb.js +64 -53
  93. data/vendor/assets/javascripts/moment/ne.js +124 -113
  94. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  95. data/vendor/assets/javascripts/moment/nl.js +105 -94
  96. data/vendor/assets/javascripts/moment/nn.js +64 -53
  97. data/vendor/assets/javascripts/moment/oc-lnc.js +87 -76
  98. data/vendor/assets/javascripts/moment/pa-in.js +125 -114
  99. data/vendor/assets/javascripts/moment/pl.js +138 -127
  100. data/vendor/assets/javascripts/moment/pt-br.js +61 -50
  101. data/vendor/assets/javascripts/moment/pt.js +66 -55
  102. data/vendor/assets/javascripts/moment/ro.js +76 -65
  103. data/vendor/assets/javascripts/moment/ru.js +198 -187
  104. data/vendor/assets/javascripts/moment/sd.js +86 -75
  105. data/vendor/assets/javascripts/moment/se.js +61 -50
  106. data/vendor/assets/javascripts/moment/si.js +73 -62
  107. data/vendor/assets/javascripts/moment/sk.js +146 -135
  108. data/vendor/assets/javascripts/moment/sl.js +170 -159
  109. data/vendor/assets/javascripts/moment/sq.js +69 -58
  110. data/vendor/assets/javascripts/moment/sr-cyrl.js +126 -115
  111. data/vendor/assets/javascripts/moment/sr.js +128 -117
  112. data/vendor/assets/javascripts/moment/ss.js +87 -76
  113. data/vendor/assets/javascripts/moment/sv.js +74 -63
  114. data/vendor/assets/javascripts/moment/sw.js +59 -48
  115. data/vendor/assets/javascripts/moment/ta.js +132 -121
  116. data/vendor/assets/javascripts/moment/te.js +92 -81
  117. data/vendor/assets/javascripts/moment/tet.js +72 -61
  118. data/vendor/assets/javascripts/moment/tg.js +120 -109
  119. data/vendor/assets/javascripts/moment/th.js +69 -58
  120. data/vendor/assets/javascripts/moment/tk.js +96 -85
  121. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  122. data/vendor/assets/javascripts/moment/tlh.js +120 -109
  123. data/vendor/assets/javascripts/moment/tr.js +110 -99
  124. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  125. data/vendor/assets/javascripts/moment/tzm-latn.js +58 -47
  126. data/vendor/assets/javascripts/moment/tzm.js +58 -47
  127. data/vendor/assets/javascripts/moment/ug-cn.js +114 -103
  128. data/vendor/assets/javascripts/moment/uk.js +163 -152
  129. data/vendor/assets/javascripts/moment/ur.js +86 -75
  130. data/vendor/assets/javascripts/moment/uz-latn.js +58 -47
  131. data/vendor/assets/javascripts/moment/uz.js +57 -46
  132. data/vendor/assets/javascripts/moment/vi.js +83 -72
  133. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  134. data/vendor/assets/javascripts/moment/yo.js +59 -48
  135. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  136. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  137. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  138. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  139. data/vendor/assets/javascripts/moment.js +5018 -5010
  140. metadata +2 -2
@@ -3,74 +3,85 @@
3
3
  //! author : Rony Lantip : https://github.com/lantip
4
4
  //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
5
5
 
6
- import moment from '../moment';
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';
7
12
 
8
- export default moment.defineLocale('jv', {
9
- months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
10
- '_'
11
- ),
12
- monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
13
- weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
14
- weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
15
- weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
16
- longDateFormat: {
17
- LT: 'HH.mm',
18
- LTS: 'HH.mm.ss',
19
- L: 'DD/MM/YYYY',
20
- LL: 'D MMMM YYYY',
21
- LLL: 'D MMMM YYYY [pukul] HH.mm',
22
- LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
23
- },
24
- meridiemParse: /enjing|siyang|sonten|ndalu/,
25
- meridiemHour: function (hour, meridiem) {
26
- if (hour === 12) {
27
- hour = 0;
28
- }
29
- if (meridiem === 'enjing') {
30
- return hour;
31
- } else if (meridiem === 'siyang') {
32
- return hour >= 11 ? hour : hour + 12;
33
- } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
34
- return hour + 12;
35
- }
36
- },
37
- meridiem: function (hours, minutes, isLower) {
38
- if (hours < 11) {
39
- return 'enjing';
40
- } else if (hours < 15) {
41
- return 'siyang';
42
- } else if (hours < 19) {
43
- return 'sonten';
44
- } else {
45
- return 'ndalu';
46
- }
47
- },
48
- calendar: {
49
- sameDay: '[Dinten puniko pukul] LT',
50
- nextDay: '[Mbenjang pukul] LT',
51
- nextWeek: 'dddd [pukul] LT',
52
- lastDay: '[Kala wingi pukul] LT',
53
- lastWeek: 'dddd [kepengker pukul] LT',
54
- sameElse: 'L',
55
- },
56
- relativeTime: {
57
- future: 'wonten ing %s',
58
- past: '%s ingkang kepengker',
59
- s: 'sawetawis detik',
60
- ss: '%d detik',
61
- m: 'setunggal menit',
62
- mm: '%d menit',
63
- h: 'setunggal jam',
64
- hh: '%d jam',
65
- d: 'sedinten',
66
- dd: '%d dinten',
67
- M: 'sewulan',
68
- MM: '%d wulan',
69
- y: 'setaun',
70
- yy: '%d taun',
71
- },
72
- week: {
73
- dow: 1, // Monday is the first day of the week.
74
- doy: 7, // The week that contains Jan 7th is the first week of the year.
75
- },
76
- });
13
+ //! moment.js locale configuration
14
+
15
+ var jv = moment.defineLocale('jv', {
16
+ months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
20
+ weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
21
+ weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
22
+ weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
23
+ longDateFormat: {
24
+ LT: 'HH.mm',
25
+ LTS: 'HH.mm.ss',
26
+ L: 'DD/MM/YYYY',
27
+ LL: 'D MMMM YYYY',
28
+ LLL: 'D MMMM YYYY [pukul] HH.mm',
29
+ LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
30
+ },
31
+ meridiemParse: /enjing|siyang|sonten|ndalu/,
32
+ meridiemHour: function (hour, meridiem) {
33
+ if (hour === 12) {
34
+ hour = 0;
35
+ }
36
+ if (meridiem === 'enjing') {
37
+ return hour;
38
+ } else if (meridiem === 'siyang') {
39
+ return hour >= 11 ? hour : hour + 12;
40
+ } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
41
+ return hour + 12;
42
+ }
43
+ },
44
+ meridiem: function (hours, minutes, isLower) {
45
+ if (hours < 11) {
46
+ return 'enjing';
47
+ } else if (hours < 15) {
48
+ return 'siyang';
49
+ } else if (hours < 19) {
50
+ return 'sonten';
51
+ } else {
52
+ return 'ndalu';
53
+ }
54
+ },
55
+ calendar: {
56
+ sameDay: '[Dinten puniko pukul] LT',
57
+ nextDay: '[Mbenjang pukul] LT',
58
+ nextWeek: 'dddd [pukul] LT',
59
+ lastDay: '[Kala wingi pukul] LT',
60
+ lastWeek: 'dddd [kepengker pukul] LT',
61
+ sameElse: 'L',
62
+ },
63
+ relativeTime: {
64
+ future: 'wonten ing %s',
65
+ past: '%s ingkang kepengker',
66
+ s: 'sawetawis detik',
67
+ ss: '%d detik',
68
+ m: 'setunggal menit',
69
+ mm: '%d menit',
70
+ h: 'setunggal jam',
71
+ hh: '%d jam',
72
+ d: 'sedinten',
73
+ dd: '%d dinten',
74
+ M: 'sewulan',
75
+ MM: '%d wulan',
76
+ y: 'setaun',
77
+ yy: '%d taun',
78
+ },
79
+ week: {
80
+ dow: 1, // Monday is the first day of the week.
81
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
82
+ },
83
+ });
84
+
85
+ return jv;
86
+
87
+ })));
@@ -2,91 +2,102 @@
2
2
  //! locale : Georgian [ka]
3
3
  //! author : Irakli Janiashvili : https://github.com/IrakliJani
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- export default moment.defineLocale('ka', {
8
- months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
9
- '_'
10
- ),
11
- monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
12
- weekdays: {
13
- standalone:
14
- 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
15
- '_'
16
- ),
17
- format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var ka = moment.defineLocale('ka', {
15
+ months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
18
16
  '_'
19
17
  ),
20
- isFormat: /(წინა|შემდეგ)/,
21
- },
22
- weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
23
- weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
24
- longDateFormat: {
25
- LT: 'HH:mm',
26
- LTS: 'HH:mm:ss',
27
- L: 'DD/MM/YYYY',
28
- LL: 'D MMMM YYYY',
29
- LLL: 'D MMMM YYYY HH:mm',
30
- LLLL: 'dddd, D MMMM YYYY HH:mm',
31
- },
32
- calendar: {
33
- sameDay: '[დღეს] LT[-ზე]',
34
- nextDay: '[ხვალ] LT[-ზე]',
35
- lastDay: '[გუშინ] LT[-ზე]',
36
- nextWeek: '[შემდეგ] dddd LT[-ზე]',
37
- lastWeek: '[წინა] dddd LT-ზე',
38
- sameElse: 'L',
39
- },
40
- relativeTime: {
41
- future: function (s) {
42
- return s.replace(
43
- /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
44
- function ($0, $1, $2) {
45
- return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
18
+ monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
19
+ weekdays: {
20
+ standalone:
21
+ 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
22
+ '_'
23
+ ),
24
+ format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
25
+ '_'
26
+ ),
27
+ isFormat: /(წინა|შემდეგ)/,
28
+ },
29
+ weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
30
+ weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
31
+ longDateFormat: {
32
+ LT: 'HH:mm',
33
+ LTS: 'HH:mm:ss',
34
+ L: 'DD/MM/YYYY',
35
+ LL: 'D MMMM YYYY',
36
+ LLL: 'D MMMM YYYY HH:mm',
37
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
38
+ },
39
+ calendar: {
40
+ sameDay: '[დღეს] LT[-ზე]',
41
+ nextDay: '[ხვალ] LT[-ზე]',
42
+ lastDay: '[გუშინ] LT[-ზე]',
43
+ nextWeek: '[შემდეგ] dddd LT[-ზე]',
44
+ lastWeek: '[წინა] dddd LT-ზე',
45
+ sameElse: 'L',
46
+ },
47
+ relativeTime: {
48
+ future: function (s) {
49
+ return s.replace(
50
+ /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
51
+ function ($0, $1, $2) {
52
+ return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
53
+ }
54
+ );
55
+ },
56
+ past: function (s) {
57
+ if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
58
+ return s.replace(/(ი|ე)$/, 'ის წინ');
59
+ }
60
+ if (/წელი/.test(s)) {
61
+ return s.replace(/წელი$/, 'წლის წინ');
46
62
  }
47
- );
63
+ return s;
64
+ },
65
+ s: 'რამდენიმე წამი',
66
+ ss: '%d წამი',
67
+ m: 'წუთი',
68
+ mm: '%d წუთი',
69
+ h: 'საათი',
70
+ hh: '%d საათი',
71
+ d: 'დღე',
72
+ dd: '%d დღე',
73
+ M: 'თვე',
74
+ MM: '%d თვე',
75
+ y: 'წელი',
76
+ yy: '%d წელი',
48
77
  },
49
- past: function (s) {
50
- if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
51
- return s.replace(/(ი|ე)$/, 'ის წინ');
78
+ dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
79
+ ordinal: function (number) {
80
+ if (number === 0) {
81
+ return number;
82
+ }
83
+ if (number === 1) {
84
+ return number + '-ლი';
52
85
  }
53
- if (/წელი/.test(s)) {
54
- return s.replace(/წელი$/, 'წლის წინ');
86
+ if (
87
+ number < 20 ||
88
+ (number <= 100 && number % 20 === 0) ||
89
+ number % 100 === 0
90
+ ) {
91
+ return 'მე-' + number;
55
92
  }
56
- return s;
93
+ return number + '-ე';
57
94
  },
58
- s: 'რამდენიმე წამი',
59
- ss: '%d წამი',
60
- m: 'წუთი',
61
- mm: '%d წუთი',
62
- h: 'საათი',
63
- hh: '%d საათი',
64
- d: 'დღე',
65
- dd: '%d დღე',
66
- M: 'თვე',
67
- MM: '%d თვე',
68
- y: 'წელი',
69
- yy: '%d წელი',
70
- },
71
- dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
72
- ordinal: function (number) {
73
- if (number === 0) {
74
- return number;
75
- }
76
- if (number === 1) {
77
- return number + '-ლი';
78
- }
79
- if (
80
- number < 20 ||
81
- (number <= 100 && number % 20 === 0) ||
82
- number % 100 === 0
83
- ) {
84
- return 'მე-' + number;
85
- }
86
- return number + '-ე';
87
- },
88
- week: {
89
- dow: 1,
90
- doy: 7,
91
- },
92
- });
95
+ week: {
96
+ dow: 1,
97
+ doy: 7,
98
+ },
99
+ });
100
+
101
+ return ka;
102
+
103
+ })));
@@ -2,81 +2,92 @@
2
2
  //! locale : Kazakh [kk]
3
3
  //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- var suffixes = {
8
- 0: '-ші',
9
- 1: '-ші',
10
- 2: '-ші',
11
- 3: '-ші',
12
- 4: '-ші',
13
- 5: '-ші',
14
- 6: '-шы',
15
- 7: '-ші',
16
- 8: '-ші',
17
- 9: '-шы',
18
- 10: '-шы',
19
- 20: '-шы',
20
- 30: '-шы',
21
- 40: '-шы',
22
- 50: '-ші',
23
- 60: '-шы',
24
- 70: '-ші',
25
- 80: '-ші',
26
- 90: '-шы',
27
- 100: '-ші',
28
- };
12
+ //! moment.js locale configuration
29
13
 
30
- export default moment.defineLocale('kk', {
31
- months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
32
- '_'
33
- ),
34
- monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
35
- weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
36
- '_'
37
- ),
38
- weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
39
- weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
40
- longDateFormat: {
41
- LT: 'HH:mm',
42
- LTS: 'HH:mm:ss',
43
- L: 'DD.MM.YYYY',
44
- LL: 'D MMMM YYYY',
45
- LLL: 'D MMMM YYYY HH:mm',
46
- LLLL: 'dddd, D MMMM YYYY HH:mm',
47
- },
48
- calendar: {
49
- sameDay: '[Бүгін сағат] LT',
50
- nextDay: '[Ертең сағат] LT',
51
- nextWeek: 'dddd [сағат] LT',
52
- lastDay: '[Кеше сағат] LT',
53
- lastWeek: '[Өткен аптаның] dddd [сағат] LT',
54
- sameElse: 'L',
55
- },
56
- relativeTime: {
57
- future: '%s ішінде',
58
- past: '%s бұрын',
59
- s: 'бірнеше секунд',
60
- ss: '%d секунд',
61
- m: 'бір минут',
62
- mm: '%d минут',
63
- h: 'бір сағат',
64
- hh: '%d сағат',
65
- d: 'бір күн',
66
- dd: '%d күн',
67
- M: 'бір ай',
68
- MM: '%d ай',
69
- y: 'бір жыл',
70
- yy: '%d жыл',
71
- },
72
- dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
73
- ordinal: function (number) {
74
- var a = number % 10,
75
- b = number >= 100 ? 100 : null;
76
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
77
- },
78
- week: {
79
- dow: 1, // Monday is the first day of the week.
80
- doy: 7, // The week that contains Jan 7th is the first week of the year.
81
- },
82
- });
14
+ var suffixes = {
15
+ 0: '-ші',
16
+ 1: '-ші',
17
+ 2: '-ші',
18
+ 3: '-ші',
19
+ 4: '-ші',
20
+ 5: '-ші',
21
+ 6: '-шы',
22
+ 7: '-ші',
23
+ 8: '-ші',
24
+ 9: '-шы',
25
+ 10: '-шы',
26
+ 20: '-шы',
27
+ 30: '-шы',
28
+ 40: '-шы',
29
+ 50: '-ші',
30
+ 60: '-шы',
31
+ 70: '-ші',
32
+ 80: '-ші',
33
+ 90: '-шы',
34
+ 100: '-ші',
35
+ };
36
+
37
+ var kk = moment.defineLocale('kk', {
38
+ months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
39
+ '_'
40
+ ),
41
+ monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
42
+ weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
43
+ '_'
44
+ ),
45
+ weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
46
+ weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
47
+ longDateFormat: {
48
+ LT: 'HH:mm',
49
+ LTS: 'HH:mm:ss',
50
+ L: 'DD.MM.YYYY',
51
+ LL: 'D MMMM YYYY',
52
+ LLL: 'D MMMM YYYY HH:mm',
53
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
54
+ },
55
+ calendar: {
56
+ sameDay: '[Бүгін сағат] LT',
57
+ nextDay: '[Ертең сағат] LT',
58
+ nextWeek: 'dddd [сағат] LT',
59
+ lastDay: '[Кеше сағат] LT',
60
+ lastWeek: '[Өткен аптаның] dddd [сағат] LT',
61
+ sameElse: 'L',
62
+ },
63
+ relativeTime: {
64
+ future: '%s ішінде',
65
+ past: '%s бұрын',
66
+ s: 'бірнеше секунд',
67
+ ss: '%d секунд',
68
+ m: 'бір минут',
69
+ mm: '%d минут',
70
+ h: 'бір сағат',
71
+ hh: '%d сағат',
72
+ d: 'бір күн',
73
+ dd: '%d күн',
74
+ M: 'бір ай',
75
+ MM: '%d ай',
76
+ y: 'бір жыл',
77
+ yy: '%d жыл',
78
+ },
79
+ dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
80
+ ordinal: function (number) {
81
+ var a = number % 10,
82
+ b = number >= 100 ? 100 : null;
83
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
84
+ },
85
+ week: {
86
+ dow: 1, // Monday is the first day of the week.
87
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
88
+ },
89
+ });
90
+
91
+ return kk;
92
+
93
+ })));