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) :
10
}(this, (function (moment) { 'use strict';
14
function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
var result = number + ' ';
18
return withoutSuffix || isFuture
23
result += withoutSuffix ? 'sekundo' : 'sekundi';
24
} else if (number === 2) {
25
result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
26
} else if (number < 5) {
27
result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
33
return withoutSuffix ? 'ena minuta' : 'eno minuto';
36
result += withoutSuffix ? 'minuta' : 'minuto';
37
} else if (number === 2) {
38
result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
39
} else if (number < 5) {
40
result += withoutSuffix || isFuture ? 'minute' : 'minutami';
42
result += withoutSuffix || isFuture ? 'minut' : 'minutami';
46
return withoutSuffix ? 'ena ura' : 'eno uro';
49
result += withoutSuffix ? 'ura' : 'uro';
50
} else if (number === 2) {
51
result += withoutSuffix || isFuture ? 'uri' : 'urama';
52
} else if (number < 5) {
53
result += withoutSuffix || isFuture ? 'ure' : 'urami';
55
result += withoutSuffix || isFuture ? 'ur' : 'urami';
59
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
62
result += withoutSuffix || isFuture ? 'dan' : 'dnem';
63
} else if (number === 2) {
64
result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
66
result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
70
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
73
result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
74
} else if (number === 2) {
75
result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
76
} else if (number < 5) {
77
result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
79
result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
83
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
86
result += withoutSuffix || isFuture ? 'leto' : 'letom';
87
} else if (number === 2) {
88
result += withoutSuffix || isFuture ? 'leti' : 'letoma';
89
} else if (number < 5) {
90
result += withoutSuffix || isFuture ? 'leta' : 'leti';
92
result += withoutSuffix || isFuture ? 'let' : 'leti';
98
var sl = moment.defineLocale('sl', {
99
months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
102
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
105
monthsParseExact: true,
106
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
107
weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
108
weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
109
weekdaysParseExact: true,
115
LLL: 'D. MMMM YYYY H:mm',
116
LLLL: 'dddd, D. MMMM YYYY H:mm',
119
sameDay: '[danes ob] LT',
120
nextDay: '[jutri ob] LT',
122
nextWeek: function () {
123
switch (this.day()) {
125
return '[v] [nedeljo] [ob] LT';
127
return '[v] [sredo] [ob] LT';
129
return '[v] [soboto] [ob] LT';
134
return '[v] dddd [ob] LT';
137
lastDay: '[včeraj ob] LT',
138
lastWeek: function () {
139
switch (this.day()) {
141
return '[prejšnjo] [nedeljo] [ob] LT';
143
return '[prejšnjo] [sredo] [ob] LT';
145
return '[prejšnjo] [soboto] [ob] LT';
150
return '[prejšnji] dddd [ob] LT';
158
s: processRelativeTime,
159
ss: processRelativeTime,
160
m: processRelativeTime,
161
mm: processRelativeTime,
162
h: processRelativeTime,
163
hh: processRelativeTime,
164
d: processRelativeTime,
165
dd: processRelativeTime,
166
M: processRelativeTime,
167
MM: processRelativeTime,
168
y: processRelativeTime,
169
yy: processRelativeTime,
171
dayOfMonthOrdinalParse: /\d{1,2}\./,