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,56 +2,67 @@
2
2
  //! locale : Northern Sami [se]
3
3
  //! authors : Bård Rolstad Henriksen : https://github.com/karamell
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('se', {
8
- months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
9
- '_'
10
- ),
11
- monthsShort:
12
- 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
13
- weekdays:
14
- 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var se = moment.defineLocale('se', {
15
+ months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
15
16
  '_'
16
17
  ),
17
- weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
18
- weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
19
- longDateFormat: {
20
- LT: 'HH:mm',
21
- LTS: 'HH:mm:ss',
22
- L: 'DD.MM.YYYY',
23
- LL: 'MMMM D. [b.] YYYY',
24
- LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
25
- LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
26
- },
27
- calendar: {
28
- sameDay: '[otne ti] LT',
29
- nextDay: '[ihttin ti] LT',
30
- nextWeek: 'dddd [ti] LT',
31
- lastDay: '[ikte ti] LT',
32
- lastWeek: '[ovddit] dddd [ti] LT',
33
- sameElse: 'L',
34
- },
35
- relativeTime: {
36
- future: '%s geažes',
37
- past: 'maŋit %s',
38
- s: 'moadde sekunddat',
39
- ss: '%d sekunddat',
40
- m: 'okta minuhta',
41
- mm: '%d minuhtat',
42
- h: 'okta diimmu',
43
- hh: '%d diimmut',
44
- d: 'okta beaivi',
45
- dd: '%d beaivvit',
46
- M: 'okta mánnu',
47
- MM: '%d mánut',
48
- y: 'okta jahki',
49
- yy: '%d jagit',
50
- },
51
- dayOfMonthOrdinalParse: /\d{1,2}\./,
52
- ordinal: '%d.',
53
- week: {
54
- dow: 1, // Monday is the first day of the week.
55
- doy: 4, // The week that contains Jan 4th is the first week of the year.
56
- },
57
- });
18
+ monthsShort:
19
+ 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
20
+ weekdays:
21
+ 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
22
+ '_'
23
+ ),
24
+ weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
25
+ weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
26
+ longDateFormat: {
27
+ LT: 'HH:mm',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD.MM.YYYY',
30
+ LL: 'MMMM D. [b.] YYYY',
31
+ LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
32
+ LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
33
+ },
34
+ calendar: {
35
+ sameDay: '[otne ti] LT',
36
+ nextDay: '[ihttin ti] LT',
37
+ nextWeek: 'dddd [ti] LT',
38
+ lastDay: '[ikte ti] LT',
39
+ lastWeek: '[ovddit] dddd [ti] LT',
40
+ sameElse: 'L',
41
+ },
42
+ relativeTime: {
43
+ future: '%s geažes',
44
+ past: 'maŋit %s',
45
+ s: 'moadde sekunddat',
46
+ ss: '%d sekunddat',
47
+ m: 'okta minuhta',
48
+ mm: '%d minuhtat',
49
+ h: 'okta diimmu',
50
+ hh: '%d diimmut',
51
+ d: 'okta beaivi',
52
+ dd: '%d beaivvit',
53
+ M: 'okta mánnu',
54
+ MM: '%d mánut',
55
+ y: 'okta jahki',
56
+ yy: '%d jagit',
57
+ },
58
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
59
+ ordinal: '%d.',
60
+ week: {
61
+ dow: 1, // Monday is the first day of the week.
62
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
63
+ },
64
+ });
65
+
66
+ return se;
67
+
68
+ })));
@@ -2,68 +2,79 @@
2
2
  //! locale : Sinhalese [si]
