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,179 +2,190 @@
2
2
  //! locale : Czech [cs]
3
3
  //! author : petrbela : https://github.com/petrbela
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 months = {
8
- format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
9
- '_'
10
- ),
11
- standalone:
12
- 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var months = {
15
+ format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
13
16
  '_'
14
17
  ),
15
- },
16
- monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
17
- monthsParse = [
18
- /^led/i,
19
- /^úno/i,
20
- /^bře/i,
21
- /^dub/i,
22
- /^kvě/i,
23
- /^(čvn|červen$|června)/i,
24
- /^(čvc|červenec|července)/i,
25
- /^srp/i,
26
- /^zář/i,
27
- /^říj/i,
28
- /^lis/i,
29
- /^pro/i,
30
- ],
31
- // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
32
- // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
33
- monthsRegex =
34
- /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
18
+ standalone:
19
+ 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
20
+ '_'
21
+ ),
22
+ },
23
+ monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
24
+ monthsParse = [
25
+ /^led/i,
26
+ /^úno/i,
27
+ /^bře/i,
28
+ /^dub/i,
29
+ /^kvě/i,
30
+ /^(čvn|červen$|června)/i,
31
+ /^(čvc|červenec|července)/i,
32
+ /^srp/i,
33
+ /^zář/i,
34
+ /^říj/i,
35
+ /^lis/i,
36
+ /^pro/i,
37
+ ],
38
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
39
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
40
+ monthsRegex =
41
+ /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
35
42
 
