1 //! moment.js locale configuration
3 ;(function (global
, factory
) {
4 typeof exports
=== 'object' && typeof module
!== 'undefined'
5 && typeof require
=== 'function' ? factory(require('../moment')) :
6 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
8 }(this, (function (moment
) { 'use strict';
11 var months
= 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
12 monthsShort
= 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
14 var monthsParse
= [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
15 // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
16 // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
17 var monthsRegex
= /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
20 return (n
> 1) && (n
< 5) && (~~(n
/ 10) !== 1);
22 function translate(number
, withoutSuffix
, key
, isFuture
) {
23 var result
= number
+ ' ';
25 case 's': // a few seconds / in a few seconds / a few seconds ago
26 return (withoutSuffix
|| isFuture
) ? 'pár sekund' : 'pár sekundami';
27 case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
28 if (withoutSuffix
|| isFuture
) {
29 return result
+ (plural(number
) ? 'sekundy' : 'sekund');
31 return result
+ 'sekundami';
34 case 'm': // a minute / in a minute / a minute ago
35 return withoutSuffix
? 'minuta' : (isFuture
? 'minutu' : 'minutou');
36 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
37 if (withoutSuffix
|| isFuture
) {
38 return result
+ (plural(number
) ? 'minuty' : 'minut');
40 return result
+ 'minutami';
43 case 'h': // an hour / in an hour / an hour ago
44 return withoutSuffix
? 'hodina' : (isFuture
? 'hodinu' : 'hodinou');
45 case 'hh': // 9 hours / in 9 hours / 9 hours ago
46 if (withoutSuffix
|| isFuture
) {
47 return result
+ (plural(number
) ? 'hodiny' : 'hodin');
49 return result
+ 'hodinami';
52 case 'd': // a day / in a day / a day ago
53 return (withoutSuffix
|| isFuture
) ? 'den' : 'dnem';
54 case 'dd': // 9 days / in 9 days / 9 days ago
55 if (withoutSuffix
|| isFuture
) {
56 return result
+ (plural(number
) ? 'dny' : 'dní');
58 return result
+ 'dny';
61 case 'M': // a month / in a month / a month ago
62 return (withoutSuffix
|| isFuture
) ? 'měsíc' : 'měsícem';
63 case 'MM': // 9 months / in 9 months / 9 months ago
64 if (withoutSuffix
|| isFuture
) {
65 return result
+ (plural(number
) ? 'měsíce' : 'měsíců');
67 return result
+ 'měsíci';
70 case 'y': // a year / in a year / a year ago
71 return (withoutSuffix
|| isFuture
) ? 'rok' : 'rokem';
72 case 'yy': // 9 years / in 9 years / 9 years ago
73 if (withoutSuffix
|| isFuture
) {
74 return result
+ (plural(number
) ? 'roky' : 'let');
76 return result
+ 'lety';
82 var cs
= moment
.defineLocale('cs', {
84 monthsShort
: monthsShort
,
85 monthsRegex
: monthsRegex
,
86 monthsShortRegex
: monthsRegex
,
87 // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
88 // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
89 monthsStrictRegex
: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
90 monthsShortStrictRegex
: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
91 monthsParse
: monthsParse
,
92 longMonthsParse
: monthsParse
,
93 shortMonthsParse
: monthsParse
,
94 weekdays
: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
95 weekdaysShort
: 'ne_po_út_st_čt_pá_so'.split('_'),
96 weekdaysMin
: 'ne_po_út_st_čt_pá_so'.split('_'),
102 LLL
: 'D. MMMM YYYY H:mm',
103 LLLL
: 'dddd D. MMMM YYYY H:mm',
107 sameDay
: '[dnes v] LT',
108 nextDay
: '[zítra v] LT',
109 nextWeek: function () {
110 switch (this.day()) {
112 return '[v neděli v] LT';
115 return '[v] dddd [v] LT';
117 return '[ve středu v] LT';
119 return '[ve čtvrtek v] LT';
121 return '[v pátek v] LT';
123 return '[v sobotu v] LT';
126 lastDay
: '[včera v] LT',
127 lastWeek: function () {
128 switch (this.day()) {
130 return '[minulou neděli v] LT';
133 return '[minulé] dddd [v] LT';
135 return '[minulou středu v] LT';
138 return '[minulý] dddd [v] LT';
140 return '[minulou sobotu v] LT';
161 dayOfMonthOrdinalParse
: /\d{1,2}\./,
164 dow
: 1, // Monday is the first day of the week.
165 doy
: 4 // The week that contains Jan 4th is the first week of the year.