1 // moment.js locale configuration
2 // locale : slovenian (sl)
3 // author : Robert Sedovšek : https://github.com/sedovsek
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
11 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14 function translate(number, withoutSuffix, key) {
15 var result = number + ' ';
18 return withoutSuffix ? 'ena minuta' : 'eno minuto';
22 } else if (number === 2) {
24 } else if (number === 3 || number === 4) {
31 return withoutSuffix ? 'ena ura' : 'eno uro';
35 } else if (number === 2) {
37 } else if (number === 3 || number === 4) {
53 } else if (number === 2) {
55 } else if (number === 3 || number === 4) {
64 } else if (number === 2) {
66 } else if (number === 3 || number === 4) {
75 return moment.defineLocale('sl', {
76 months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
77 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
78 weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
79 weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
80 weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
86 LLL : 'D. MMMM YYYY LT',
87 LLLL : 'dddd, D. MMMM YYYY LT'
90 sameDay : '[danes ob] LT',
91 nextDay : '[jutri ob] LT',
93 nextWeek : function () {
96 return '[v] [nedeljo] [ob] LT';
98 return '[v] [sredo] [ob] LT';
100 return '[v] [soboto] [ob] LT';
105 return '[v] dddd [ob] LT';
108 lastDay : '[včeraj ob] LT',
109 lastWeek : function () {
110 switch (this.day()) {
114 return '[prejšnja] dddd [ob] LT';
119 return '[prejšnji] dddd [ob] LT';
139 ordinalParse: /\d{1,2}\./,
142 dow : 1, // Monday is the first day of the week.
143 doy : 7 // The week that contains Jan 1st is the first week of the year.