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,165 +3,176 @@
3
3
  //! author : zemlanin : https://github.com/zemlanin
4
4
  //! Author : Menelion Elensúle : https://github.com/Oire
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
- function plural(word, num) {
9
- var forms = word.split('_');
10
- return num % 10 === 1 && num % 100 !== 11
11
- ? forms[0]
12
- : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
13
- ? forms[1]
14
- : forms[2];
15
- }
16
- function relativeTimeWithPlural(number, withoutSuffix, key) {
17
- var format = {
18
- ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
19
- mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
20
- hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
21
- dd: 'день_дні_днів',
22
- MM: 'місяць_місяці_місяців',
23
- yy: 'рік_роки_років',
24
- };
25
- if (key === 'm') {
26
- return withoutSuffix ? 'хвилина' : 'хвилину';
27
- } else if (key === 'h') {
28
- return withoutSuffix ? 'година' : 'годину';
29
- } else {
30
- return number + ' ' + plural(format[key], +number);
31
- }
32
- }
33
- function weekdaysCaseReplace(m, format) {
34
- var weekdays = {
35
- nominative:
36
- 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
37
- '_'
38
- ),
39
- accusative:
40
- 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
41
- '_'
42
- ),
43
- genitive:
44
- 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
45
- '_'
46
- ),
47
- },
48
- nounCase;
13
+ //! moment.js locale configuration
49
14
 
50
- if (m === true) {
51
- return weekdays['nominative']
52
- .slice(1, 7)
53
- .concat(weekdays['nominative'].slice(0, 1));
15
+ function plural(word, num) {
16
+ var forms = word.split('_');
17
+ return num % 10 === 1 && num % 100 !== 11
18
+ ? forms[0]
19
+ : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
20
+ ? forms[1]
21
+ : forms[2];
54
22
  }
55
- if (!m) {
56
- return weekdays['nominative'];
23
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
24
+ var format = {
25
+ ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
26
+ mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
27
+ hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
28
+ dd: 'день_дні_днів',
29
+ MM: 'місяць_місяці_місяців',
30
+ yy: 'рік_роки_років',
31
+ };
32
+ if (key === 'm') {
33
+ return withoutSuffix ? 'хвилина' : 'хвилину';
34
+ } else if (key === 'h') {
35
+ return withoutSuffix ? 'година' : 'годину';
36
+ } else {
37
+ return number + ' ' + plural(format[key], +number);
38
+ }
57
39
  }
40
+ function weekdaysCaseReplace(m, format) {
41
+ var weekdays = {
42
+ nominative:
43
+ 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
44
+ '_'
45
+ ),
46
+ accusative:
47
+ 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
48
+ '_'
49
+ ),
50
+ genitive:
51
+ 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
52
+ '_'
53
+ ),
54
+ },
55
+ nounCase;
58
56
 
59
- nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
60
- ? 'accusative'
61
- : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
62
- ? 'genitive'
63
- : 'nominative';
64
- return weekdays[nounCase][m.day()];
65
- }
66
- function processHoursFunction(str) {
67
- return function () {
68
- return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
69
- };
70
- }
57
+ if (m === true) {
58
+ return weekdays['nominative']
59
+ .slice(1, 7)
60
+ .concat(weekdays['nominative'].slice(0, 1));
61
+ }
62
+ if (!m) {
63
+ return weekdays['nominative'];
64
+ }
71
65
 
