1 // moment.js language configuration
2 // language : 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(window
.moment
); // Browser global
16 function translate(number
, withoutSuffix
, key
) {
17 var result
= number
+ " ";
20 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
24 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
31 return withoutSuffix
? 'jedan sat' : 'jednog sata';
35 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
51 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
60 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
69 return moment
.lang('bs', {
70 months
: "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"),
71 monthsShort
: "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),
72 weekdays
: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
73 weekdaysShort
: "ned._pon._uto._sri._čet._pet._sub.".split("_"),
74 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';
135 dow
: 1, // Monday is the first day of the week.
136 doy
: 7 // The week that contains Jan 1st is the first week of the year.