GPQAPP
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ć
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15function translate(number, withoutSuffix, key) {16var result = number + ' ';17switch (key) {18case 'ss':19if (number === 1) {20result += 'sekunda';21} else if (number === 2 || number === 3 || number === 4) {22result += 'sekunde';23} else {24result += 'sekundi';25}26return result;27case 'm':28return withoutSuffix ? 'jedna minuta' : 'jedne minute';29case 'mm':30if (number === 1) {31result += 'minuta';32} else if (number === 2 || number === 3 || number === 4) {33result += 'minute';34} else {35result += 'minuta';36}37return result;38case 'h':39return withoutSuffix ? 'jedan sat' : 'jednog sata';40case 'hh':41if (number === 1) {42result += 'sat';43} else if (number === 2 || number === 3 || number === 4) {44result += 'sata';45} else {46result += 'sati';47}48return result;49case 'dd':50if (number === 1) {51result += 'dan';52} else {53result += 'dana';54}55return result;56case 'MM':57if (number === 1) {58result += 'mjesec';59} else if (number === 2 || number === 3 || number === 4) {60result += 'mjeseca';61} else {62result += 'mjeseci';63}64return result;65case 'yy':66if (number === 1) {67result += 'godina';68} else if (number === 2 || number === 3 || number === 4) {69result += 'godine';70} else {71result += 'godina';72}73return result;74}75}76
77var bs = moment.defineLocale('bs', {78months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(79'_'80),81monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(82'_'83),84monthsParseExact: true,85weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(86'_'87),88weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),89weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),90weekdaysParseExact: true,91longDateFormat: {92LT: 'H:mm',93LTS: 'H:mm:ss',94L: 'DD.MM.YYYY',95LL: 'D. MMMM YYYY',96LLL: 'D. MMMM YYYY H:mm',97LLLL: 'dddd, D. MMMM YYYY H:mm',98},99calendar: {100sameDay: '[danas u] LT',101nextDay: '[sutra u] LT',102nextWeek: function () {103switch (this.day()) {104case 0:105return '[u] [nedjelju] [u] LT';106case 3:107return '[u] [srijedu] [u] LT';108case 6:109return '[u] [subotu] [u] LT';110case 1:111case 2:112case 4:113case 5:114return '[u] dddd [u] LT';115}116},117lastDay: '[jučer u] LT',118lastWeek: function () {119switch (this.day()) {120case 0:121case 3:122return '[prošlu] dddd [u] LT';123case 6:124return '[prošle] [subote] [u] LT';125case 1:126case 2:127case 4:128case 5:129return '[prošli] dddd [u] LT';130}131},132sameElse: 'L',133},134relativeTime: {135future: 'za %s',136past: 'prije %s',137s: 'par sekundi',138ss: translate,139m: translate,140mm: translate,141h: translate,142hh: translate,143d: 'dan',144dd: translate,145M: 'mjesec',146MM: translate,147y: 'godinu',148yy: translate,149},150dayOfMonthOrdinalParse: /\d{1,2}\./,151ordinal: '%d.',152week: {153dow: 1, // Monday is the first day of the week.154doy: 7, // The week that contains Jan 7th is the first week of the year.155},156});157
158return bs;159
160})));161