momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -0,0 +1,72 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Sinhalese [si]
3
+ //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
4
+
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';
11
+
12
+
13
+ /*jshint -W100*/
14
+ var si = moment.defineLocale('si', {
15
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
16
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
17
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
18
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
19
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'a h:mm',
23
+ LTS : 'a h:mm:ss',
24
+ L : 'YYYY/MM/DD',
25
+ LL : 'YYYY MMMM D',
26
+ LLL : 'YYYY MMMM D, a h:mm',
27
+ LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
28
+ },
29
+ calendar : {
30
+ sameDay : '[අද] LT[ට]',
31
+ nextDay : '[හෙට] LT[ට]',
32
+ nextWeek : 'dddd LT[ට]',
33
+ lastDay : '[ඊයේ] LT[ට]',
34
+ lastWeek : '[පසුගිය] dddd LT[ට]',
35
+ sameElse : 'L'
36
+ },
37
+ relativeTime : {
38
+ future : '%sකින්',
39
+ past : '%sකට පෙර',
40
+ s : 'තත්පර කිහිපය',
41
+ ss : 'තත්පර %d',
42
+ m : 'මිනිත්තුව',
43
+ mm : 'මිනිත්තු %d',
44
+ h : 'පැය',
45
+ hh : 'පැය %d',
46
+ d : 'දිනය',
47
+ dd : 'දින %d',
48
+ M : 'මාසය',
49
+ MM : 'මාස %d',
50
+ y : 'වසර',
51
+ yy : 'වසර %d'
52
+ },
53
+ dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
54
+ ordinal : function (number) {
55
+ return number + ' වැනි';
56
+ },
57
+ meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
58
+ isPM : function (input) {
59
+ return input === 'ප.ව.' || input === 'පස් වරු';
60
+ },
61
+ meridiem : function (hours, minutes, isLower) {
62
+ if (hours > 11) {
63
+ return isLower ? 'ප.ව.' : 'පස් වරු';
64
+ } else {
65
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
66
+ }
67
+ }
68
+ });
69
+
70
+ return si;
71
+
72
+ })));
@@ -1,29 +1,33 @@
1
- // moment.js locale configuration
2
- // locale : slovak (sk)
3
- // author : Martin Minka : https://github.com/k2s
4
- // based on work of petrbela : https://github.com/petrbela
1
+ //! moment.js locale configuration
2
+ //! locale : Slovak [sk]
3
+ //! author : Martin Minka : https://github.com/k2s
4
+ //! based on work of petrbela : https://github.com/petrbela
5
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
- }
14
- }(function (moment) {
15
- var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
16
- monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
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';
17
12
 
18
- function plural(n) {
19
- return (n > 1) && (n < 5);
20
- }
21
13
 
22
- function translate(number, withoutSuffix, key, isFuture) {
23
- var result = number + ' ';
24
- switch (key) {
14
+ var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
15
+ var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
16
+ function plural(n) {
17
+ return (n > 1) && (n < 5);
18
+ }
19
+ function translate(number, withoutSuffix, key, isFuture) {
20
+ var result = number + ' ';
21
+ switch (key) {
25
22
  case 's': // a few seconds / in a few seconds / a few seconds ago
26
23
  return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
24
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
25
+ if (withoutSuffix || isFuture) {
26
+ return result + (plural(number) ? 'sekundy' : 'sekúnd');
27
+ } else {
28
+ return result + 'sekundami';
29
+ }
30
+ break;
27
31
  case 'm': // a minute / in a minute / a minute ago
28
32
  return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
29
33
  case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
@@ -69,36 +73,28 @@
69
73
  return result + 'rokmi';
70
74
  }
71
75
  break;
72
- }
73
76
  }
77
+ }
74
78
 
75
- return moment.defineLocale('sk', {
76
- months : months,
77
- monthsShort : monthsShort,
78
- monthsParse : (function (months, monthsShort) {
79
- var i, _monthsParse = [];
80
- for (i = 0; i < 12; i++) {
81
- // use custom parser to solve problem with July (červenec)
82
- _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
83
- }
84
- return _monthsParse;
85
- }(months, monthsShort)),
86
- weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
87
- weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
88
- weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
89
- longDateFormat : {
90
- LT: 'H:mm',
91
- LTS : 'LT:ss',
92
- L : 'DD.MM.YYYY',
93
- LL : 'D. MMMM YYYY',
94
- LLL : 'D. MMMM YYYY LT',
95
- LLLL : 'dddd D. MMMM YYYY LT'
96
- },
97
- calendar : {
98
- sameDay: '[dnes o] LT',
99
- nextDay: '[zajtra o] LT',
100
- nextWeek: function () {
101
- switch (this.day()) {
79
+ var sk = moment.defineLocale('sk', {
80
+ months : months,
81
+ monthsShort : monthsShort,
82
+ weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
83
+ weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
84
+ weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
85
+ longDateFormat : {
86
+ LT: 'H:mm',
87
+ LTS : 'H:mm:ss',
88
+ L : 'DD.MM.YYYY',
89
+ LL : 'D. MMMM YYYY',
90
+ LLL : 'D. MMMM YYYY H:mm',
91
+ LLLL : 'dddd D. MMMM YYYY H:mm'
92
+ },
93
+ calendar : {
94
+ sameDay: '[dnes o] LT',
95
+ nextDay: '[zajtra o] LT',
96
+ nextWeek: function () {
97
+ switch (this.day()) {
102
98
  case 0:
103
99
  return '[v nedeľu o] LT';
104
100
  case 1:
@@ -112,11 +108,11 @@
112
108
  return '[v piatok o] LT';
113
109
  case 6:
114
110
  return '[v sobotu o] LT';
115
- }
116
- },
117
- lastDay: '[včera o] LT',
118
- lastWeek: function () {
119
- switch (this.day()) {
111
+ }
112
+ },
113
+ lastDay: '[včera o] LT',
114
+ lastWeek: function () {
115
+ switch (this.day()) {
120
116
  case 0:
121
117
  return '[minulú nedeľu o] LT';
122
118
  case 1:
@@ -129,30 +125,34 @@
129
125
  return '[minulý] dddd [o] LT';
130
126
  case 6:
131
127
  return '[minulú sobotu o] LT';
132
- }
133
- },
134
- sameElse: 'L'
135
- },
136
- relativeTime : {
137
- future : 'za %s',
138
- past : 'pred %s',
139
- s : translate,
140
- m : translate,
141
- mm : translate,
142
- h : translate,
143
- hh : translate,
144
- d : translate,
145
- dd : translate,
146
- M : translate,
147
- MM : translate,
148
- y : translate,
149
- yy : translate
128
+ }
150
129
  },
151
- ordinalParse: /\d{1,2}\./,
152
- ordinal : '%d.',
153
- week : {
154
- dow : 1, // Monday is the first day of the week.
155
- doy : 4 // The week that contains Jan 4th is the first week of the year.
156
- }
157
- });
158
- }));
130
+ sameElse: 'L'
131
+ },
132
+ relativeTime : {
133
+ future : 'za %s',
134
+ past : 'pred %s',
135
+ s : translate,
136
+ ss : translate,
137
+ m : translate,
138
+ mm : translate,
139
+ h : translate,
140
+ hh : translate,
141
+ d : translate,
142
+ dd : translate,
143
+ M : translate,
144
+ MM : translate,
145
+ y : translate,
146
+ yy : translate
147
+ },
148
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
149
+ ordinal : '%d.',
150
+ week : {
151
+ dow : 1, // Monday is the first day of the week.
152
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
153
+ }
154
+ });
155
+
156
+ return sk;
157
+
158
+ })));
@@ -1,97 +1,119 @@
1
- // moment.js locale configuration
2
- // locale : slovenian (sl)
3
- // author : Robert Sedovšek : https://github.com/sedovsek
1
+ //! moment.js locale configuration
2
+ //! locale : Slovenian [sl]
3
+ //! author : Robert Sedovšek : https://github.com/sedovsek
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- function translate(number, withoutSuffix, key) {
15
- var result = number + ' ';
16
- switch (key) {
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';
11
+
12
+
13
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
14
+ var result = number + ' ';
15
+ switch (key) {
16
+ case 's':
17
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
+ case 'ss':
19
+ if (number === 1) {
20
+ result += withoutSuffix ? 'sekundo' : 'sekundi';
21
+ } else if (number === 2) {
22
+ result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
23
+ } else if (number < 5) {
24
+ result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
25
+ } else {
26
+ result += withoutSuffix || isFuture ? 'sekund' : 'sekund';
27
+ }
28
+ return result;
17
29
  case 'm':
18
30
  return withoutSuffix ? 'ena minuta' : 'eno minuto';
19
31
  case 'mm':
20
32
  if (number === 1) {
21
- result += 'minuta';
33
+ result += withoutSuffix ? 'minuta' : 'minuto';
22
34
  } else if (number === 2) {
23
- result += 'minuti';
24
- } else if (number === 3 || number === 4) {
25
- result += 'minute';
35
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
36
+ } else if (number < 5) {
37
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
26
38
  } else {
27
- result += 'minut';
39
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
28
40
  }
29
41
  return result;
30
42
  case 'h':
31
43
  return withoutSuffix ? 'ena ura' : 'eno uro';
32
44
  case 'hh':
33
45
  if (number === 1) {
34
- result += 'ura';
46
+ result += withoutSuffix ? 'ura' : 'uro';
35
47
  } else if (number === 2) {
36
- result += 'uri';
37
- } else if (number === 3 || number === 4) {
38
- result += 'ure';
48
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
49
+ } else if (number < 5) {
50
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
39
51
  } else {
40
- result += 'ur';
52
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
41
53
  }
42
54
  return result;
55
+ case 'd':
56
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
43
57
  case 'dd':
44
58
  if (number === 1) {
45
- result += 'dan';
59
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
60
+ } else if (number === 2) {
61
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
46
62
  } else {
47
- result += 'dni';
63
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
48
64
  }
49
65
  return result;
66
+ case 'M':
67
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
50
68
  case 'MM':
51
69
  if (number === 1) {
52
- result += 'mesec';
70
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
53
71
  } else if (number === 2) {
54
- result += 'meseca';
55
- } else if (number === 3 || number === 4) {
56
- result += 'mesece';
72
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
73
+ } else if (number < 5) {
74
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
57
75
  } else {
58
- result += 'mesecev';
76
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
59
77
  }
60
78
  return result;
79
+ case 'y':
80
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
61
81
  case 'yy':
62
82
  if (number === 1) {
63
- result += 'leto';
83
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
64
84
  } else if (number === 2) {
65
- result += 'leti';
66
- } else if (number === 3 || number === 4) {
67
- result += 'leta';
85
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
86
+ } else if (number < 5) {
87
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
68
88
  } else {
69
- result += 'let';
89
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
70
90
  }
71
91
  return result;
72
- }
73
92
  }
93
+ }
74
94
 
