mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-12 11:52:26 +08:00
init
This commit is contained in:
23
node_modules/date-fns/locale/el/_lib/formatRelative.mjs
generated
vendored
Normal file
23
node_modules/date-fns/locale/el/_lib/formatRelative.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date) => {
|
||||
switch (date.getDay()) {
|
||||
case 6: //Σάββατο
|
||||
return "'το προηγούμενο' eeee 'στις' p";
|
||||
default:
|
||||
return "'την προηγούμενη' eeee 'στις' p";
|
||||
}
|
||||
},
|
||||
yesterday: "'χθες στις' p",
|
||||
today: "'σήμερα στις' p",
|
||||
tomorrow: "'αύριο στις' p",
|
||||
nextWeek: "eeee 'στις' p",
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, date) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") return format(date);
|
||||
|
||||
return format;
|
||||
};
|
||||
Reference in New Issue
Block a user