1 //! moment.js locale configuration
2 //! locale : Slovenian [sl]
3 //! author : Robert Sedovšek : https://github.com/sedovsek
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';
13 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
14 var result
= number
+ ' ';
17 return withoutSuffix
|| isFuture
? 'nekaj sekund' : 'nekaj sekundami';
19 return withoutSuffix
? 'ena minuta' : 'eno minuto';
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';
28 result
+= withoutSuffix
|| isFuture
? 'minut' : 'minutami';
32 return withoutSuffix
? 'ena ura' : 'eno uro';
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';
41 result
+= withoutSuffix
|| isFuture
? 'ur' : 'urami';
45 return withoutSuffix
|| isFuture
? 'en dan' : 'enim dnem';
48 result
+= withoutSuffix
|| isFuture
? 'dan' : 'dnem';
49 } else if (number
=== 2) {
50 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevoma';
52 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevi';
56 return withoutSuffix
|| isFuture
? 'en mesec' : 'enim mesecem';
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';
65 result
+= withoutSuffix
|| isFuture
? 'mesecev' : 'meseci';
69 return withoutSuffix
|| isFuture
? 'eno leto' : 'enim letom';
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';
78 result
+= withoutSuffix
|| isFuture
? 'let' : 'leti';
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,
97 LLL
: 'D. MMMM YYYY H:mm',
98 LLLL
: 'dddd, D. MMMM YYYY H:mm'
101 sameDay
: '[danes ob] LT',
102 nextDay
: '[jutri ob] LT',
104 nextWeek : function () {
105 switch (this.day()) {
107 return '[v] [nedeljo] [ob] LT';
109 return '[v] [sredo] [ob] LT';
111 return '[v] [soboto] [ob] LT';
116 return '[v] dddd [ob] LT';
119 lastDay
: '[včeraj ob] LT',
120 lastWeek : function () {
121 switch (this.day()) {
123 return '[prejšnjo] [nedeljo] [ob] LT';
125 return '[prejšnjo] [sredo] [ob] LT';
127 return '[prejšnjo] [soboto] [ob] LT';
132 return '[prejšnji] dddd [ob] LT';
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
152 ordinalParse
: /\d{1,2}\./,
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.