72
- export default moment.defineLocale('uk', {
73
- months: {
74
- format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
75
- '_'
76
- ),
77
- standalone:
78
- 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
66
+ nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
67
+ ? 'accusative'
68
+ : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
69
+ ? 'genitive'
70
+ : 'nominative';
71
+ return weekdays[nounCase][m.day()];
72
+ }
73
+ function processHoursFunction(str) {
74
+ return function () {
75
+ return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
76
+ };
77
+ }
78
+
79
+ var uk = moment.defineLocale('uk', {
80
+ months: {
81
+ format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
79
82
  '_'
80
83
  ),
81
- },
82
- monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
83
- '_'
84
- ),
85
- weekdays: weekdaysCaseReplace,
86
- weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
87
- weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
88
- longDateFormat: {
89
- LT: 'HH:mm',
90
- LTS: 'HH:mm:ss',
91
- L: 'DD.MM.YYYY',
92
- LL: 'D MMMM YYYY р.',
93
- LLL: 'D MMMM YYYY р., HH:mm',
94
- LLLL: 'dddd, D MMMM YYYY р., HH:mm',
95
- },
96
- calendar: {
97
- sameDay: processHoursFunction('[Сьогодні '),
98
- nextDay: processHoursFunction('[Завтра '),
99
- lastDay: processHoursFunction('[Вчора '),
100
- nextWeek: processHoursFunction('[У] dddd ['),
101
- lastWeek: function () {
102
- switch (this.day()) {
103
- case 0:
104
- case 3:
105
- case 5:
106
- case 6:
107
- return processHoursFunction('[Минулої] dddd [').call(this);
108
- case 1:
109
- case 2:
110
- case 4:
111
- return processHoursFunction('[Минулого] dddd [').call(this);
84
+ standalone:
85
+ 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
86
+ '_'
87
+ ),
88
+ },
89
+ monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
90
+ '_'
91
+ ),
92
+ weekdays: weekdaysCaseReplace,
93
+ weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
94
+ weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
95
+ longDateFormat: {
96
+ LT: 'HH:mm',
97
+ LTS: 'HH:mm:ss',
98
+ L: 'DD.MM.YYYY',
99
+ LL: 'D MMMM YYYY р.',
100
+ LLL: 'D MMMM YYYY р., HH:mm',
101
+ LLLL: 'dddd, D MMMM YYYY р., HH:mm',
102
+ },
103
+ calendar: {
104
+ sameDay: processHoursFunction('[Сьогодні '),
105
+ nextDay: processHoursFunction('[Завтра '),
106
+ lastDay: processHoursFunction('[Вчора '),
107
+ nextWeek: processHoursFunction('[У] dddd ['),
108
+ lastWeek: function () {
109
+ switch (this.day()) {
110
+ case 0:
111
+ case 3:
112
+ case 5:
113
+ case 6:
114
+ return processHoursFunction('[Минулої] dddd [').call(this);
115
+ case 1:
116
+ case 2:
117
+ case 4:
118
+ return processHoursFunction('[Минулого] dddd [').call(this);
119
+ }
120
+ },
121
+ sameElse: 'L',
122
+ },
123
+ relativeTime: {
124
+ future: 'за %s',
125
+ past: '%s тому',
126
+ s: 'декілька секунд',
127
+ ss: relativeTimeWithPlural,
128
+ m: relativeTimeWithPlural,
129
+ mm: relativeTimeWithPlural,
130
+ h: 'годину',
131
+ hh: relativeTimeWithPlural,
132
+ d: 'день',
133
+ dd: relativeTimeWithPlural,
134
+ M: 'місяць',
135
+ MM: relativeTimeWithPlural,
136
+ y: 'рік',
137
+ yy: relativeTimeWithPlural,
138
+ },
139
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
140
+ meridiemParse: /ночі|ранку|дня|вечора/,
141
+ isPM: function (input) {
142
+ return /^(дня|вечора)$/.test(input);
143
+ },
144
+ meridiem: function (hour, minute, isLower) {
145
+ if (hour < 4) {
146
+ return 'ночі';
147
+ } else if (hour < 12) {
148
+ return 'ранку';
149
+ } else if (hour < 17) {
150
+ return 'дня';
151
+ } else {
152
+ return 'вечора';
112
153
  }
113
154
  },
114
- sameElse: 'L',
115
- },
116
- relativeTime: {
117
- future: 'за %s',
118
- past: '%s тому',
119
- s: 'декілька секунд',
120
- ss: relativeTimeWithPlural,
121
- m: relativeTimeWithPlural,
122
- mm: relativeTimeWithPlural,
123
- h: 'годину',
124
- hh: relativeTimeWithPlural,
125
- d: 'день',
126
- dd: relativeTimeWithPlural,
127
- M: 'місяць',
128
- MM: relativeTimeWithPlural,
129
- y: 'рік',
130
- yy: relativeTimeWithPlural,
131
- },
132
- // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
133
- meridiemParse: /ночі|ранку|дня|вечора/,
134
- isPM: function (input) {
135
- return /^(дня|вечора)$/.test(input);
136
- },
137
- meridiem: function (hour, minute, isLower) {
138
- if (hour < 4) {
139
- return 'ночі';
140
- } else if (hour < 12) {
141
- return 'ранку';
142
- } else if (hour < 17) {
143
- return 'дня';
144
- } else {
145
- return 'вечора';
146
- }
147
- },
148
- dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
149
- ordinal: function (number, period) {
150
- switch (period) {
151
- case 'M':
152
- case 'd':
153
- case 'DDD':
154
- case 'w':
155
- case 'W':
156
- return number + '-й';
157
- case 'D':
158
- return number + '-го';
159
- default:
160
- return number;
161
- }
162
- },
163
- week: {
164
- dow: 1, // Monday is the first day of the week.
165
- doy: 7, // The week that contains Jan 7th is the first week of the year.
166
- },
167
- });
155
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
156
+ ordinal: function (number, period) {
157
+ switch (period) {
158
+ case 'M':
159
+ case 'd':
160
+ case 'DDD':
161
+ case 'w':
162
+ case 'W':
163
+ return number + '-й';
164
+ case 'D':
165
+ return number + '-го';
166
+ default:
167
+ return number;
168
+ }
169
+ },
170
+ week: {
171
+ dow: 1, // Monday is the first day of the week.
172
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
173
+ },
174
+ });
175
+
176
+ return uk;
177
+
178
+ })));
@@ -3,80 +3,91 @@
3
3
  //! author : Sawood Alam : https://github.com/ibnesayeed
