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