1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
11 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
12 var result
= number
+ ' ';
15 return withoutSuffix
|| isFuture
? 'nekaj sekund' : 'nekaj sekundami';
18 result
+= withoutSuffix
? 'sekundo' : 'sekundi';
19 } else if (number
=== 2) {
20 result
+= withoutSuffix
|| isFuture
? 'sekundi' : 'sekundah';
21 } else if (number
< 5) {
22 result
+= withoutSuffix
|| isFuture
? 'sekunde' : 'sekundah';
28 return withoutSuffix
? 'ena minuta' : 'eno minuto';
31 result
+= withoutSuffix
? 'minuta' : 'minuto';
32 } else if (number
=== 2) {
33 result
+= withoutSuffix
|| isFuture
? 'minuti' : 'minutama';
34 } else if (number
< 5) {
35 result
+= withoutSuffix
|| isFuture
? 'minute' : 'minutami';
37 result
+= withoutSuffix
|| isFuture
? 'minut' : 'minutami';
41 return withoutSuffix
? 'ena ura' : 'eno uro';
44 result
+= withoutSuffix
? 'ura' : 'uro';
45 } else if (number
=== 2) {
46 result
+= withoutSuffix
|| isFuture
? 'uri' : 'urama';
47 } else if (number
< 5) {
48 result
+= withoutSuffix
|| isFuture
? 'ure' : 'urami';
50 result
+= withoutSuffix
|| isFuture
? 'ur' : 'urami';
54 return withoutSuffix
|| isFuture
? 'en dan' : 'enim dnem';
57 result
+= withoutSuffix
|| isFuture
? 'dan' : 'dnem';
58 } else if (number
=== 2) {
59 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevoma';
61 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevi';
65 return withoutSuffix
|| isFuture
? 'en mesec' : 'enim mesecem';
68 result
+= withoutSuffix
|| isFuture
? 'mesec' : 'mesecem';
69 } else if (number
=== 2) {
70 result
+= withoutSuffix
|| isFuture
? 'meseca' : 'mesecema';
71 } else if (number
< 5) {
72 result
+= withoutSuffix
|| isFuture
? 'mesece' : 'meseci';
74 result
+= withoutSuffix
|| isFuture
? 'mesecev' : 'meseci';
78 return withoutSuffix
|| isFuture
? 'eno leto' : 'enim letom';
81 result
+= withoutSuffix
|| isFuture
? 'leto' : 'letom';
82 } else if (number
=== 2) {
83 result
+= withoutSuffix
|| isFuture
? 'leti' : 'letoma';
84 } else if (number
< 5) {
85 result
+= withoutSuffix
|| isFuture
? 'leta' : 'leti';
87 result
+= withoutSuffix
|| isFuture
? 'let' : 'leti';
93 var sl
= moment
.defineLocale('sl', {
94 months
: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
95 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
96 monthsParseExact
: true,
97 weekdays
: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
98 weekdaysShort
: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
99 weekdaysMin
: 'ne_po_to_sr_če_pe_so'.split('_'),
100 weekdaysParseExact
: true,
106 LLL
: 'D. MMMM YYYY H:mm',
107 LLLL
: 'dddd, D. MMMM YYYY H:mm'
110 sameDay
: '[danes ob] LT',
111 nextDay
: '[jutri ob] LT',
113 nextWeek : function () {
114 switch (this.day()) {
116 return '[v] [nedeljo] [ob] LT';
118 return '[v] [sredo] [ob] LT';
120 return '[v] [soboto] [ob] LT';
125 return '[v] dddd [ob] LT';
128 lastDay
: '[včeraj ob] LT',
129 lastWeek : function () {
130 switch (this.day()) {
132 return '[prejšnjo] [nedeljo] [ob] LT';
134 return '[prejšnjo] [sredo] [ob] LT';
136 return '[prejšnjo] [soboto] [ob] LT';
141 return '[prejšnji] dddd [ob] LT';
149 s
: processRelativeTime
,
150 ss
: processRelativeTime
,
151 m
: processRelativeTime
,
152 mm
: processRelativeTime
,
153 h
: processRelativeTime
,
154 hh
: processRelativeTime
,
155 d
: processRelativeTime
,
156 dd
: processRelativeTime
,
157 M
: processRelativeTime
,
158 MM
: processRelativeTime
,
159 y
: processRelativeTime
,
160 yy
: processRelativeTime
162 dayOfMonthOrdinalParse
: /\d{1,2}\./,
165 dow
: 1, // Monday is the first day of the week.
166 doy
: 7 // The week that contains Jan 7th is the first week of the year.