momentjs-rails 2.11.1 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  5. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  6. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  7. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  8. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  9. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  10. data/test/integration/navigation_test.rb +1 -1
  11. data/vendor/assets/javascripts/moment.js +1517 -889
  12. data/vendor/assets/javascripts/moment/af.js +3 -3
  13. data/vendor/assets/javascripts/moment/ar-ly.js +122 -0
  14. data/vendor/assets/javascripts/moment/ar-ma.js +3 -2
  15. data/vendor/assets/javascripts/moment/ar-sa.js +3 -2
  16. data/vendor/assets/javascripts/moment/ar-tn.js +4 -2
  17. data/vendor/assets/javascripts/moment/ar.js +6 -5
  18. data/vendor/assets/javascripts/moment/az.js +3 -2
  19. data/vendor/assets/javascripts/moment/be.js +21 -21
  20. data/vendor/assets/javascripts/moment/bg.js +11 -11
  21. data/vendor/assets/javascripts/moment/bn.js +18 -12
  22. data/vendor/assets/javascripts/moment/bo.js +13 -4
  23. data/vendor/assets/javascripts/moment/br.js +11 -10
  24. data/vendor/assets/javascripts/moment/bs.js +73 -71
  25. data/vendor/assets/javascripts/moment/ca.js +4 -2
  26. data/vendor/assets/javascripts/moment/cs.js +76 -75
  27. data/vendor/assets/javascripts/moment/cv.js +2 -2
  28. data/vendor/assets/javascripts/moment/cy.js +5 -3
  29. data/vendor/assets/javascripts/moment/da.js +2 -2
  30. data/vendor/assets/javascripts/moment/de-at.js +4 -2
  31. data/vendor/assets/javascripts/moment/de.js +4 -2
  32. data/vendor/assets/javascripts/moment/dv.js +3 -3
  33. data/vendor/assets/javascripts/moment/el.js +2 -2
  34. data/vendor/assets/javascripts/moment/en-au.js +3 -2
  35. data/vendor/assets/javascripts/moment/en-ca.js +5 -5
  36. data/vendor/assets/javascripts/moment/en-gb.js +2 -2
  37. data/vendor/assets/javascripts/moment/en-ie.js +2 -2
  38. data/vendor/assets/javascripts/moment/en-nz.js +3 -2
  39. data/vendor/assets/javascripts/moment/eo.js +2 -2
  40. data/vendor/assets/javascripts/moment/es-do.js +80 -0
  41. data/vendor/assets/javascripts/moment/es.js +4 -2
  42. data/vendor/assets/javascripts/moment/et.js +2 -2
  43. data/vendor/assets/javascripts/moment/eu.js +4 -2
  44. data/vendor/assets/javascripts/moment/fa.js +3 -2
  45. data/vendor/assets/javascripts/moment/fi.js +29 -29
  46. data/vendor/assets/javascripts/moment/fo.js +2 -2
  47. data/vendor/assets/javascripts/moment/fr-ca.js +4 -2
  48. data/vendor/assets/javascripts/moment/fr-ch.js +4 -2
  49. data/vendor/assets/javascripts/moment/fr.js +4 -2
  50. data/vendor/assets/javascripts/moment/fy.js +4 -2
  51. data/vendor/assets/javascripts/moment/gd.js +2 -2
  52. data/vendor/assets/javascripts/moment/gl.js +15 -13
  53. data/vendor/assets/javascripts/moment/he.js +19 -2
  54. data/vendor/assets/javascripts/moment/hi.js +3 -2
  55. data/vendor/assets/javascripts/moment/hr.js +73 -71
  56. data/vendor/assets/javascripts/moment/hu.js +24 -24
  57. data/vendor/assets/javascripts/moment/hy-am.js +12 -12
  58. data/vendor/assets/javascripts/moment/id.js +2 -2
  59. data/vendor/assets/javascripts/moment/is.js +52 -52
  60. data/vendor/assets/javascripts/moment/it.js +2 -2
  61. data/vendor/assets/javascripts/moment/ja.js +13 -2
  62. data/vendor/assets/javascripts/moment/jv.js +2 -2
  63. data/vendor/assets/javascripts/moment/ka.js +2 -2
  64. data/vendor/assets/javascripts/moment/kk.js +7 -7
  65. data/vendor/assets/javascripts/moment/km.js +4 -4
  66. data/vendor/assets/javascripts/moment/ko.js +8 -11
  67. data/vendor/assets/javascripts/moment/ky.js +88 -0
  68. data/vendor/assets/javascripts/moment/lb.js +6 -3
  69. data/vendor/assets/javascripts/moment/lo.js +3 -2
  70. data/vendor/assets/javascripts/moment/lt.js +5 -3
  71. data/vendor/assets/javascripts/moment/lv.js +5 -4
  72. data/vendor/assets/javascripts/moment/me.js +21 -19
  73. data/vendor/assets/javascripts/moment/mi.js +64 -0
  74. data/vendor/assets/javascripts/moment/mk.js +11 -11
  75. data/vendor/assets/javascripts/moment/ml.js +14 -4
  76. data/vendor/assets/javascripts/moment/mr.js +3 -2
  77. data/vendor/assets/javascripts/moment/ms-my.js +3 -2
  78. data/vendor/assets/javascripts/moment/ms.js +2 -2
  79. data/vendor/assets/javascripts/moment/my.js +4 -2
  80. data/vendor/assets/javascripts/moment/nb.js +5 -3
  81. data/vendor/assets/javascripts/moment/ne.js +4 -2
  82. data/vendor/assets/javascripts/moment/nl.js +18 -3
  83. data/vendor/assets/javascripts/moment/nn.js +3 -3
  84. data/vendor/assets/javascripts/moment/pa-in.js +124 -0
  85. data/vendor/assets/javascripts/moment/pl.js +22 -22
  86. data/vendor/assets/javascripts/moment/pt-br.js +4 -3
  87. data/vendor/assets/javascripts/moment/pt.js +3 -2
  88. data/vendor/assets/javascripts/moment/ro.js +3 -2
  89. data/vendor/assets/javascripts/moment/ru.js +59 -42
  90. data/vendor/assets/javascripts/moment/se.js +2 -2
  91. data/vendor/assets/javascripts/moment/si.js +7 -2
  92. data/vendor/assets/javascripts/moment/sk.js +74 -74
  93. data/vendor/assets/javascripts/moment/sl.js +92 -90
  94. data/vendor/assets/javascripts/moment/sq.js +5 -4
  95. data/vendor/assets/javascripts/moment/sr-cyrl.js +21 -19
  96. data/vendor/assets/javascripts/moment/sr.js +21 -19
  97. data/vendor/assets/javascripts/moment/ss.js +89 -0
  98. data/vendor/assets/javascripts/moment/sv.js +6 -4
  99. data/vendor/assets/javascripts/moment/sw.js +3 -2
  100. data/vendor/assets/javascripts/moment/ta.js +2 -2
  101. data/vendor/assets/javascripts/moment/te.js +3 -2
  102. data/vendor/assets/javascripts/moment/th.js +9 -7
  103. data/vendor/assets/javascripts/moment/tl-ph.js +3 -3
  104. data/vendor/assets/javascripts/moment/tlh.js +18 -17
  105. data/vendor/assets/javascripts/moment/tr.js +2 -2
  106. data/vendor/assets/javascripts/moment/tzl.js +8 -4
  107. data/vendor/assets/javascripts/moment/tzm-latn.js +2 -2
  108. data/vendor/assets/javascripts/moment/tzm.js +2 -2
  109. data/vendor/assets/javascripts/moment/uk.js +21 -21
  110. data/vendor/assets/javascripts/moment/uz.js +2 -2
  111. data/vendor/assets/javascripts/moment/vi.js +15 -2
  112. data/vendor/assets/javascripts/moment/x-pseudo.js +68 -0
  113. data/vendor/assets/javascripts/moment/zh-cn.js +14 -14
  114. data/vendor/assets/javascripts/moment/zh-hk.js +105 -0
  115. data/vendor/assets/javascripts/moment/zh-tw.js +29 -26
  116. metadata +10 -4
  117. data/test/dummy/log/test.log +0 -47
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : Northern Sami (se)
2
+ //! locale : Northern Sami [se]
3
3
  //! authors : Bård Rolstad Henriksen : https://github.com/karamell
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : Sinhalese (si)
2
+ //! locale : Sinhalese [si]
3
3
  //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -17,6 +17,7 @@
