6
;(function (global, factory) {
7
typeof exports === 'object' && typeof module !== 'undefined'
8
&& typeof require === 'function' ? factory(require('../moment')) :
9
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
factory(global.moment)
11
}(this, (function (moment) { 'use strict';
18
ss: ['sekunda', 'sekunde', 'sekundi'],
19
m: ['jedan minut', 'jedne minute'],
20
mm: ['minut', 'minute', 'minuta'],
21
h: ['jedan sat', 'jednog sata'],
22
hh: ['sat', 'sata', 'sati'],
23
dd: ['dan', 'dana', 'dana'],
24
MM: ['mesec', 'meseca', 'meseci'],
25
yy: ['godina', 'godine', 'godina'],
27
correctGrammaticalCase: function (number, wordKey) {
30
: number >= 2 && number <= 4
34
translate: function (number, withoutSuffix, key) {
35
var wordKey = translator.words[key];
36
if (key.length === 1) {
37
return withoutSuffix ? wordKey[0] : wordKey[1];
42
translator.correctGrammaticalCase(number, wordKey)
48
var sr = moment.defineLocale('sr', {
49
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
52
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
55
monthsParseExact: true,
56
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
59
weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
60
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
61
weekdaysParseExact: true,
67
LLL: 'D. MMMM YYYY. H:mm',
68
LLLL: 'dddd, D. MMMM YYYY. H:mm',
71
sameDay: '[danas u] LT',
72
nextDay: '[sutra u] LT',
73
nextWeek: function () {
76
return '[u] [nedelju] [u] LT';
78
return '[u] [sredu] [u] LT';
80
return '[u] [subotu] [u] LT';
85
return '[u] dddd [u] LT';
88
lastDay: '[juče u] LT',
89
lastWeek: function () {
91
'[prošle] [nedelje] [u] LT',
92
'[prošlog] [ponedeljka] [u] LT',
93
'[prošlog] [utorka] [u] LT',
94
'[prošle] [srede] [u] LT',
95
'[prošlog] [četvrtka] [u] LT',
96
'[prošlog] [petka] [u] LT',
97
'[prošle] [subote] [u] LT',
99
return lastWeekDays[this.day()];
106
s: 'nekoliko sekundi',
107
ss: translator.translate,
108
m: translator.translate,
109
mm: translator.translate,
110
h: translator.translate,
111
hh: translator.translate,
113
dd: translator.translate,
115
MM: translator.translate,
117
yy: translator.translate,
119
dayOfMonthOrdinalParse: /\d{1,2}\./,