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
@@ -2,116 +2,127 @@
2
2
  //! locale : Tajik [tg]
3
3
  //! author : Orif N. Jr. : https://github.com/orif-jr
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
- 12: '-ум',
20
- 13: '-ум',
21
- 20: '-ум',
22
- 30: '-юм',
23
- 40: '-ум',
24
- 50: '-ум',
25
- 60: '-ум',
26
- 70: '-ум',
27
- 80: '-ум',
28
- 90: '-ум',
29
- 100: '-ум',
30
- };
12
+ //! moment.js locale configuration
31
13
 
32
- export default moment.defineLocale('tg', {
33
- months: {
34
- format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
35
- '_'
36
- ),
37
- standalone:
38
- 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
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
+ 12: '-ум',
27
+ 13: '-ум',
28
+ 20: '-ум',
29
+ 30: '-юм',
30
+ 40: '-ум',
31
+ 50: '-ум',
32
+ 60: '-ум',
33
+ 70: '-ум',
34
+ 80: '-ум',
35
+ 90: '-ум',
36
+ 100: '-ум',
37
+ };
38
+
39
+ var tg = moment.defineLocale('tg', {
40
+ months: {
41
+ format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
39
42
  '_'
40
43
  ),
41
- },
42
- monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
43
- weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
44
- '_'
45
- ),
46
- weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
47
- weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
48
- longDateFormat: {
49
- LT: 'HH:mm',
50
- LTS: 'HH:mm:ss',
51
- L: 'DD.MM.YYYY',
52
- LL: 'D MMMM YYYY',
53
- LLL: 'D MMMM YYYY HH:mm',
54
- LLLL: 'dddd, D MMMM YYYY HH:mm',
55
- },
56
- calendar: {
57
- sameDay: '[Имрӯз соати] LT',
58
- nextDay: '[Фардо соати] LT',
59
- lastDay: '[Дирӯз соати] LT',
60
- nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
61
- lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
62
- sameElse: 'L',
63
- },
64
- relativeTime: {
65
- future: 'баъди %s',
66
- past: '%s пеш',
67
- s: 'якчанд сония',
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
- meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
80
- meridiemHour: function (hour, meridiem) {
81
- if (hour === 12) {
82
- hour = 0;
83
- }
84
- if (meridiem === 'шаб') {
85
- return hour < 4 ? hour : hour + 12;
86
- } else if (meridiem === 'субҳ') {
87
- return hour;
88
- } else if (meridiem === 'рӯз') {
89
- return hour >= 11 ? hour : hour + 12;
90
- } else if (meridiem === 'бегоҳ') {
91
- return hour + 12;
92
- }
93
- },
94
- meridiem: function (hour, minute, isLower) {
95
- if (hour < 4) {
96
- return 'шаб';
97
- } else if (hour < 11) {
98
- return 'субҳ';
99
- } else if (hour < 16) {
100
- return 'рӯз';
101
- } else if (hour < 19) {
102
- return 'бегоҳ';
103
- } else {
104
- return 'шаб';
105
- }
106
- },
107
- dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
108
- ordinal: function (number) {
109
- var a = number % 10,
110
- b = number >= 100 ? 100 : null;
111
- return number + (suffixes[number] || suffixes[a] || suffixes[b]);
112
- },
113
- week: {
114
- dow: 1, // Monday is the first day of the week.
115
- doy: 7, // The week that contains Jan 1th is the first week of the year.
116
- },
117
- });
44
+ standalone:
45
+ 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
46
+ '_'
47
+ ),
48
+ },
49
+ monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
50
+ weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
51
+ '_'
52
+ ),
53
+ weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
54
+ weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
55
+ longDateFormat: {
56
+ LT: 'HH:mm',
57
+ LTS: 'HH:mm:ss',
58
+ L: 'DD.MM.YYYY',
59
+ LL: 'D MMMM YYYY',
60
+ LLL: 'D MMMM YYYY HH:mm',
61
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
62
+ },
63
+ calendar: {
64
+ sameDay: '[Имрӯз соати] LT',
65
+ nextDay: '[Фардо соати] LT',
66
+ lastDay: '[Дирӯз соати] LT',
67
+ nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
68
+ lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
69
+ sameElse: 'L',
70
+ },
71
+ relativeTime: {
72
+ future: 'баъди %s',
73
+ past: '%s пеш',
74
+ s: 'якчанд сония',
75
+ m: 'як дақиқа',
76
+ mm: '%d дақиқа',
77
+ h: 'як соат',
78
+ hh: '%d соат',
79
+ d: 'як рӯз',
80
+ dd: '%d рӯз',
81
+ M: 'як моҳ',
82
+ MM: '%d моҳ',
83
+ y: 'як сол',
84
+ yy: '%d сол',
85
+ },
86
+ meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
87
+ meridiemHour: function (hour, meridiem) {
88
+ if (hour === 12) {
89
+ hour = 0;
90
+ }
91
+ if (meridiem === 'шаб') {
92
+ return hour < 4 ? hour : hour + 12;
93
+ } else if (meridiem === 'субҳ') {
94
+ return hour;
95
+ } else if (meridiem === 'рӯз') {
96
+ return hour >= 11 ? hour : hour + 12;
97
+ } else if (meridiem === 'бегоҳ') {
98
+ return hour + 12;
99
+ }
100
+ },
101
+ meridiem: function (hour, minute, isLower) {
102
+ if (hour < 4) {
103
+ return 'шаб';
104
+ } else if (hour < 11) {
105
+ return 'субҳ';
106
+ } else if (hour < 16) {
107
+ return 'рӯз';
108
+ } else if (hour < 19) {
109
+ return 'бегоҳ';
110
+ } else {
111
+ return 'шаб';
112
+ }
113
+ },
114
+ dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
115
+ ordinal: function (number) {
116
+ var a = number % 10,
117
+ b = number >= 100 ? 100 : null;
118
+ return number + (suffixes[number] || suffixes[a] || suffixes[b]);
119
+ },
120
+ week: {
121
+ dow: 1, // Monday is the first day of the week.
122
+ doy: 7, // The week that contains Jan 1th is the first week of the year.
123
+ },
124
+ });
125
+
126
+ return tg;
127
+
128
+ })));
@@ -2,64 +2,75 @@
2
2
  //! locale : Thai [th]
