1 // moment.js locale configuration
2 // locale : bosnian (bs)
3 // author : Nedim Cholich : https://github.com/frontyard
4 // based on (hr) translation by Bojan Marković
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
15 function translate(number
, withoutSuffix
, key
) {
16 var result
= number
+ ' ';
19 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
23 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
30 return withoutSuffix
? 'jedan sat' : 'jednog sata';
34 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
50 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
59 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
68 return moment
.defineLocale('bs', {
69 months
: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
70 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
71 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
72 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
73 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
79 LLL
: 'D. MMMM YYYY LT',
80 LLLL
: 'dddd, D. MMMM YYYY LT'
83 sameDay
: '[danas u] LT',
84 nextDay
: '[sutra u] LT',
86 nextWeek : function () {
89 return '[u] [nedjelju] [u] LT';
91 return '[u] [srijedu] [u] LT';
93 return '[u] [subotu] [u] LT';
98 return '[u] dddd [u] LT';
101 lastDay
: '[jučer u] LT',
102 lastWeek : function () {
103 switch (this.day()) {
106 return '[prošlu] dddd [u] LT';
108 return '[prošle] [subote] [u] LT';
113 return '[prošli] dddd [u] LT';
133 ordinalParse
: /\d{1,2}\./,
136 dow
: 1, // Monday is the first day of the week.
137 doy
: 7 // The week that contains Jan 1st is the first week of the year.