1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
12 words
: { //Different grammatical cases
13 ss
: ['sekunda', 'sekunde', 'sekundi'],
14 m
: ['jedan minut', 'jedne minute'],
15 mm
: ['minut', 'minute', 'minuta'],
16 h
: ['jedan sat', 'jednog sata'],
17 hh
: ['sat', 'sata', 'sati'],
18 dd
: ['dan', 'dana', 'dana'],
19 MM
: ['mesec', 'meseca', 'meseci'],
20 yy
: ['godina', 'godine', 'godina']
22 correctGrammaticalCase: function (number
, wordKey
) {
23 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
25 translate: function (number
, withoutSuffix
, key
) {
26 var wordKey
= translator
.words
[key
];
27 if (key
.length
=== 1) {
28 return withoutSuffix
? wordKey
[0] : wordKey
[1];
30 return number
+ ' ' + translator
.correctGrammaticalCase(number
, wordKey
);
35 var sr
= moment
.defineLocale('sr', {
36 months
: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
37 monthsShort
: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
38 monthsParseExact
: true,
39 weekdays
: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
40 weekdaysShort
: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
41 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
42 weekdaysParseExact
: true,
48 LLL
: 'D. MMMM YYYY H:mm',
49 LLLL
: 'dddd, D. MMMM YYYY H:mm'
52 sameDay
: '[danas u] LT',
53 nextDay
: '[sutra u] LT',
54 nextWeek: function () {
57 return '[u] [nedelju] [u] LT';
59 return '[u] [sredu] [u] LT';
61 return '[u] [subotu] [u] LT';
66 return '[u] dddd [u] LT';
69 lastDay
: '[juče u] LT',
70 lastWeek : function () {
72 '[prošle] [nedelje] [u] LT',
73 '[prošlog] [ponedeljka] [u] LT',
74 '[prošlog] [utorka] [u] LT',
75 '[prošle] [srede] [u] LT',
76 '[prošlog] [četvrtka] [u] LT',
77 '[prošlog] [petka] [u] LT',
78 '[prošle] [subote] [u] LT'
80 return lastWeekDays
[this.day()];
87 s
: 'nekoliko sekundi',
88 ss
: translator
.translate
,
89 m
: translator
.translate
,
90 mm
: translator
.translate
,
91 h
: translator
.translate
,
92 hh
: translator
.translate
,
94 dd
: translator
.translate
,
96 MM
: translator
.translate
,
98 yy
: translator
.translate
100 dayOfMonthOrdinalParse
: /\d{1,2}\./,
103 dow
: 1, // Monday is the first day of the week.
104 doy
: 7 // The week that contains Jan 7th is the first week of the year.