3
3
  //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
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
- /*jshint -W100*/
8
- export default moment.defineLocale('si', {
9
- months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
10
- '_'
11
- ),
12
- monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
13
- '_'
14
- ),
15
- weekdays:
16
- 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
12
+ //! moment.js locale configuration
13
+
14
+ /*jshint -W100*/
15
+ var si = moment.defineLocale('si', {
16
+ months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
17
20
  '_'
18
21
  ),
19
- weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
20
- weekdaysMin: '____බ්‍ර_සි_සෙ'.split('_'),
21
- weekdaysParseExact: true,
22
- longDateFormat: {
23
- LT: 'a h:mm',
24
- LTS: 'a h:mm:ss',
25
- L: 'YYYY/MM/DD',
26
- LL: 'YYYY MMMM D',
27
- LLL: 'YYYY MMMM D, a h:mm',
28
- LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
29
- },
30
- calendar: {
31
- sameDay: '[අද] LT[ට]',
32
- nextDay: '[හෙට] LT[ට]',
33
- nextWeek: 'dddd LT[ට]',
34
- lastDay: '[ඊයේ] LT[ට]',
35
- lastWeek: '[පසුගිය] dddd LT[ට]',
36
- sameElse: 'L',
37
- },
38
- relativeTime: {
39
- future: '%sකින්',
40
- past: '%sකට පෙර',
41
- s: 'තත්පර කිහිපය',
42
- ss: 'තත්පර %d',
43
- m: 'මිනිත්තුව',
44
- mm: 'මිනිත්තු %d',
45
- h: 'පැය',
46
- hh: 'පැය %d',
47
- d: 'දිනය',
48
- dd: 'දින %d',
49
- M: 'මාසය',
50
- MM: 'මාස %d',
51
- y: 'වසර',
52
- yy: 'වසර %d',
53
- },
54
- dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
55
- ordinal: function (number) {
56
- return number + ' වැනි';
57
- },
58
- meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
59
- isPM: function (input) {
60
- return input === 'ප.ව.' || input === 'පස් වරු';
61
- },
62
- meridiem: function (hours, minutes, isLower) {
63
- if (hours > 11) {
64
- return isLower ? 'ප.ව.' : 'පස් වරු';
65
- } else {
66
- return isLower ? 'පෙ.ව.' : 'පෙර වරු';
67
- }
68
- },
69
- });
22
+ weekdays:
23
+ 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
24
+ '_'
25
+ ),
26
+ weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
27
+ weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
28
+ weekdaysParseExact: true,
29
+ longDateFormat: {
30
+ LT: 'a h:mm',
31
+ LTS: 'a h:mm:ss',
32
+ L: 'YYYY/MM/DD',
33
+ LL: 'YYYY MMMM D',
34
+ LLL: 'YYYY MMMM D, a h:mm',
35
+ LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
36
+ },
37
+ calendar: {
38
+ sameDay: '[අද] LT[ට]',
39
+ nextDay: '[හෙට] LT[ට]',
40
+ nextWeek: 'dddd LT[ට]',
41
+ lastDay: '[ඊයේ] LT[ට]',
42
+ lastWeek: '[පසුගිය] dddd LT[ට]',
43
+ sameElse: 'L',
44
+ },
45
+ relativeTime: {
46
+ future: '%sකින්',
47
+ past: '%sකට පෙර',
48
+ s: 'තත්පර කිහිපය',
49
+ ss: 'තත්පර %d',
50
+ m: 'මිනිත්තුව',
51
+ mm: 'මිනිත්තු %d',
52
+ h: 'පැය',
53
+ hh: 'පැය %d',
54
+ d: 'දිනය',
55
+ dd: 'දින %d',
56
+ M: 'මාසය',
57
+ MM: 'මාස %d',
58
+ y: 'වසර',
59
+ yy: 'වසර %d',
60
+ },
61
+ dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
62
+ ordinal: function (number) {
63
+ return number + ' වැනි';
64
+ },
65
+ meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
66
+ isPM: function (input) {
67
+ return input === 'ප.ව.' || input === 'පස් වරු';
68
+ },
69
+ meridiem: function (hours, minutes, isLower) {
70
+ if (hours > 11) {
71
+ return isLower ? 'ප.ව.' : 'පස් වරු';
72
+ } else {
73
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
74
+ }
75
+ },
76
+ });
77
+
78
+ return si;
79
+
80
+ })));
@@ -3,143 +3,154 @@
3
3
  //! author : Martin Minka : https://github.com/k2s
