1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/vendor/assets/components/moment/locale/sl.js

159 lines
5.9 KiB
JavaScript
Raw Normal View History

2015-05-05 03:10:25 +02:00
//! moment.js locale configuration
//! locale : slovenian (sl)
//! author : Robert Sedovšek : https://github.com/sedovsek
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
2016-03-23 18:39:41 +01:00
function processRelativeTime(number, withoutSuffix, key, isFuture) {
2015-05-05 03:10:25 +02:00
var result = number + ' ';
switch (key) {
2016-03-23 18:39:41 +01:00
case 's':
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
2015-05-05 03:10:25 +02:00
case 'm':
return withoutSuffix ? 'ena minuta' : 'eno minuto';
case 'mm':
if (number === 1) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix ? 'minuta' : 'minuto';
2015-05-05 03:10:25 +02:00
} else if (number === 2) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
} else if (number < 5) {
result += withoutSuffix || isFuture ? 'minute' : 'minutami';
2015-05-05 03:10:25 +02:00
} else {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'minut' : 'minutami';
2015-05-05 03:10:25 +02:00
}
return result;
case 'h':
return withoutSuffix ? 'ena ura' : 'eno uro';
case 'hh':
if (number === 1) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix ? 'ura' : 'uro';
2015-05-05 03:10:25 +02:00
} else if (number === 2) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'uri' : 'urama';
} else if (number < 5) {
result += withoutSuffix || isFuture ? 'ure' : 'urami';
2015-05-05 03:10:25 +02:00
} else {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'ur' : 'urami';
2015-05-05 03:10:25 +02:00
}
return result;
2016-03-23 18:39:41 +01:00
case 'd':
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
2015-05-05 03:10:25 +02:00
case 'dd':
if (number === 1) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'dan' : 'dnem';
} else if (number === 2) {
result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
2015-05-05 03:10:25 +02:00
} else {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
2015-05-05 03:10:25 +02:00
}
return result;
2016-03-23 18:39:41 +01:00
case 'M':
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
2015-05-05 03:10:25 +02:00
case 'MM':
if (number === 1) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
2015-05-05 03:10:25 +02:00
} else if (number === 2) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
} else if (number < 5) {
result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
2015-05-05 03:10:25 +02:00
} else {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
2015-05-05 03:10:25 +02:00
}
return result;
2016-03-23 18:39:41 +01:00
case 'y':
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
2015-05-05 03:10:25 +02:00
case 'yy':
if (number === 1) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'leto' : 'letom';
2015-05-05 03:10:25 +02:00
} else if (number === 2) {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'leti' : 'letoma';
} else if (number < 5) {
result += withoutSuffix || isFuture ? 'leta' : 'leti';
2015-05-05 03:10:25 +02:00
} else {
2016-03-23 18:39:41 +01:00
result += withoutSuffix || isFuture ? 'let' : 'leti';
2015-05-05 03:10:25 +02:00
}
return result;
}
}
var sl = moment.defineLocale('sl', {
months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
longDateFormat : {
LT : 'H:mm',
2016-03-23 18:39:41 +01:00
LTS : 'H:mm:ss',
2015-05-05 03:10:25 +02:00
L : 'DD. MM. YYYY',
LL : 'D. MMMM YYYY',
2016-03-23 18:39:41 +01:00
LLL : 'D. MMMM YYYY H:mm',
LLLL : 'dddd, D. MMMM YYYY H:mm'
2015-05-05 03:10:25 +02:00
},
calendar : {
sameDay : '[danes ob] LT',
nextDay : '[jutri ob] LT',
2016-03-23 18:39:41 +01:00
2015-05-05 03:10:25 +02:00
nextWeek : function () {
switch (this.day()) {
case 0:
return '[v] [nedeljo] [ob] LT';
case 3:
return '[v] [sredo] [ob] LT';
case 6:
return '[v] [soboto] [ob] LT';
case 1:
case 2:
case 4:
case 5:
return '[v] dddd [ob] LT';
}
},
lastDay : '[včeraj ob] LT',
lastWeek : function () {
switch (this.day()) {
case 0:
2016-03-23 18:39:41 +01:00
return '[prejšnjo] [nedeljo] [ob] LT';
2015-05-05 03:10:25 +02:00
case 3:
2016-03-23 18:39:41 +01:00
return '[prejšnjo] [sredo] [ob] LT';
2015-05-05 03:10:25 +02:00
case 6:
2016-03-23 18:39:41 +01:00
return '[prejšnjo] [soboto] [ob] LT';
2015-05-05 03:10:25 +02:00
case 1:
case 2:
case 4:
case 5:
return '[prejšnji] dddd [ob] LT';
}
},
sameElse : 'L'
},
relativeTime : {
future : 'čez %s',
2016-03-23 18:39:41 +01:00
past : 'pred %s',
s : processRelativeTime,
m : processRelativeTime,
mm : processRelativeTime,
h : processRelativeTime,
hh : processRelativeTime,
d : processRelativeTime,
dd : processRelativeTime,
M : processRelativeTime,
MM : processRelativeTime,
y : processRelativeTime,
yy : processRelativeTime
2015-05-05 03:10:25 +02:00
},
ordinalParse: /\d{1,2}\./,
ordinal : '%d.',
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
}
});
return sl;
}));