17
17
  weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
18
18
  weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
19
19
  weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
20
+ weekdaysParseExact : true,
20
21
  longDateFormat : {
21
22
  LT : 'a h:mm',
22
23
  LTS : 'a h:mm:ss',
@@ -52,6 +53,10 @@
52
53
  ordinal : function (number) {
53
54
  return number + ' වැනි';
54
55
  },
56
+ meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
57
+ isPM : function (input) {
58
+ return input === 'ප.ව.' || input === 'පස් වරු';
59
+ },
55
60
  meridiem : function (hours, minutes, isLower) {
56
61
  if (hours > 11) {
57
62
  return isLower ? 'ප.ව.' : 'පස් වරු';
@@ -1,12 +1,12 @@
1
1
  //! moment.js locale configuration
2
- //! locale : slovak (sk)
2
+ //! locale : Slovak [sk]
3
3
  //! author : Martin Minka : https://github.com/k2s
4
4
  //! based on work of petrbela : https://github.com/petrbela
5
5
 
6
6
  ;(function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined'
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
11
  }(this, function (moment) { 'use strict';
12
12
 
@@ -19,53 +19,53 @@
19
19
  function translate(number, withoutSuffix, key, isFuture) {
20
20
  var result = number + ' ';
21
21
  switch (key) {
22
- case 's': // a few seconds / in a few seconds / a few seconds ago
23
- return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
24
- case 'm': // a minute / in a minute / a minute ago
25
- return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
26
- case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
27
- if (withoutSuffix || isFuture) {
28
- return result + (plural(number) ? 'minúty' : 'minút');
29
- } else {
30
- return result + 'minútami';
31
- }
32
- break;
33
- case 'h': // an hour / in an hour / an hour ago
34
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
35
- case 'hh': // 9 hours / in 9 hours / 9 hours ago
36
- if (withoutSuffix || isFuture) {
37
- return result + (plural(number) ? 'hodiny' : 'hodín');
38
- } else {
39
- return result + 'hodinami';
40
- }
41
- break;
42
- case 'd': // a day / in a day / a day ago
43
- return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
44
- case 'dd': // 9 days / in 9 days / 9 days ago
45
- if (withoutSuffix || isFuture) {
46
- return result + (plural(number) ? 'dni' : 'dní');
47
- } else {
48
- return result + 'dňami';
49
- }
50
- break;
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
- break;
60
- case 'y': // a year / in a year / a year ago
61
- return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
62
- case 'yy': // 9 years / in 9 years / 9 years ago
63
- if (withoutSuffix || isFuture) {
64
- return result + (plural(number) ? 'roky' : 'rokov');
65
- } else {
66
- return result + 'rokmi';
67
- }
68
- break;
22
+ case 's': // a few seconds / in a few seconds / a few seconds ago
23
+ return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
24
+ case 'm': // a minute / in a minute / a minute ago
25
+ return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
26
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
27
+ if (withoutSuffix || isFuture) {
28
+ return result + (plural(number) ? 'minúty' : 'minút');
29
+ } else {
30
+ return result + 'minútami';
31
+ }
32
+ break;
33
+ case 'h': // an hour / in an hour / an hour ago
34
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
35
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
36
+ if (withoutSuffix || isFuture) {
37
+ return result + (plural(number) ? 'hodiny' : 'hodín');
38
+ } else {
39
+ return result + 'hodinami';
40
+ }
41
+ break;
42
+ case 'd': // a day / in a day / a day ago
43
+ return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
44
+ case 'dd': // 9 days / in 9 days / 9 days ago
45
+ if (withoutSuffix || isFuture) {
46
+ return result + (plural(number) ? 'dni' : 'dní');
47
+ } else {
48
+ return result + 'dňami';
49
+ }
50
+ break;
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
+ break;
60
+ case 'y': // a year / in a year / a year ago
61
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
62
+ case 'yy': // 9 years / in 9 years / 9 years ago
63
+ if (withoutSuffix || isFuture) {
64
+ return result + (plural(number) ? 'roky' : 'rokov');
65
+ } else {
66
+ return result + 'rokmi';
67
+ }
68
+ break;
69
69
  }
70
70
  }
71
71
 
@@ -88,36 +88,36 @@
88
88
  nextDay: '[zajtra o] LT',
89
89
  nextWeek: function () {
90
90
  switch (this.day()) {
91
- case 0:
92
- return '[v nedeľu o] LT';
93
- case 1:
94
- case 2:
95
- return '[v] dddd [o] LT';
96
- case 3:
97
- return '[v stredu o] LT';
98
- case 4:
99
- return '[vo štvrtok o] LT';
100
- case 5:
101
- return '[v piatok o] LT';
102
- case 6:
103
- return '[v sobotu o] LT';
91
+ case 0:
92
+ return '[v nedeľu o] LT';
93
+ case 1:
94
+ case 2:
95
+ return '[v] dddd [o] LT';
96
+ case 3:
97
+ return '[v stredu o] LT';
98
+ case 4:
99
+ return '[vo štvrtok o] LT';
100
+ case 5:
101
+ return '[v piatok o] LT';
102
+ case 6:
103
+ return '[v sobotu o] LT';
104
104
  }
105
105
  },
106
106
  lastDay: '[včera o] LT',
107
107
  lastWeek: function () {
108
108
  switch (this.day()) {
109
- case 0:
110
- return '[minulú nedeľu o] LT';
111
- case 1:
112
- case 2:
113
- return '[minulý] dddd [o] LT';
114
- case 3:
115
- return '[minulú stredu o] LT';
116
- case 4:
117
- case 5:
118
- return '[minulý] dddd [o] LT';
119
- case 6:
120
- return '[minulú sobotu o] LT';
109
+ case 0:
110
+ return '[minulú nedeľu o] LT';
111
+ case 1:
112
+ case 2:
113
+ return '[minulý] dddd [o] LT';
114
+ case 3:
115
+ return '[minulú stredu o] LT';
116
+ case 4:
117
+ case 5:
118
+ return '[minulý] dddd [o] LT';
119
+ case 6:
120
+ return '[minulú sobotu o] LT';
121
121
  }
122
122
  },
123
123
  sameElse: 'L'
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : slovenian (sl)
2
+ //! locale : Slovenian [sl]
3
3
  //! author : Robert Sedovšek : https://github.com/sedovsek
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,84 +13,86 @@
13
13
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
14
14
  var result = number + ' ';
15
15
  switch (key) {
16
- case 's':
17
- return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
- case 'm':
19
- return withoutSuffix ? 'ena minuta' : 'eno minuto';
20
- case 'mm':
21
- if (number === 1) {
22
- result += withoutSuffix ? 'minuta' : 'minuto';
23
- } else if (number === 2) {
24
- result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
25
- } else if (number < 5) {
26
- result += withoutSuffix || isFuture ? 'minute' : 'minutami';
27
- } else {
28
- result += withoutSuffix || isFuture ? 'minut' : 'minutami';
29
- }
30
- return result;
31
- case 'h':
32
- return withoutSuffix ? 'ena ura' : 'eno uro';
33
- case 'hh':
34
- if (number === 1) {
35
- result += withoutSuffix ? 'ura' : 'uro';
36
- } else if (number === 2) {
37
- result += withoutSuffix || isFuture ? 'uri' : 'urama';
38
- } else if (number < 5) {
39
- result += withoutSuffix || isFuture ? 'ure' : 'urami';
40
- } else {
41
- result += withoutSuffix || isFuture ? 'ur' : 'urami';
42
- }
43
- return result;
44
- case 'd':
45
- return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
46
- case 'dd':
47
- if (number === 1) {
48
- result += withoutSuffix || isFuture ? 'dan' : 'dnem';
49
- } else if (number === 2) {
50
- result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
51
- } else {
52
- result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
53
- }
54
- return result;
55
- case 'M':
56
- return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
57
- case 'MM':
58
- if (number === 1) {
59
- result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
60
- } else if (number === 2) {
61
- result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
62
- } else if (number < 5) {
63
- result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
64
- } else {
65
- result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
66
- }
67
- return result;
68
- case 'y':
69
- return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
70
- case 'yy':
71
- if (number === 1) {
72
- result += withoutSuffix || isFuture ? 'leto' : 'letom';
73
- } else if (number === 2) {
74
- result += withoutSuffix || isFuture ? 'leti' : 'letoma';
75
- } else if (number < 5) {
76
- result += withoutSuffix || isFuture ? 'leta' : 'leti';
77
- } else {
78
- result += withoutSuffix || isFuture ? 'let' : 'leti';
79
- }
80
- return result;
16
+ case 's':
17
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
+ case 'm':
19
+ return withoutSuffix ? 'ena minuta' : 'eno minuto';
20
+ case 'mm':
21
+ if (number === 1) {
22
+ result += withoutSuffix ? 'minuta' : 'minuto';
23
+ } else if (number === 2) {
24
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
25
+ } else if (number < 5) {
26
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
27
+ } else {
28
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
29
+ }
30
+ return result;
31
+ case 'h':
32
+ return withoutSuffix ? 'ena ura' : 'eno uro';
33
+ case 'hh':
34
+ if (number === 1) {
35
+ result += withoutSuffix ? 'ura' : 'uro';
36
+ } else if (number === 2) {
37
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
38
+ } else if (number < 5) {
39
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
40
+ } else {
41
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
42
+ }
43
+ return result;
44
+ case 'd':
45
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
46
+ case 'dd':
47
+ if (number === 1) {
48
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
49
+ } else if (number === 2) {
50
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
51
+ } else {
52
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
53
+ }
54
+ return result;
55
+ case 'M':
56
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
57
+ case 'MM':
58
+ if (number === 1) {
59
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
60
+ } else if (number === 2) {
61
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
62
+ } else if (number < 5) {
63
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
64
+ } else {
65
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
66
+ }
67
+ return result;
68
+ case 'y':
69
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
70
+ case 'yy':
71
+ if (number === 1) {
72
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
73
+ } else if (number === 2) {
74
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
75
+ } else if (number < 5) {
76
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
77
+ } else {
78
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
79
+ }
80
+ return result;
81
81
  }
82
82
  }
83
83
 
84
84
  var sl = moment.defineLocale('sl', {
85
85
  months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
86
86
  monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
87
+ monthsParseExact: true,
87
88
  weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
88
89
  weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
89
90
  weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
91
+ weekdaysParseExact : true,
90
92
  longDateFormat : {
91
93
  LT : 'H:mm',
92
94
  LTS : 'H:mm:ss',
93
- L : 'DD. MM. YYYY',
95
+ L : 'DD.MM.YYYY',
94
96
  LL : 'D. MMMM YYYY',
95
97
  LLL : 'D. MMMM YYYY H:mm',
96
98
  LLLL : 'dddd, D. MMMM YYYY H:mm'
@@ -101,33 +103,33 @@
101
103
 
102
104
  nextWeek : function () {
103
105
  switch (this.day()) {
104
- case 0:
105
- return '[v] [nedeljo] [ob] LT';
106
- case 3:
107
- return '[v] [sredo] [ob] LT';
108
- case 6:
109
- return '[v] [soboto] [ob] LT';
110
- case 1:
111
- case 2:
112
- case 4:
113
- case 5:
114
- return '[v] dddd [ob] LT';
106
+ case 0:
107
+ return '[v] [nedeljo] [ob] LT';
108
+ case 3:
109
+ return '[v] [sredo] [ob] LT';
110
+ case 6:
111
+ return '[v] [soboto] [ob] LT';
112
+ case 1:
113
+ case 2:
114
+ case 4:
115
+ case 5:
116
+ return '[v] dddd [ob] LT';
115
117
  }
116
118
  },
117
119
  lastDay : '[včeraj ob] LT',
118
120
  lastWeek : function () {
119
121
  switch (this.day()) {
120
- case 0:
121
- return '[prejšnjo] [nedeljo] [ob] LT';
122
- case 3:
123
- return '[prejšnjo] [sredo] [ob] LT';
124
- case 6:
125
- return '[prejšnjo] [soboto] [ob] LT';
126
- case 1:
127
- case 2:
128
- case 4:
129
- case 5:
130
- return '[prejšnji] dddd [ob] LT';
122
+ case 0:
123
+ return '[prejšnjo] [nedeljo] [ob] LT';
124
+ case 3:
125
+ return '[prejšnjo] [sredo] [ob] LT';
126
+ case 6:
127
+ return '[prejšnjo] [soboto] [ob] LT';
128
+ case 1:
129
+ case 2:
130
+ case 4:
131
+ case 5:
132
+ return '[prejšnji] dddd [ob] LT';
131
133
  }
132
134
  },
133
135
  sameElse : 'L'
@@ -1,13 +1,13 @@
1
1
  //! moment.js locale configuration
2
- //! locale : Albanian (sq)
2
+ //! locale : Albanian [sq]
3
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)
4
+ //! author : Menelion Elensúle : https://github.com/Oire
5
+ //! author : Oerd Cukalla : https://github.com/oerd
6
6
 
7
7
  ;(function (global, factory) {
8
8
  typeof exports === 'object' && typeof module !== 'undefined'
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
12
  }(this, function (moment) { 'use strict';
13
13
 
@@ -18,6 +18,7 @@
18
18
  weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
19
19
  weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
20
20
  weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
21
+ weekdaysParseExact : true,
21
22
  meridiemParse: /PD|MD/,
22
23
  isPM: function (input) {
23
24
  return input.charAt(0) === 'M';