4
4
  //! based on work of petrbela : https://github.com/petrbela
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
- 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
10
- '_'
11
- ),
12
- monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
13
- function plural(n) {
14
- return n > 1 && n < 5;
15
- }
16
- function translate(number, withoutSuffix, key, isFuture) {
17
- var result = number + ' ';
18
- switch (key) {
19
- case 's': // a few seconds / in a few seconds / a few seconds ago
20
- return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
21
- case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
22
- if (withoutSuffix || isFuture) {
23
- return result + (plural(number) ? 'sekundy' : 'sekúnd');
24
- } else {
25
- return result + 'sekundami';
26
- }
27
- case 'm': // a minute / in a minute / a minute ago
28
- return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
29
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
30
- if (withoutSuffix || isFuture) {
31
- return result + (plural(number) ? 'minúty' : 'minút');
32
- } else {
33
- return result + 'minútami';
34
- }
35
- case 'h': // an hour / in an hour / an hour ago
36
- return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
37
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
38
- if (withoutSuffix || isFuture) {
39
- return result + (plural(number) ? 'hodiny' : 'hodín');
40
- } else {
41
- return result + 'hodinami';
42
- }
43
- case 'd': // a day / in a day / a day ago
44
- return withoutSuffix || isFuture ? 'deň' : 'dňom';
45
- case 'dd': // 9 days / in 9 days / 9 days ago
46
- if (withoutSuffix || isFuture) {
47
- return result + (plural(number) ? 'dni' : 'dní');
48
- } else {
49
- return result + 'dňami';
50
- }
51
- case 'M': // a month / in a month / a month ago
52
- return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
53
- case 'MM': // 9 months / in 9 months / 9 months ago
54
- if (withoutSuffix || isFuture) {
55
- return result + (plural(number) ? 'mesiace' : 'mesiacov');
56
- } else {
57
- return result + 'mesiacmi';
58
- }
59
- case 'y': // a year / in a year / a year ago
60
- return withoutSuffix || isFuture ? 'rok' : 'rokom';
61
- case 'yy': // 9 years / in 9 years / 9 years ago
62
- if (withoutSuffix || isFuture) {
63
- return result + (plural(number) ? 'roky' : 'rokov');
64
- } else {
65
- return result + 'rokmi';
66
- }
13
+ //! moment.js locale configuration
14
+
15
+ var months =
16
+ 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
17
+ '_'
18
+ ),
19
+ monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
20
+ function plural(n) {
21
+ return n > 1 && n < 5;
22
+ }
23
+ function translate(number, withoutSuffix, key, isFuture) {
24
+ var result = number + ' ';
25
+ switch (key) {
26
+ case 's': // a few seconds / in a few seconds / a few seconds ago
27
+ return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
28
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
29
+ if (withoutSuffix || isFuture) {
30
+ return result + (plural(number) ? 'sekundy' : 'sekúnd');
31
+ } else {
32
+ return result + 'sekundami';
33
+ }
34
+ case 'm': // a minute / in a minute / a minute ago
35
+ return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
36
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
37
+ if (withoutSuffix || isFuture) {
38
+ return result + (plural(number) ? 'minúty' : 'minút');
39
+ } else {
40
+ return result + 'minútami';
41
+ }
42
+ case 'h': // an hour / in an hour / an hour ago
43
+ return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
44
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
45
+ if (withoutSuffix || isFuture) {
46
+ return result + (plural(number) ? 'hodiny' : 'hodín');
47
+ } else {
48
+ return result + 'hodinami';
49
+ }
50
+ case 'd': // a day / in a day / a day ago
51
+ return withoutSuffix || isFuture ? 'deň' : 'dňom';
52
+ case 'dd': // 9 days / in 9 days / 9 days ago
53
+ if (withoutSuffix || isFuture) {
54
+ return result + (plural(number) ? 'dni' : 'dní');
55
+ } else {
56
+ return result + 'dňami';
57
+ }
58
+ case 'M': // a month / in a month / a month ago
59
+ return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
60
+ case 'MM': // 9 months / in 9 months / 9 months ago
61
+ if (withoutSuffix || isFuture) {
62
+ return result + (plural(number) ? 'mesiace' : 'mesiacov');
63
+ } else {
64
+ return result + 'mesiacmi';
65
+ }
66
+ case 'y': // a year / in a year / a year ago
67
+ return withoutSuffix || isFuture ? 'rok' : 'rokom';
68
+ case 'yy': // 9 years / in 9 years / 9 years ago
69
+ if (withoutSuffix || isFuture) {
70
+ return result + (plural(number) ? 'roky' : 'rokov');
71
+ } else {
72
+ return result + 'rokmi';
73
+ }
74
+ }
67
75
  }
68
- }
69
76
 
