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 // Comment out broken wrapper, see T145382
8 /*if (typeof define === 'function' && define.amd) {
9 define(['moment'], factory); // AMD
10 } else if (typeof exports === 'object') {
11 module.exports = factory(require('../moment')); // Node
13 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
17 function translate(number, withoutSuffix, key) {
18 var result = number + ' ';
21 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
25 } else if (number === 2 || number === 3 || number === 4) {
32 return withoutSuffix ? 'jedan sat' : 'jednog sata';
36 } else if (number === 2 || number === 3 || number === 4) {
52 } else if (number === 2 || number === 3 || number === 4) {
61 } else if (number === 2 || number === 3 || number === 4) {
70 return moment.defineLocale('bs', {
71 months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
72 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
73 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
74 weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
75 weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
81 LLL : 'D. MMMM YYYY LT',
82 LLLL : 'dddd, D. MMMM YYYY LT'
85 sameDay : '[danas u] LT',
86 nextDay : '[sutra u] LT',
88 nextWeek : function () {
91 return '[u] [nedjelju] [u] LT';
93 return '[u] [srijedu] [u] LT';
95 return '[u] [subotu] [u] LT';
100 return '[u] dddd [u] LT';
103 lastDay : '[jučer u] LT',
104 lastWeek : function () {
105 switch (this.day()) {
108 return '[prošlu] dddd [u] LT';
110 return '[prošle] [subote] [u] LT';
115 return '[prošli] dddd [u] LT';
135 ordinalParse: /\d{1,2}\./,
138 dow : 1, // Monday is the first day of the week.
139 doy : 7 // The week that contains Jan 1st is the first week of the year.