Path: blob/main/src/resources/library/dayjs/locale/cs.js
12923 views
// Czech [cs]12function plural(n) {3return (n > 1) && (n < 5) && (~~(n / 10) !== 1) // eslint-disable-line4}5/* eslint-disable */6function translate(number, withoutSuffix, key, isFuture) {7const result = `${number} `8switch (key) {9case 's': // a few seconds / in a few seconds / a few seconds ago10return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'11case 'm': // a minute / in a minute / a minute ago12return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou')13case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago14if (withoutSuffix || isFuture) {15return result + (plural(number) ? 'minuty' : 'minut')16}17return `${result}minutami`18case 'h': // an hour / in an hour / an hour ago19return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou')20case 'hh': // 9 hours / in 9 hours / 9 hours ago21if (withoutSuffix || isFuture) {22return result + (plural(number) ? 'hodiny' : 'hodin')23}24return `${result}hodinami`25case 'd': // a day / in a day / a day ago26return (withoutSuffix || isFuture) ? 'den' : 'dnem'27case 'dd': // 9 days / in 9 days / 9 days ago28if (withoutSuffix || isFuture) {29return result + (plural(number) ? 'dny' : 'dní')30}31return `${result}dny`32case 'M': // a month / in a month / a month ago33return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'34case 'MM': // 9 months / in 9 months / 9 months ago35if (withoutSuffix || isFuture) {36return result + (plural(number) ? 'měsíce' : 'měsíců')37}38return `${result}měsíci`39case 'y': // a year / in a year / a year ago40return (withoutSuffix || isFuture) ? 'rok' : 'rokem'41case 'yy': // 9 years / in 9 years / 9 years ago42if (withoutSuffix || isFuture) {43return result + (plural(number) ? 'roky' : 'let')44}45return `${result}lety`46}47}48/* eslint-enable */49const locale = {50name: 'cs',51weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),52weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),53weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),54months: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),55monthsShort: 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),56weekStart: 1,57yearStart: 4,58ordinal: n => `${n}.`,59formats: {60LT: 'H:mm',61LTS: 'H:mm:ss',62L: 'DD.MM.YYYY',63LL: 'D. MMMM YYYY',64LLL: 'D. MMMM YYYY H:mm',65LLLL: 'dddd D. MMMM YYYY H:mm',66l: 'D. M. YYYY'67},68relativeTime: {69future: 'za %s',70past: 'před %s',71s: translate,72m: translate,73mm: translate,74h: translate,75hh: translate,76d: translate,77dd: translate,78M: translate,79MM: translate,80y: translate,81yy: translate82}83}848586export default locale8788