momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -7,156 +7,156 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
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 '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
- }
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 '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;
82
81
  }
82
+ }
83
83
 
84
- var sl = moment.defineLocale('sl', {
85
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
86
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
87
- monthsParseExact: true,
88
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
89
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
90
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
91
- weekdaysParseExact : true,
92
- longDateFormat : {
93
- LT : 'H:mm',
94
- LTS : 'H:mm:ss',
95
- L : 'DD.MM.YYYY',
96
- LL : 'D. MMMM YYYY',
97
- LLL : 'D. MMMM YYYY H:mm',
98
- LLLL : 'dddd, D. MMMM YYYY H:mm'
99
- },
100
- calendar : {
101
- sameDay : '[danes ob] LT',
102
- nextDay : '[jutri ob] LT',
84
+ var sl = moment.defineLocale('sl', {
85
+ months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
86
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
87
+ monthsParseExact: true,
88
+ weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
89
+ weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
90
+ weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
91
+ weekdaysParseExact : true,
92
+ longDateFormat : {
93
+ LT : 'H:mm',
94
+ LTS : 'H:mm:ss',
95
+ L : 'DD.MM.YYYY',
96
+ LL : 'D. MMMM YYYY',
97
+ LLL : 'D. MMMM YYYY H:mm',
98
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
99
+ },
100
+ calendar : {
101
+ sameDay : '[danes ob] LT',
102
+ nextDay : '[jutri ob] LT',
103
103
 
104
- nextWeek : function () {
105
- switch (this.day()) {
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';
117
- }
118
- },
119
- lastDay : '[včeraj ob] LT',
120
- lastWeek : function () {
121
- switch (this.day()) {
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';
133
- }
134
- },
135
- sameElse : 'L'
104
+ nextWeek : function () {
105
+ switch (this.day()) {
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';
117
+ }
136
118
  },
137
- relativeTime : {
138
- future : 'čez %s',
139
- past : 'pred %s',
140
- s : processRelativeTime,
141
- m : processRelativeTime,
142
- mm : processRelativeTime,
143
- h : processRelativeTime,
144
- hh : processRelativeTime,
145
- d : processRelativeTime,
146
- dd : processRelativeTime,
147
- M : processRelativeTime,
148
- MM : processRelativeTime,
149
- y : processRelativeTime,
150
- yy : processRelativeTime
119
+ lastDay : '[včeraj ob] LT',
120
+ lastWeek : function () {
121
+ switch (this.day()) {
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';
133
+ }
151
134
  },
152
- ordinalParse: /\d{1,2}\./,
153
- ordinal : '%d.',
154
- week : {
155
- dow : 1, // Monday is the first day of the week.
156
- doy : 7 // The week that contains Jan 1st is the first week of the year.
157
- }
158
- });
135
+ sameElse : 'L'
136
+ },
137
+ relativeTime : {
138
+ future : 'čez %s',
139
+ past : 'pred %s',
140
+ s : processRelativeTime,
141
+ m : processRelativeTime,
142
+ mm : processRelativeTime,
143
+ h : processRelativeTime,
144
+ hh : processRelativeTime,
145
+ d : processRelativeTime,
146
+ dd : processRelativeTime,
147
+ M : processRelativeTime,
148
+ MM : processRelativeTime,
149
+ y : processRelativeTime,
150
+ yy : processRelativeTime
151
+ },
152
+ ordinalParse: /\d{1,2}\./,
153
+ ordinal : '%d.',
154
+ week : {
155
+ dow : 1, // Monday is the first day of the week.
156
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
157
+ }
158
+ });
159
159
 
160
- return sl;
160
+ return sl;
161
161
 
162
- }));
162
+ })));
@@ -9,62 +9,62 @@
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
10
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
- }(this, function (moment) { 'use strict';
12
+ }(this, (function (moment) { 'use strict';
13
13
 
14
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
- 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
- });
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
+ 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
- return sq;
68
+ return sq;
69
69
 
70
- }));
70
+ })));
@@ -7,104 +7,104 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var translator = {
14
- words: { //Different grammatical cases
15
- m: ['један минут', 'једне минуте'],
16
- mm: ['минут', 'минуте', 'минута'],
17
- h: ['један сат', 'једног сата'],
18
- hh: ['сат', 'сата', 'сати'],
19
- dd: ['дан', 'дана', 'дана'],
20
- MM: ['месец', 'месеца', 'месеци'],
21
- yy: ['година', 'године', 'година']
22
- },
23
- correctGrammaticalCase: function (number, wordKey) {
24
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
25
- },
26
- translate: function (number, withoutSuffix, key) {
27
- var wordKey = translator.words[key];
28
- if (key.length === 1) {
29
- return withoutSuffix ? wordKey[0] : wordKey[1];
30
- } else {
31
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
32
- }
13
+ var translator = {
14
+ words: { //Different grammatical cases
15
+ m: ['један минут', 'једне минуте'],
16
+ mm: ['минут', 'минуте', 'минута'],
17
+ h: ['један сат', 'једног сата'],
18
+ hh: ['сат', 'сата', 'сати'],
19
+ dd: ['дан', 'дана', 'дана'],
20
+ MM: ['месец', 'месеца', 'месеци'],
21
+ yy: ['година', 'године', 'година']
22
+ },
23
+ correctGrammaticalCase: function (number, wordKey) {
24
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
25
+ },
26
+ translate: function (number, withoutSuffix, key) {
27
+ var wordKey = translator.words[key];
28
+ if (key.length === 1) {
29
+ return withoutSuffix ? wordKey[0] : wordKey[1];
30
+ } else {
31
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
33
32
  }
34
- };
33
+ }
34
+ };
35
35
 
36
- var sr_cyrl = moment.defineLocale('sr-cyrl', {
37
- months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
38
- monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
39
- monthsParseExact: true,
40
- weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
41
- weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
42
- weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
43
- weekdaysParseExact : true,
44
- longDateFormat: {
45
- LT: 'H:mm',
46
- LTS : 'H:mm:ss',
47
- L: 'DD.MM.YYYY',
48
- LL: 'D. MMMM YYYY',
49
- LLL: 'D. MMMM YYYY H:mm',
50
- LLLL: 'dddd, D. MMMM YYYY H:mm'
51
- },
52
- calendar: {
53
- sameDay: '[данас у] LT',
54
- nextDay: '[сутра у] LT',
55
- nextWeek: function () {
56
- switch (this.day()) {
57
- case 0:
58
- return '[у] [недељу] [у] LT';
59
- case 3:
60
- return '[у] [среду] [у] LT';
61
- case 6:
62
- return '[у] [суботу] [у] LT';
63
- case 1:
64
- case 2:
65
- case 4:
66
- case 5:
67
- return '[у] dddd [у] LT';
68
- }
69
- },
70
- lastDay : '[јуче у] LT',
71
- lastWeek : function () {
72
- var lastWeekDays = [
73
- '[прошле] [недеље] [у] LT',
74
- '[прошлог] [понедељка] [у] LT',
75
- '[прошлог] [уторка] [у] LT',
76
- '[прошле] [среде] [у] LT',
77
- '[прошлог] [четвртка] [у] LT',
78
- '[прошлог] [петка] [у] LT',
79
- '[прошле] [суботе] [у] LT'
80
- ];
81
- return lastWeekDays[this.day()];
82
- },
83
- sameElse : 'L'
36
+ var srCyrl = moment.defineLocale('sr-cyrl', {
37
+ months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
38
+ monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
39
+ monthsParseExact: true,
40
+ weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
41
+ weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
42
+ weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
43
+ weekdaysParseExact : true,
44
+ longDateFormat: {
45
+ LT: 'H:mm',
46
+ LTS : 'H:mm:ss',
47
+ L: 'DD.MM.YYYY',
48
+ LL: 'D. MMMM YYYY',
49
+ LLL: 'D. MMMM YYYY H:mm',
50
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
51
+ },
52
+ calendar: {
53
+ sameDay: '[данас у] LT',
54
+ nextDay: '[сутра у] LT',
55
+ nextWeek: function () {
56
+ switch (this.day()) {
57
+ case 0:
58
+ return '[у] [недељу] [у] LT';
59
+ case 3:
60
+ return '[у] [среду] [у] LT';
61
+ case 6:
62
+ return '[у] [суботу] [у] LT';
63
+ case 1:
64
+ case 2:
65
+ case 4:
66
+ case 5:
67
+ return '[у] dddd [у] LT';
68
+ }
84
69
  },
85
- relativeTime : {
86
- future : 'за %s',
87
- past : 'пре %s',
88
- s : 'неколико секунди',
89
- m : translator.translate,
90
- mm : translator.translate,
91
- h : translator.translate,
92
- hh : translator.translate,
93
- d : 'дан',
94
- dd : translator.translate,
95
- M : 'месец',
96
- MM : translator.translate,
97
- y : 'годину',
98
- yy : translator.translate
70
+ lastDay : '[јуче у] LT',
71
+ lastWeek : function () {
72
+ var lastWeekDays = [
73
+ '[прошле] [недеље] [у] LT',
74
+ '[прошлог] [понедељка] [у] LT',
75
+ '[прошлог] [уторка] [у] LT',
76
+ '[прошле] [среде] [у] LT',
77
+ '[прошлог] [четвртка] [у] LT',
78
+ '[прошлог] [петка] [у] LT',
79
+ '[прошле] [суботе] [у] LT'
80
+ ];
81
+ return lastWeekDays[this.day()];
99
82
  },
100
- ordinalParse: /\d{1,2}\./,
101
- ordinal : '%d.',
102
- week : {
103
- dow : 1, // Monday is the first day of the week.
104
- doy : 7 // The week that contains Jan 1st is the first week of the year.
105
- }
106
- });
83
+ sameElse : 'L'
84
+ },
85
+ relativeTime : {
86
+ future : 'за %s',
87
+ past : 'пре %s',
88
+ s : 'неколико секунди',
89
+ m : translator.translate,
90
+ mm : translator.translate,
91
+ h : translator.translate,
92
+ hh : translator.translate,
93
+ d : 'дан',
94
+ dd : translator.translate,
95
+ M : 'месец',
96
+ MM : translator.translate,
97
+ y : 'годину',
98
+ yy : translator.translate
99
+ },
100
+ ordinalParse: /\d{1,2}\./,
101
+ ordinal : '%d.',
102
+ week : {
103
+ dow : 1, // Monday is the first day of the week.
104
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
105
+ }
106
+ });
107
107
 
108
- return sr_cyrl;
108
+ return srCyrl;
109
109
 
110
- }));
110
+ })));