36
- function plural(n) {
37
- return n > 1 && n < 5 && ~~(n / 10) !== 1;
38
- }
39
- function translate(number, withoutSuffix, key, isFuture) {
40
- var result = number + ' ';
41
- switch (key) {
42
- case 's': // a few seconds / in a few seconds / a few seconds ago
43
- return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
44
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
45
- if (withoutSuffix || isFuture) {
46
- return result + (plural(number) ? 'sekundy' : 'sekund');
47
- } else {
48
- return result + 'sekundami';
49
- }
50
- case 'm': // a minute / in a minute / a minute ago
51
- return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
52
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
53
- if (withoutSuffix || isFuture) {
54
- return result + (plural(number) ? 'minuty' : 'minut');
55
- } else {
56
- return result + 'minutami';
57
- }
58
- case 'h': // an hour / in an hour / an hour ago
59
- return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
60
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
61
- if (withoutSuffix || isFuture) {
62
- return result + (plural(number) ? 'hodiny' : 'hodin');
63
- } else {
64
- return result + 'hodinami';
65
- }
66
- case 'd': // a day / in a day / a day ago
67
- return withoutSuffix || isFuture ? 'den' : 'dnem';
68
- case 'dd': // 9 days / in 9 days / 9 days ago
69
- if (withoutSuffix || isFuture) {
70
- return result + (plural(number) ? 'dny' : 'dní');
71
- } else {
72
- return result + 'dny';
73
- }
74
- case 'M': // a month / in a month / a month ago
75
- return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
76
- case 'MM': // 9 months / in 9 months / 9 months ago
77
- if (withoutSuffix || isFuture) {
78
- return result + (plural(number) ? 'měsíce' : 'měsíců');
79
- } else {
80
- return result + 'měsíci';
81
- }
82
- case 'y': // a year / in a year / a year ago
83
- return withoutSuffix || isFuture ? 'rok' : 'rokem';
84
- case 'yy': // 9 years / in 9 years / 9 years ago
85
- if (withoutSuffix || isFuture) {
86
- return result + (plural(number) ? 'roky' : 'let');
87
- } else {
88
- return result + 'lety';
89
- }
43
+ function plural(n) {
44
+ return n > 1 && n < 5 && ~~(n / 10) !== 1;
45
+ }
46
+ function translate(number, withoutSuffix, key, isFuture) {
47
+ var result = number + ' ';
48
+ switch (key) {
49
+ case 's': // a few seconds / in a few seconds / a few seconds ago
50
+ return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
51
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
52
+ if (withoutSuffix || isFuture) {
53
+ return result + (plural(number) ? 'sekundy' : 'sekund');
54
+ } else {
55
+ return result + 'sekundami';
56
+ }
57
+ case 'm': // a minute / in a minute / a minute ago
58
+ return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
59
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
60
+ if (withoutSuffix || isFuture) {
61
+ return result + (plural(number) ? 'minuty' : 'minut');
62
+ } else {
63
+ return result + 'minutami';
64
+ }
65
+ case 'h': // an hour / in an hour / an hour ago
66
+ return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
67
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
68
+ if (withoutSuffix || isFuture) {
69
+ return result + (plural(number) ? 'hodiny' : 'hodin');
70
+ } else {
71
+ return result + 'hodinami';
72
+ }
73
+ case 'd': // a day / in a day / a day ago
74
+ return withoutSuffix || isFuture ? 'den' : 'dnem';
75
+ case 'dd': // 9 days / in 9 days / 9 days ago
76
+ if (withoutSuffix || isFuture) {
77
+ return result + (plural(number) ? 'dny' : 'dní');
78
+ } else {
79
+ return result + 'dny';
80
+ }
81
+ case 'M': // a month / in a month / a month ago
82
+ return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
83
+ case 'MM': // 9 months / in 9 months / 9 months ago
84
+ if (withoutSuffix || isFuture) {
85
+ return result + (plural(number) ? 'měsíce' : 'měsíců');
86
+ } else {
87
+ return result + 'měsíci';
88
+ }
89
+ case 'y': // a year / in a year / a year ago
90
+ return withoutSuffix || isFuture ? 'rok' : 'rokem';
91
+ case 'yy': // 9 years / in 9 years / 9 years ago
92
+ if (withoutSuffix || isFuture) {
93
+ return result + (plural(number) ? 'roky' : 'let');
94
+ } else {
95
+ return result + 'lety';
96
+ }
97
+ }
90
98
  }
91
- }
92
99
 
93
- export default moment.defineLocale('cs', {
94
- months: months,
95
- monthsShort: monthsShort,
96
- monthsRegex: monthsRegex,
97
- monthsShortRegex: monthsRegex,
98
- // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
99
- // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
100
- monthsStrictRegex:
101
- /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
102
- monthsShortStrictRegex:
103
- /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
104
- monthsParse: monthsParse,
105
- longMonthsParse: monthsParse,
106
- shortMonthsParse: monthsParse,
107
- weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
108
- weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
109
- weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
110
- longDateFormat: {
111
- LT: 'H:mm',
112
- LTS: 'H:mm:ss',
113
- L: 'DD.MM.YYYY',
114
- LL: 'D. MMMM YYYY',
115
- LLL: 'D. MMMM YYYY H:mm',
116
- LLLL: 'dddd D. MMMM YYYY H:mm',
117
- l: 'D. M. YYYY',
118
- },
119
- calendar: {
120
- sameDay: '[dnes v] LT',
121
- nextDay: '[zítra v] LT',
122
- nextWeek: function () {
123
- switch (this.day()) {
124
- case 0:
125
- return '[v neděli v] LT';
126
- case 1:
127
- case 2:
128
- return '[v] dddd [v] LT';
129
- case 3:
130
- return '[ve středu v] LT';
131
- case 4:
132
- return '[ve čtvrtek v] LT';
133
- case 5:
134
- return '[v pátek v] LT';
135
- case 6:
136
- return '[v sobotu v] LT';
137
- }
100
+ var cs = moment.defineLocale('cs', {
101
+ months: months,
102
+ monthsShort: monthsShort,
103
+ monthsRegex: monthsRegex,
104
+ monthsShortRegex: monthsRegex,
105
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
106
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
107
+ monthsStrictRegex:
108
+ /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
109
+ monthsShortStrictRegex:
110
+ /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
111
+ monthsParse: monthsParse,
112
+ longMonthsParse: monthsParse,
113
+ shortMonthsParse: monthsParse,
114
+ weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
115
+ weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
116
+ weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
117
+ longDateFormat: {
118
+ LT: 'H:mm',
119
+ LTS: 'H:mm:ss',
120
+ L: 'DD.MM.YYYY',
121
+ LL: 'D. MMMM YYYY',
122
+ LLL: 'D. MMMM YYYY H:mm',
123
+ LLLL: 'dddd D. MMMM YYYY H:mm',
124
+ l: 'D. M. YYYY',
125
+ },
126
+ calendar: {
127
+ sameDay: '[dnes v] LT',
128
+ nextDay: '[zítra v] LT',
129
+ nextWeek: function () {
130
+ switch (this.day()) {
131
+ case 0:
132
+ return '[v neděli v] LT';
133
+ case 1:
134
+ case 2:
135
+ return '[v] dddd [v] LT';
136
+ case 3:
137
+ return '[ve středu v] LT';
138
+ case 4:
139
+ return '[ve čtvrtek v] LT';
140
+ case 5:
141
+ return '[v pátek v] LT';
142
+ case 6:
143
+ return '[v sobotu v] LT';
144
+ }
145
+ },
146
+ lastDay: '[včera v] LT',
147
+ lastWeek: function () {
148
+ switch (this.day()) {
149
+ case 0:
150
+ return '[minulou neděli v] LT';
151
+ case 1:
152
+ case 2:
153
+ return '[minulé] dddd [v] LT';
154
+ case 3:
155
+ return '[minulou středu v] LT';
156
+ case 4:
157
+ case 5:
158
+ return '[minulý] dddd [v] LT';
159
+ case 6:
160
+ return '[minulou sobotu v] LT';
161
+ }
162
+ },
163
+ sameElse: 'L',
138
164
  },
139
- lastDay: '[včera v] LT',
140
- lastWeek: function () {
141
- switch (this.day()) {
142
- case 0:
143
- return '[minulou neděli v] LT';
144
- case 1:
145
- case 2:
146
- return '[minulé] dddd [v] LT';
147
- case 3:
148
- return '[minulou středu v] LT';
149
- case 4:
150
- case 5:
151
- return '[minulý] dddd [v] LT';
152
- case 6:
153
- return '[minulou sobotu v] LT';
154
- }
165
+ relativeTime: {
166
+ future: 'za %s',
167
+ past: 'před %s',
168
+ s: translate,
169
+ ss: translate,
170
+ m: translate,
171
+ mm: translate,
172
+ h: translate,
173
+ hh: translate,
174
+ d: translate,
175
+ dd: translate,
176
+ M: translate,
177
+ MM: translate,
178
+ y: translate,
179
+ yy: translate,
155
180
  },
156
- sameElse: 'L',
157
- },
158
- relativeTime: {
159
- future: 'za %s',
160
- past: 'před %s',
161
- s: translate,
162
- ss: translate,
163
- m: translate,
164
- mm: translate,
165
- h: translate,
166
- hh: translate,
167
- d: translate,
168
- dd: translate,
169
- M: translate,
170
- MM: translate,
171
- y: translate,
172
- yy: translate,
173
- },
174
- dayOfMonthOrdinalParse: /\d{1,2}\./,
175
- ordinal: '%d.',
176
- week: {
177
- dow: 1, // Monday is the first day of the week.
178
- doy: 4, // The week that contains Jan 4th is the first week of the year.
179
- },
180
- });
181
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
182
+ ordinal: '%d.',
183
+ week: {
184
+ dow: 1, // Monday is the first day of the week.
185
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
186
+ },
187
+ });
188
+
189
+ return cs;
190
+
191
+ })));
@@ -2,62 +2,73 @@
2
2
  //! locale : Chuvash [cv]