70
- export default moment.defineLocale('sk', {
71
- months: months,
72
- monthsShort: monthsShort,
73
- weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
74
- weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
75
- weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
76
- longDateFormat: {
77
- LT: 'H:mm',
78
- LTS: 'H:mm:ss',
79
- L: 'DD.MM.YYYY',
80
- LL: 'D. MMMM YYYY',
81
- LLL: 'D. MMMM YYYY H:mm',
82
- LLLL: 'dddd D. MMMM YYYY H:mm',
83
- },
84
- calendar: {
85
- sameDay: '[dnes o] LT',
86
- nextDay: '[zajtra o] LT',
87
- nextWeek: function () {
88
- switch (this.day()) {
89
- case 0:
90
- return '[v nedeľu o] LT';
91
- case 1:
92
- case 2:
93
- return '[v] dddd [o] LT';
94
- case 3:
95
- return '[v stredu o] LT';
96
- case 4:
97
- return '[vo štvrtok o] LT';
98
- case 5:
99
- return '[v piatok o] LT';
100
- case 6:
101
- return '[v sobotu o] LT';
102
- }
77
+ var sk = moment.defineLocale('sk', {
78
+ months: months,
79
+ monthsShort: monthsShort,
80
+ weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
81
+ weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
82
+ weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
83
+ longDateFormat: {
84
+ LT: 'H:mm',
85
+ LTS: 'H:mm:ss',
86
+ L: 'DD.MM.YYYY',
87
+ LL: 'D. MMMM YYYY',
88
+ LLL: 'D. MMMM YYYY H:mm',
89
+ LLLL: 'dddd D. MMMM YYYY H:mm',
90
+ },
91
+ calendar: {
92
+ sameDay: '[dnes o] LT',
93
+ nextDay: '[zajtra o] LT',
94
+ nextWeek: function () {
95
+ switch (this.day()) {
96
+ case 0:
97
+ return '[v nedeľu o] LT';
98
+ case 1:
99
+ case 2:
100
+ return '[v] dddd [o] LT';
101
+ case 3:
102
+ return '[v stredu o] LT';
103
+ case 4:
104
+ return '[vo štvrtok o] LT';
105
+ case 5:
106
+ return '[v piatok o] LT';
107
+ case 6:
108
+ return '[v sobotu o] LT';
109
+ }
110
+ },
111
+ lastDay: '[včera o] LT',
112
+ lastWeek: function () {
113
+ switch (this.day()) {
114
+ case 0:
115
+ return '[minulú nedeľu o] LT';
116
+ case 1:
117
+ case 2:
118
+ return '[minulý] dddd [o] LT';
119
+ case 3:
120
+ return '[minulú stredu o] LT';
121
+ case 4:
122
+ case 5:
123
+ return '[minulý] dddd [o] LT';
124
+ case 6:
125
+ return '[minulú sobotu o] LT';
126
+ }
127
+ },
128
+ sameElse: 'L',
103
129
  },
104
- lastDay: '[včera o] LT',
105
- lastWeek: function () {
106
- switch (this.day()) {
107
- case 0:
108
- return '[minulú nedeľu o] LT';
109
- case 1:
110
- case 2:
111
- return '[minulý] dddd [o] LT';
112
- case 3:
113
- return '[minulú stredu o] LT';
114
- case 4:
115
- case 5:
116
- return '[minulý] dddd [o] LT';
117
- case 6:
118
- return '[minulú sobotu o] LT';
119
- }
130
+ relativeTime: {
131
+ future: 'za %s',
132
+ past: 'pred %s',
133
+ s: translate,
134
+ ss: translate,
135
+ m: translate,
136
+ mm: translate,
137
+ h: translate,
138
+ hh: translate,
139
+ d: translate,
140
+ dd: translate,
141
+ M: translate,
142
+ MM: translate,
143
+ y: translate,
144
+ yy: translate,
120
145
  },
121
- sameElse: 'L',
122
- },
123
- relativeTime: {
124
- future: 'za %s',
125
- past: 'pred %s',
126
- s: translate,
127
- ss: translate,
128
- m: translate,
129
- mm: translate,
130
- h: translate,
131
- hh: translate,
132
- d: translate,
133
- dd: translate,
134
- M: translate,
135
- MM: translate,
136
- y: translate,
137
- yy: translate,
138
- },
139
- dayOfMonthOrdinalParse: /\d{1,2}\./,
140
- ordinal: '%d.',
141
- week: {
142
- dow: 1, // Monday is the first day of the week.
143
- doy: 4, // The week that contains Jan 4th is the first week of the year.
144
- },
145
- });
146
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
147
+ ordinal: '%d.',
148
+ week: {
149
+ dow: 1, // Monday is the first day of the week.
150
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
151
+ },
152
+ });
153
+
154
+ return sk;
155
+
156
+ })));