2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Bosnian [bs]
|
|
|
|
//! author : Nedim Cholich : https://github.com/frontyard
|
|
|
|
//! based on (hr) translation by Bojan Marković
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
//! moment.js locale configuration
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
function translate(number, withoutSuffix, key) {
|
|
|
|
var result = number + ' ';
|
|
|
|
switch (key) {
|
|
|
|
case 'ss':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'sekunda';
|
|
|
|
} else if (number === 2 || number === 3 || number === 4) {
|
|
|
|
result += 'sekunde';
|
|
|
|
} else {
|
|
|
|
result += 'sekundi';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
case 'm':
|
|
|
|
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
|
|
|
case 'mm':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'minuta';
|
|
|
|
} else if (number === 2 || number === 3 || number === 4) {
|
|
|
|
result += 'minute';
|
|
|
|
} else {
|
|
|
|
result += 'minuta';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
case 'h':
|
|
|
|
return withoutSuffix ? 'jedan sat' : 'jednog sata';
|
|
|
|
case 'hh':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'sat';
|
|
|
|
} else if (number === 2 || number === 3 || number === 4) {
|
|
|
|
result += 'sata';
|
|
|
|
} else {
|
|
|
|
result += 'sati';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
case 'dd':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'dan';
|
|
|
|
} else {
|
|
|
|
result += 'dana';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
case 'MM':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'mjesec';
|
|
|
|
} else if (number === 2 || number === 3 || number === 4) {
|
|
|
|
result += 'mjeseca';
|
|
|
|
} else {
|
|
|
|
result += 'mjeseci';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
case 'yy':
|
|
|
|
if (number === 1) {
|
|
|
|
result += 'godina';
|
|
|
|
} else if (number === 2 || number === 3 || number === 4) {
|
|
|
|
result += 'godine';
|
|
|
|
} else {
|
|
|
|
result += 'godina';
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
2014-08-20 14:41:50 -04:00
|
|
|
}
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var bs = moment.defineLocale('bs', {
|
2020-11-10 20:34:26 -05:00
|
|
|
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2018-04-26 03:15:53 -04:00
|
|
|
monthsParseExact: true,
|
2020-11-10 20:34:26 -05:00
|
|
|
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
|
|
|
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'H:mm',
|
|
|
|
LTS: 'H:mm:ss',
|
|
|
|
L: 'DD.MM.YYYY',
|
|
|
|
LL: 'D. MMMM YYYY',
|
|
|
|
LLL: 'D. MMMM YYYY H:mm',
|
|
|
|
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
2017-04-20 00:24:20 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[danas u] LT',
|
|
|
|
nextDay: '[sutra u] LT',
|
|
|
|
nextWeek: function () {
|
2018-04-26 03:15:53 -04:00
|
|
|
switch (this.day()) {
|
|
|
|
case 0:
|
|
|
|
return '[u] [nedjelju] [u] LT';
|
|
|
|
case 3:
|
|
|
|
return '[u] [srijedu] [u] LT';
|
|
|
|
case 6:
|
|
|
|
return '[u] [subotu] [u] LT';
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
return '[u] dddd [u] LT';
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
lastDay: '[jučer u] LT',
|
|
|
|
lastWeek: function () {
|
2018-04-26 03:15:53 -04:00
|
|
|
switch (this.day()) {
|
|
|
|
case 0:
|
|
|
|
case 3:
|
|
|
|
return '[prošlu] dddd [u] LT';
|
|
|
|
case 6:
|
|
|
|
return '[prošle] [subote] [u] LT';
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
return '[prošli] dddd [u] LT';
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
sameElse: 'L',
|
2014-08-20 14:41:50 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: 'za %s',
|
|
|
|
past: 'prije %s',
|
|
|
|
s: 'par sekundi',
|
|
|
|
ss: translate,
|
|
|
|
m: translate,
|
|
|
|
mm: translate,
|
|
|
|
h: translate,
|
|
|
|
hh: translate,
|
|
|
|
d: 'dan',
|
|
|
|
dd: translate,
|
|
|
|
M: 'mjesec',
|
|
|
|
MM: translate,
|
|
|
|
y: 'godinu',
|
|
|
|
yy: translate,
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
2020-11-10 20:34:26 -05:00
|
|
|
ordinal: '%d.',
|
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
return bs;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|