75
- return moment.defineLocale('sl', {
76
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
77
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
78
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
79
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
80
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
81
- longDateFormat : {
82
- LT : 'H:mm',
83
- LTS : 'LT:ss',
84
- L : 'DD. MM. YYYY',
85
- LL : 'D. MMMM YYYY',
86
- LLL : 'D. MMMM YYYY LT',
87
- LLLL : 'dddd, D. MMMM YYYY LT'
88
- },
89
- calendar : {
90
- sameDay : '[danes ob] LT',
91
- nextDay : '[jutri ob] LT',
95
+ var sl = moment.defineLocale('sl', {
96
+ months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
97
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
98
+ monthsParseExact: true,
99
+ weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
100
+ weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
101
+ weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
102
+ weekdaysParseExact : true,
103
+ longDateFormat : {
104
+ LT : 'H:mm',
105
+ LTS : 'H:mm:ss',
106
+ L : 'DD.MM.YYYY',
107
+ LL : 'D. MMMM YYYY',
108
+ LLL : 'D. MMMM YYYY H:mm',
109
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
110
+ },
111
+ calendar : {
112
+ sameDay : '[danes ob] LT',
113
+ nextDay : '[jutri ob] LT',
92
114
 
93
- nextWeek : function () {
94
- switch (this.day()) {
115
+ nextWeek : function () {
116
+ switch (this.day()) {
95
117
  case 0:
96
118
  return '[v] [nedeljo] [ob] LT';
97
119
  case 3:
@@ -103,44 +125,50 @@
103
125
  case 4:
104
126
  case 5:
105
127
  return '[v] dddd [ob] LT';
106
- }
107
- },
108
- lastDay : '[včeraj ob] LT',
109
- lastWeek : function () {
110
- switch (this.day()) {
128
+ }
129
+ },
130
+ lastDay : '[včeraj ob] LT',
131
+ lastWeek : function () {
132
+ switch (this.day()) {
111
133
  case 0:
134
+ return '[prejšnjo] [nedeljo] [ob] LT';
112
135
  case 3:
136
+ return '[prejšnjo] [sredo] [ob] LT';
113
137
  case 6:
114
- return '[prejšnja] dddd [ob] LT';
138
+ return '[prejšnjo] [soboto] [ob] LT';
115
139
  case 1:
116
140
  case 2:
117
141
  case 4:
118
142
  case 5:
119
143
  return '[prejšnji] dddd [ob] LT';
120
- }
121
- },
122
- sameElse : 'L'
123
- },
124
- relativeTime : {
125
- future : 'čez %s',
126
- past : '%s nazaj',
127
- s : 'nekaj sekund',
128
- m : translate,
129
- mm : translate,
130
- h : translate,
131
- hh : translate,
132
- d : 'en dan',
133
- dd : translate,
134
- M : 'en mesec',
135
- MM : translate,
136
- y : 'eno leto',
137
- yy : translate
144
+ }
138
145
  },
139
- ordinalParse: /\d{1,2}\./,
140
- ordinal : '%d.',
141
- week : {
142
- dow : 1, // Monday is the first day of the week.
143
- doy : 7 // The week that contains Jan 1st is the first week of the year.
144
- }
145
- });
146
- }));
146
+ sameElse : 'L'
147
+ },
148
+ relativeTime : {
149
+ future : 'čez %s',
150
+ past : 'pred %s',
151
+ s : processRelativeTime,
152
+ ss : processRelativeTime,
153
+ m : processRelativeTime,
154
+ mm : processRelativeTime,
155
+ h : processRelativeTime,
156
+ hh : processRelativeTime,
157
+ d : processRelativeTime,
158
+ dd : processRelativeTime,
159
+ M : processRelativeTime,
160
+ MM : processRelativeTime,
161
+ y : processRelativeTime,
162
+ yy : processRelativeTime
163
+ },
164
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
165
+ ordinal : '%d.',
166
+ week : {
167
+ dow : 1, // Monday is the first day of the week.
168
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
169
+ }
170
+ });
171
+
172
+ return sl;
173
+
174
+ })));
@@ -1,67 +1,71 @@
1
- // moment.js locale configuration
2
- // locale : Albanian (sq)
3
- // author : Flakërim Ismani : https://github.com/flakerimi
4
- // author: Menelion Elensúle: https://github.com/Oire (tests)
5
- // author : Oerd Cukalla : https://github.com/oerd (fixes)
1
+ //! moment.js locale configuration
2
+ //! locale : Albanian [sq]
3
+ //! author : Flakërim Ismani : https://github.com/flakerimi
4
+ //! author : Menelion Elensúle : https://github.com/Oire
5
+ //! author : Oerd Cukalla : https://github.com/oerd
6
6
 
