1 // moment.js language configuration
2 // language : 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(window.moment); // Browser global
17 function translate(number, withoutSuffix, key) {
18 var result = number + " ";
21 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
25 } else if (number === 2 || number === 3 || number === 4) {
32 return withoutSuffix ? 'jedan sat' : 'jednog sata';
36 } else if (number === 2 || number === 3 || number === 4) {
52 } else if (number === 2 || number === 3 || number === 4) {
61 } else if (number === 2 || number === 3 || number === 4) {
70 return moment.lang('hr', {
71 months : "sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),
72 monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),
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("_"),
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';
136 dow : 1, // Monday is the first day of the week.
137 doy : 7 // The week that contains Jan 1st is the first week of the year.