init 3
This commit is contained in:
31
node_modules/date-fns/locale/cs/_lib/formatRelative.mjs
generated
vendored
Normal file
31
node_modules/date-fns/locale/cs/_lib/formatRelative.mjs
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
const accusativeWeekdays = [
|
||||
"neděli",
|
||||
"pondělí",
|
||||
"úterý",
|
||||
"středu",
|
||||
"čtvrtek",
|
||||
"pátek",
|
||||
"sobotu",
|
||||
];
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "'poslední' eeee 've' p",
|
||||
yesterday: "'včera v' p",
|
||||
today: "'dnes v' p",
|
||||
tomorrow: "'zítra v' p",
|
||||
nextWeek: (date) => {
|
||||
const day = date.getDay();
|
||||
return "'v " + accusativeWeekdays[day] + " o' p";
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, date) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
2
node_modules/date-fns/locale/cs/_lib/match.d.ts
generated
vendored
Normal file
2
node_modules/date-fns/locale/cs/_lib/match.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
Reference in New Issue
Block a user