1 // moment.js language configuration
2 // language : 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(window
.moment
); // Browser 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
.lang('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("_"),
85 LLL
: "D. MMMM YYYY LT",
86 LLLL
: "dddd, D. MMMM YYYY LT"
89 sameDay
: '[danes ob] LT',
90 nextDay
: '[jutri ob] LT',
92 nextWeek : function () {
95 return '[v] [nedeljo] [ob] LT';
97 return '[v] [sredo] [ob] LT';
99 return '[v] [soboto] [ob] LT';
104 return '[v] dddd [ob] LT';
107 lastDay
: '[včeraj ob] LT',
108 lastWeek : function () {
109 switch (this.day()) {
113 return '[prejšnja] dddd [ob] LT';
118 return '[prejšnji] dddd [ob] LT';
140 dow
: 1, // Monday is the first day of the week.
141 doy
: 7 // The week that contains Jan 1st is the first week of the year.