4
4
  //! author : Zack : https://github.com/ZackVision
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
- var months = [
9
- 'جنوری',
10
- 'فروری',
11
- 'مارچ',
12
- 'اپریل',
13
- 'مئی',
14
- 'جون',
15
- 'جولائی',
16
- 'اگست',
17
- 'ستمبر',
18
- 'اکتوبر',
19
- 'نومبر',
20
- 'دسمبر',
21
- ],
22
- days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
13
+ //! moment.js locale configuration
23
14
 
24
- export default moment.defineLocale('ur', {
25
- months: months,
26
- monthsShort: months,
27
- weekdays: days,
28
- weekdaysShort: days,
29
- weekdaysMin: days,
30
- longDateFormat: {
31
- LT: 'HH:mm',
32
- LTS: 'HH:mm:ss',
33
- L: 'DD/MM/YYYY',
34
- LL: 'D MMMM YYYY',
35
- LLL: 'D MMMM YYYY HH:mm',
36
- LLLL: 'dddd، D MMMM YYYY HH:mm',
37
- },
38
- meridiemParse: /صبح|شام/,
39
- isPM: function (input) {
40
- return 'شام' === input;
41
- },
42
- meridiem: function (hour, minute, isLower) {
43
- if (hour < 12) {
44
- return 'صبح';
45
- }
46
- return 'شام';
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
- preparse: function (string) {
73
- return string.replace(/،/g, ',');
74
- },
75
- postformat: function (string) {
76
- return string.replace(/,/g, '،');
77
- },
78
- week: {
79
- dow: 1, // Monday is the first day of the week.
80
- doy: 4, // The week that contains Jan 4th is the first week of the year.
81
- },
82
- });
15
+ var months = [
16
+ 'جنوری',
17
+ 'فروری',
18
+ 'مارچ',
19
+ 'اپریل',
20
+ 'مئی',
21
+ 'جون',
22
+ 'جولائی',
23
+ 'اگست',
24
+ 'ستمبر',
25
+ 'اکتوبر',
26
+ 'نومبر',
27
+ 'دسمبر',
28
+ ],
29
+ days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
30
+
31
+ var ur = moment.defineLocale('ur', {
32
+ months: months,
33
+ monthsShort: months,
34
+ weekdays: days,
35
+ weekdaysShort: days,
36
+ weekdaysMin: days,
37
+ longDateFormat: {
38
+ LT: 'HH:mm',
39
+ LTS: 'HH:mm:ss',
40
+ L: 'DD/MM/YYYY',
41
+ LL: 'D MMMM YYYY',
42
+ LLL: 'D MMMM YYYY HH:mm',
43
+ LLLL: 'dddd، D MMMM YYYY HH:mm',
44
+ },
45
+ meridiemParse: /صبح|شام/,
46
+ isPM: function (input) {
47
+ return 'شام' === input;
48
+ },
49
+ meridiem: function (hour, minute, isLower) {
50
+ if (hour < 12) {
51
+ return 'صبح';
52
+ }
53
+ return 'شام';
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
+ preparse: function (string) {
80
+ return string.replace(/،/g, ',');
81
+ },
82
+ postformat: function (string) {
83
+ return string.replace(/,/g, '،');
84
+ },
85
+ week: {
86
+ dow: 1, // Monday is the first day of the week.
87
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
88
+ },
89
+ });
90
+
91
+ return ur;
92
+
93
+ })));
@@ -2,53 +2,64 @@
2
2
  //! locale : Uzbek Latin [uz-latn]
