1 // moment.js locale configuration
2 // locale : slovenian (sl)
3 // author : Robert Sedovšek : https://github.com/sedovsek
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 function translate(number, withoutSuffix, key) {
17 var result = number + ' ';
20 return withoutSuffix ? 'ena minuta' : 'eno minuto';
24 } else if (number === 2) {
26 } else if (number === 3 || number === 4) {
33 return withoutSuffix ? 'ena ura' : 'eno uro';
37 } else if (number === 2) {
39 } else if (number === 3 || number === 4) {
55 } else if (number === 2) {
57 } else if (number === 3 || number === 4) {
66 } else if (number === 2) {
68 } else if (number === 3 || number === 4) {
77 return moment.defineLocale('sl', {
78 months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
79 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
80 weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
81 weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
82 weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
88 LLL : 'D. MMMM YYYY LT',
89 LLLL : 'dddd, D. MMMM YYYY LT'
92 sameDay : '[danes ob] LT',
93 nextDay : '[jutri ob] LT',
95 nextWeek : function () {
98 return '[v] [nedeljo] [ob] LT';
100 return '[v] [sredo] [ob] LT';
102 return '[v] [soboto] [ob] LT';
107 return '[v] dddd [ob] LT';
110 lastDay : '[včeraj ob] LT',
111 lastWeek : function () {
112 switch (this.day()) {
116 return '[prejšnja] dddd [ob] LT';
121 return '[prejšnji] dddd [ob] LT';
141 ordinalParse: /\d{1,2}\./,
144 dow : 1, // Monday is the first day of the week.
145 doy : 7 // The week that contains Jan 1st is the first week of the year.