3
3
  //! author : Anatoly Mironov : https://github.com/mirontoli
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('cv', {
8
- months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
9
- '_'
10
- ),
11
- monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
12
- weekdays:
13
- 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var cv = moment.defineLocale('cv', {
15
+ months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
14
16
  '_'
15
17
  ),
16
- weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
17
- weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
18
- longDateFormat: {
19
- LT: 'HH:mm',
20
- LTS: 'HH:mm:ss',
21
- L: 'DD-MM-YYYY',
22
- LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
23
- LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
24
- LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
25
- },
26
- calendar: {
27
- sameDay: '[Паян] LT [сехетре]',
28
- nextDay: '[Ыран] LT [сехетре]',
29
- lastDay: '[Ӗнер] LT [сехетре]',
30
- nextWeek: '[Ҫитес] dddd LT [сехетре]',
31
- lastWeek: '[Иртнӗ] dddd LT [сехетре]',
32
- sameElse: 'L',
33
- },
34
- relativeTime: {
35
- future: function (output) {
36
- var affix = /сехет$/i.exec(output)
37
- ? 'рен'
38
- : /ҫул$/i.exec(output)
39
- ? 'тан'
40
- : 'ран';
41
- return output + affix;
18
+ monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
19
+ weekdays:
20
+ 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
24
+ weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'DD-MM-YYYY',
29
+ LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
30
+ LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
31
+ LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
32
+ },
33
+ calendar: {
34
+ sameDay: '[Паян] LT [сехетре]',
35
+ nextDay: '[Ыран] LT [сехетре]',
36
+ lastDay: '[Ӗнер] LT [сехетре]',
37
+ nextWeek: '[Ҫитес] dddd LT [сехетре]',
38
+ lastWeek: '[Иртнӗ] dddd LT [сехетре]',
39
+ sameElse: 'L',
40
+ },
41
+ relativeTime: {
42
+ future: function (output) {
43
+ var affix = /сехет$/i.exec(output)
44
+ ? 'рен'
45
+ : /ҫул$/i.exec(output)
46
+ ? 'тан'
47
+ : 'ран';
48
+ return output + affix;
49
+ },
50
+ past: '%s каялла',
51
+ s: 'пӗр-ик ҫеккунт',
52
+ ss: '%d ҫеккунт',
53
+ m: 'пӗр минут',
54
+ mm: '%d минут',
55
+ h: 'пӗр сехет',
56
+ hh: '%d сехет',
57
+ d: 'пӗр кун',
58
+ dd: '%d кун',
59
+ M: 'пӗр уйӑх',
60
+ MM: '%d уйӑх',
61
+ y: 'пӗр ҫул',
62
+ yy: '%d ҫул',
42
63
  },
43
- past: '%s каялла',
44
- s: 'пӗр-ик ҫеккунт',
45
- ss: '%d ҫеккунт',
46
- m: 'пӗр минут',
47
- mm: '%d минут',
48
- h: 'пӗр сехет',
49
- hh: '%d сехет',
50
- d: 'пӗр кун',
51
- dd: '%d кун',
52
- M: 'пӗр уйӑх',
53
- MM: '%d уйӑх',
54
- y: 'пӗр ҫул',
55
- yy: '%d ҫул',
56
- },
57
- dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
58
- ordinal: '%d-мӗш',
59
- week: {
60
- dow: 1, // Monday is the first day of the week.
61
- doy: 7, // The week that contains Jan 7th is the first week of the year.
62
- },
63
- });
64
+ dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
65
+ ordinal: '%d-мӗш',
66
+ week: {
67
+ dow: 1, // Monday is the first day of the week.
68
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
69
+ },
70
+ });
71
+
72
+ return cv;
73
+
74
+ })));