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';
13 function translate(number, withoutSuffix, key) {
14 var result = number + ' ';
17 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
21 } else if (number === 2 || number === 3 || number === 4) {
28 return withoutSuffix ? 'jedan sat' : 'jednog sata';
32 } else if (number === 2 || number === 3 || number === 4) {
48 } else if (number === 2 || number === 3 || number === 4) {
57 } else if (number === 2 || number === 3 || number === 4) {
66 var hr = moment.defineLocale('hr', {
68 format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
69 standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
71 monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
72 monthsParseExact: true,
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('_'),
76 weekdaysParseExact : true,
82 LLL : 'D. MMMM YYYY H:mm',
83 LLLL : 'dddd, D. MMMM YYYY H:mm'
86 sameDay : '[danas u] LT',
87 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 dayOfMonthOrdinalParse: /\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.