3
3
  //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
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('uz-latn', {
8
- months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
9
- '_'
10
- ),
11
- monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
12
- weekdays:
13
- 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var uzLatn = moment.defineLocale('uz-latn', {
15
+ months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
14
16
  '_'
15
17
  ),
16
- weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
17
- weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
18
- longDateFormat: {
19
- LT: 'HH:mm',
20
- LTS: 'HH:mm:ss',
21
- L: 'DD/MM/YYYY',
22
- LL: 'D MMMM YYYY',
23
- LLL: 'D MMMM YYYY HH:mm',
24
- LLLL: 'D MMMM YYYY, dddd HH:mm',
25
- },
26
- calendar: {
27
- sameDay: '[Bugun soat] LT [da]',
28
- nextDay: '[Ertaga] LT [da]',
29
- nextWeek: 'dddd [kuni soat] LT [da]',
30
- lastDay: '[Kecha soat] LT [da]',
31
- lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
32
- sameElse: 'L',
33
- },
34
- relativeTime: {
35
- future: 'Yaqin %s ichida',
36
- past: 'Bir necha %s oldin',
37
- s: 'soniya',
38
- ss: '%d soniya',
39
- m: 'bir daqiqa',
40
- mm: '%d daqiqa',
41
- h: 'bir soat',
42
- hh: '%d soat',
43
- d: 'bir kun',
44
- dd: '%d kun',
45
- M: 'bir oy',
46
- MM: '%d oy',
47
- y: 'bir yil',
48
- yy: '%d yil',
49
- },
50
- week: {
51
- dow: 1, // Monday is the first day of the week.
52
- doy: 7, // The week that contains Jan 7th is the first week of the year.
53
- },
54
- });
18
+ monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
19
+ weekdays:
20
+ 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
24
+ weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'DD/MM/YYYY',
29
+ LL: 'D MMMM YYYY',
30
+ LLL: 'D MMMM YYYY HH:mm',
31
+ LLLL: 'D MMMM YYYY, dddd HH:mm',
32
+ },
33
+ calendar: {
34
+ sameDay: '[Bugun soat] LT [da]',
35
+ nextDay: '[Ertaga] LT [da]',
36
+ nextWeek: 'dddd [kuni soat] LT [da]',
37
+ lastDay: '[Kecha soat] LT [da]',
38
+ lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
39
+ sameElse: 'L',
40
+ },
41
+ relativeTime: {
42
+ future: 'Yaqin %s ichida',
43
+ past: 'Bir necha %s oldin',
44
+ s: 'soniya',
45
+ ss: '%d soniya',
46
+ m: 'bir daqiqa',
47
+ mm: '%d daqiqa',
48
+ h: 'bir soat',
49
+ hh: '%d soat',
50
+ d: 'bir kun',
51
+ dd: '%d kun',
52
+ M: 'bir oy',
53
+ MM: '%d oy',
54
+ y: 'bir yil',
55
+ yy: '%d yil',
56
+ },
57
+ week: {
58
+ dow: 1, // Monday is the first day of the week.
59
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
60
+ },
61
+ });
62
+
63
+ return uzLatn;
64
+
65
+ })));