7
- (function (factory) {
8
- if (typeof define === 'function' && define.amd) {
9
- define(['moment'], factory); // AMD
10
- } else if (typeof exports === 'object') {
11
- module.exports = factory(require('../moment')); // Node
12
- } else {
13
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
15
+ var sq = moment.defineLocale('sq', {
16
+ months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
17
+ monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18
+ weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
19
+ weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
20
+ weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
21
+ weekdaysParseExact : true,
22
+ meridiemParse: /PD|MD/,
23
+ isPM: function (input) {
24
+ return input.charAt(0) === 'M';
25
+ },
26
+ meridiem : function (hours, minutes, isLower) {
27
+ return hours < 12 ? 'PD' : 'MD';
28
+ },
29
+ longDateFormat : {
30
+ LT : 'HH:mm',
31
+ LTS : 'HH:mm:ss',
32
+ L : 'DD/MM/YYYY',
33
+ LL : 'D MMMM YYYY',
34
+ LLL : 'D MMMM YYYY HH:mm',
35
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
36
+ },
37
+ calendar : {
38
+ sameDay : '[Sot në] LT',
39
+ nextDay : '[Nesër në] LT',
40
+ nextWeek : 'dddd [në] LT',
41
+ lastDay : '[Dje në] LT',
42
+ lastWeek : 'dddd [e kaluar në] LT',
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : 'në %s',
47
+ past : '%s më parë',
48
+ s : 'disa sekonda',
49
+ ss : '%d sekonda',
50
+ m : 'një minutë',
51
+ mm : '%d minuta',
52
+ h : 'një orë',
53
+ hh : '%d orë',
54
+ d : 'një ditë',
55
+ dd : '%d ditë',
56
+ M : 'një muaj',
57
+ MM : '%d muaj',
58
+ y : 'një vit',
59
+ yy : '%d vite'
60
+ },
61
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
62
+ ordinal : '%d.',
63
+ week : {
64
+ dow : 1, // Monday is the first day of the week.
65
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
14
66
  }
15
- }(function (moment) {
16
- return moment.defineLocale('sq', {
17
- months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
18
- monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
19
- weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
20
- weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
21
- weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
22
- meridiemParse: /PD|MD/,
23
- isPM: function (input) {
24
- return input.charAt(0) === 'M';
25
- },
26
- meridiem : function (hours, minutes, isLower) {
27
- return hours < 12 ? 'PD' : 'MD';
28
- },
29
- longDateFormat : {
30
- LT : 'HH:mm',
31
- LTS : 'LT:ss',
32
- L : 'DD/MM/YYYY',
33
- LL : 'D MMMM YYYY',
34
- LLL : 'D MMMM YYYY LT',
35
- LLLL : 'dddd, D MMMM YYYY LT'
36
- },
37
- calendar : {
38
- sameDay : '[Sot në] LT',
39
- nextDay : '[Nesër në] LT',
40
- nextWeek : 'dddd [në] LT',
41
- lastDay : '[Dje në] LT',
42
- lastWeek : 'dddd [e kaluar në] LT',
43
- sameElse : 'L'
44
- },
45
- relativeTime : {
46
- future : 'në %s',
47
- past : '%s më parë',
48
- s : 'disa sekonda',
49
- m : 'një minutë',
50
- mm : '%d minuta',
51
- h : 'një orë',
52
- hh : '%d orë',
53
- d : 'një ditë',
54
- dd : '%d ditë',
55
- M : 'një muaj',
56
- MM : '%d muaj',
57
- y : 'një vit',
58
- yy : '%d vite'
59
- },
60
- ordinalParse: /\d{1,2}\./,
61
- ordinal : '%d.',
62
- week : {
63
- dow : 1, // Monday is the first day of the week.
64
- doy : 4 // The week that contains Jan 4th is the first week of the year.
65
- }
66
- });
67
- }));
67
+ });
68
+
69
+ return sq;
70
+
71
+ })));