1 // moment.js locale configuration
2 // locale : hrvatski (hr)
3 // author : Bojan Marković : https://github.com/bmarkovic
5 // based on (sl) translation by Robert Sedovšek
8 // Comment out broken wrapper, see T145382
9 /*if (typeof define === 'function' && define.amd) {
10 define(['moment'], factory); // AMD
11 } else if (typeof exports === 'object') {
12 module.exports = factory(require('../moment')); // Node
14 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
18 function translate(number, withoutSuffix, key) {
19 var result = number + ' ';
22 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
26 } else if (number === 2 || number === 3 || number === 4) {
33 return withoutSuffix ? 'jedan sat' : 'jednog sata';
37 } else if (number === 2 || number === 3 || number === 4) {
53 } else if (number === 2 || number === 3 || number === 4) {
62 } else if (number === 2 || number === 3 || number === 4) {
71 return moment.defineLocale('hr', {
72 months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
73 monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
74 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
75 weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
76 weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
82 LLL : 'D. MMMM YYYY LT',
83 LLLL : 'dddd, D. MMMM YYYY LT'
86 sameDay : '[danas u] LT',
87 nextDay : '[sutra u] LT',
89 nextWeek : function () {
92 return '[u] [nedjelju] [u] LT';
94 return '[u] [srijedu] [u] LT';
96 return '[u] [subotu] [u] LT';
101 return '[u] dddd [u] LT';
104 lastDay : '[jučer u] LT',
105 lastWeek : function () {
106 switch (this.day()) {
109 return '[prošlu] dddd [u] LT';
111 return '[prošle] [subote] [u] LT';
116 return '[prošli] dddd [u] LT';
136 ordinalParse: /\d{1,2}\./,
139 dow : 1, // Monday is the first day of the week.
140 doy : 7 // The week that contains Jan 1st is the first week of the year.