3
3
  //! author : Kridsada Thanabulpong : https://github.com/sirn
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('th', {
8
- months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
9
- '_'
10
- ),
11
- monthsShort:
12
- 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var th = moment.defineLocale('th', {
15
+ months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
13
16
  '_'
14
17
  ),
15
- monthsParseExact: true,
16
- weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
17
- weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
18
- weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
19
- weekdaysParseExact: true,
20
- longDateFormat: {
21
- LT: 'H:mm',
22
- LTS: 'H:mm:ss',
23
- L: 'DD/MM/YYYY',
24
- LL: 'D MMMM YYYY',
25
- LLL: 'D MMMM YYYY เวลา H:mm',
26
- LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
27
- },
28
- meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
29
- isPM: function (input) {
30
- return input === 'หลังเที่ยง';
31
- },
32
- meridiem: function (hour, minute, isLower) {
33
- if (hour < 12) {
34
- return 'ก่อนเที่ยง';
35
- } else {
36
- return 'หลังเที่ยง';
37
- }
38
- },
39
- calendar: {
40
- sameDay: '[วันนี้ เวลา] LT',
41
- nextDay: '[พรุ่งนี้ เวลา] LT',
42
- nextWeek: 'dddd[หน้า เวลา] LT',
43
- lastDay: '[เมื่อวานนี้ เวลา] LT',
44
- lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
45
- sameElse: 'L',
46
- },
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
- w: '1 สัปดาห์',
59
- ww: '%d สัปดาห์',
60
- M: '1 เดือน',
61
- MM: '%d เดือน',
62
- y: '1 ปี',
63
- yy: '%d ปี',
64
- },
65
- });
18
+ monthsShort:
19
+ 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
20
+ '_'
21
+ ),
22
+ monthsParseExact: true,
23
+ weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
24
+ weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
25
+ weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
26
+ weekdaysParseExact: true,
27
+ longDateFormat: {
28
+ LT: 'H:mm',
29
+ LTS: 'H:mm:ss',
30
+ L: 'DD/MM/YYYY',
31
+ LL: 'D MMMM YYYY',
32
+ LLL: 'D MMMM YYYY เวลา H:mm',
33
+ LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
34
+ },
35
+ meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
36
+ isPM: function (input) {
37
+ return input === 'หลังเที่ยง';
38
+ },
39
+ meridiem: function (hour, minute, isLower) {
40
+ if (hour < 12) {
41
+ return 'ก่อนเที่ยง';
42
+ } else {
43
+ return 'หลังเที่ยง';
44
+ }
45
+ },
46
+ calendar: {
47
+ sameDay: '[วันนี้ เวลา] LT',
48
+ nextDay: '[พรุ่งนี้ เวลา] LT',
49
+ nextWeek: 'dddd[หน้า เวลา] LT',
50
+ lastDay: '[เมื่อวานนี้ เวลา] LT',
51
+ lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
52
+ sameElse: 'L',
53
+ },
54
+ relativeTime: {
55
+ future: 'อีก %s',
56
+ past: '%sที่แล้ว',
57
+ s: 'ไม่กี่วินาที',
58
+ ss: '%d วินาที',
59
+ m: '1 นาที',
60
+ mm: '%d นาที',
61
+ h: '1 ชั่วโมง',
62
+ hh: '%d ชั่วโมง',
63
+ d: '1 วัน',
64
+ dd: '%d วัน',
65
+ w: '1 สัปดาห์',
66
+ ww: '%d สัปดาห์',
67
+ M: '1 เดือน',
68
+ MM: '%d เดือน',
69
+ y: '1 ปี',
70
+ yy: '%d ปี',
71
+ },
72
+ });
73
+
74
+ return th;
75
+
76
+ })));
@@ -2,90 +2,101 @@
2
2
  //! locale : Turkmen [tk]
