1 //! moment.js locale configuration
2 //! locale : Croatian [hr]
3 //! author : Bojan Marković : https://github.com/bmarkovic
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
12 //! moment.js locale configuration
14 function translate(number, withoutSuffix, key) {
15 var result = number + ' ';
20 } else if (number === 2 || number === 3 || number === 4) {
27 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
31 } else if (number === 2 || number === 3 || number === 4) {
38 return withoutSuffix ? 'jedan sat' : 'jednog sata';
42 } else if (number === 2 || number === 3 || number === 4) {
58 } else if (number === 2 || number === 3 || number === 4) {
67 } else if (number === 2 || number === 3 || number === 4) {
76 var hr = moment.defineLocale('hr', {
78 format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
81 standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
85 monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
88 monthsParseExact: true,
89 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
92 weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
93 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
94 weekdaysParseExact: true,
100 LLL: 'Do MMMM YYYY H:mm',
101 LLLL: 'dddd, Do MMMM YYYY H:mm',
104 sameDay: '[danas u] LT',
105 nextDay: '[sutra u] LT',
106 nextWeek: function () {
107 switch (this.day()) {
109 return '[u] [nedjelju] [u] LT';
111 return '[u] [srijedu] [u] LT';
113 return '[u] [subotu] [u] LT';
118 return '[u] dddd [u] LT';
121 lastDay: '[jučer u] LT',
122 lastWeek: function () {
123 switch (this.day()) {
125 return '[prošlu] [nedjelju] [u] LT';
127 return '[prošlu] [srijedu] [u] LT';
129 return '[prošle] [subote] [u] LT';
134 return '[prošli] dddd [u] LT';
155 dayOfMonthOrdinalParse: /\d{1,2}\./,
158 dow: 1, // Monday is the first day of the week.
159 doy: 7, // The week that contains Jan 7th is the first week of the year.