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 if (typeof define === 'function' && define.amd) {
9 define(['moment'], factory); // AMD
10 } else if (typeof exports === 'object') {
11 module.exports = factory(require('../moment')); // Node
13 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 function translate(number, withoutSuffix, key) {
17 var result = number + ' ';
20 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
24 } else if (number === 2 || number === 3 || number === 4) {
31 return withoutSuffix ? 'jedan sat' : 'jednog sata';
35 } else if (number === 2 || number === 3 || number === 4) {
51 } else if (number === 2 || number === 3 || number === 4) {
60 } else if (number === 2 || number === 3 || number === 4) {
69 return moment.defineLocale('hr', {
70 months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
71 monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
72 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
73 weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
74 weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
80 LLL : 'D. MMMM YYYY LT',
81 LLLL : 'dddd, D. MMMM YYYY LT'
84 sameDay : '[danas u] LT',
85 nextDay : '[sutra u] LT',
87 nextWeek : function () {
90 return '[u] [nedjelju] [u] LT';
92 return '[u] [srijedu] [u] LT';
94 return '[u] [subotu] [u] LT';
99 return '[u] dddd [u] LT';
102 lastDay : '[jučer u] LT',
103 lastWeek : function () {
104 switch (this.day()) {
107 return '[prošlu] dddd [u] LT';
109 return '[prošle] [subote] [u] LT';
114 return '[prošli] dddd [u] LT';
134 ordinalParse: /\d{1,2}\./,
137 dow : 1, // Monday is the first day of the week.
138 doy : 7 // The week that contains Jan 1st is the first week of the year.