3
3
  //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
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
- 1: "'inji",
9
- 5: "'inji",
10
- 8: "'inji",
11
- 70: "'inji",
12
- 80: "'inji",
13
- 2: "'nji",
14
- 7: "'nji",
15
- 20: "'nji",
16
- 50: "'nji",
17
- 3: "'ünji",
18
- 4: "'ünji",
19
- 100: "'ünji",
20
- 6: "'njy",
21
- 9: "'unjy",
22
- 10: "'unjy",
23
- 30: "'unjy",
24
- 60: "'ynjy",
25
- 90: "'ynjy",
26
- };
12
+ //! moment.js locale configuration
27
13
 
28
- export default moment.defineLocale('tk', {
29
- months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
30
- '_'
31
- ),
32
- monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
33
- weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
34
- '_'
35
- ),
36
- weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
37
- weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
38
- longDateFormat: {
39
- LT: 'HH:mm',
40
- LTS: 'HH:mm:ss',
41
- L: 'DD.MM.YYYY',
42
- LL: 'D MMMM YYYY',
43
- LLL: 'D MMMM YYYY HH:mm',
44
- LLLL: 'dddd, D MMMM YYYY HH:mm',
45
- },
46
- calendar: {
47
- sameDay: '[bugün sagat] LT',
48
- nextDay: '[ertir sagat] LT',
49
- nextWeek: '[indiki] dddd [sagat] LT',
50
- lastDay: '[düýn] LT',
51
- lastWeek: '[geçen] dddd [sagat] LT',
52
- sameElse: 'L',
53
- },
54
- relativeTime: {
55
- future: '%s soň',
56
- past: '%s öň',
57
- s: 'birnäçe sekunt',
58
- m: 'bir minut',
59
- mm: '%d minut',
60
- h: 'bir sagat',
61
- hh: '%d sagat',
62
- d: 'bir gün',
63
- dd: '%d gün',
64
- M: 'bir ',
65
- MM: '%d ',
66
- y: 'bir ýyl',
67
- yy: '%d ýyl',
68
- },
69
- ordinal: function (number, period) {
70
- switch (period) {
71
- case 'd':
72
- case 'D':
73
- case 'Do':
74
- case 'DD':
75
- return number;
76
- default:
77
- if (number === 0) {
78
- // special case for zero
79
- return number + "'unjy";
80
- }
81
- var a = number % 10,
82
- b = (number % 100) - a,
83
- c = number >= 100 ? 100 : null;
84
- return number + (suffixes[a] || suffixes[b] || suffixes[c]);
85
- }
86
- },
87
- week: {
88
- dow: 1, // Monday is the first day of the week.
89
- doy: 7, // The week that contains Jan 7th is the first week of the year.
90
- },
91
- });
14
+ var suffixes = {
15
+ 1: "'inji",
16
+ 5: "'inji",
17
+ 8: "'inji",
18
+ 70: "'inji",
19
+ 80: "'inji",
20
+ 2: "'nji",
21
+ 7: "'nji",
22
+ 20: "'nji",
23
+ 50: "'nji",
24
+ 3: "'ünji",
25
+ 4: "'ünji",
26
+ 100: "'ünji",
27
+ 6: "'njy",
28
+ 9: "'unjy",
29
+ 10: "'unjy",
30
+ 30: "'unjy",
31
+ 60: "'ynjy",
32
+ 90: "'ynjy",
33
+ };
34
+
35
+ var tk = moment.defineLocale('tk', {
36
+ months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
37
+ '_'
38
+ ),
39
+ monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
40
+ weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
41
+ '_'
42
+ ),
43
+ weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
44
+ weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
45
+ longDateFormat: {
46
+ LT: 'HH:mm',
47
+ LTS: 'HH:mm:ss',
48
+ L: 'DD.MM.YYYY',
49
+ LL: 'D MMMM YYYY',
50
+ LLL: 'D MMMM YYYY HH:mm',
51
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
52
+ },
53
+ calendar: {
54
+ sameDay: '[bugün sagat] LT',
55
+ nextDay: '[ertir sagat] LT',
56
+ nextWeek: '[indiki] dddd [sagat] LT',
57
+ lastDay: '[düýn] LT',
58
+ lastWeek: '[geçen] dddd [sagat] LT',
59
+ sameElse: 'L',
60
+ },
61
+ relativeTime: {
62
+ future: '%s soň',
63
+ past: '%s öň',
64
+ s: 'birnäçe sekunt',
65
+ m: 'bir minut',
66
+ mm: '%d minut',
67
+ h: 'bir sagat',
68
+ hh: '%d sagat',
69
+ d: 'bir gün',
70
+ dd: '%d gün',
71
+ M: 'bir aý',
72
+ MM: '%d aý',
73
+ y: 'bir ýyl',
74
+ yy: '%d ýyl',
75
+ },
76
+ ordinal: function (number, period) {
77
+ switch (period) {
78
+ case 'd':
79
+ case 'D':
80
+ case 'Do':
81
+ case 'DD':
82
+ return number;
83
+ default:
84
+ if (number === 0) {
85
+ // special case for zero
86
+ return number + "'unjy";
87
+ }
88
+ var a = number % 10,
89
+ b = (number % 100) - a,
90
+ c = number >= 100 ? 100 : null;
91
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
92
+ }
93
+ },
94
+ week: {
95
+ dow: 1, // Monday is the first day of the week.
96
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
97
+ },
98
+ });
99
+
100
+ return tk;
101
+
102
+ })));