Files

12 lines
315 B
JavaScript
Raw Permalink Normal View History

2025-11-14 11:39:33 +08:00
const formatRelativeLocale = {
lastWeek: "eeee 'pase nan lè' p",
yesterday: "'yè nan lè' p",
today: "'jodi a' p",
tomorrow: "'demen nan lè' p'",
nextWeek: "eeee 'pwochen nan lè' p",
other: "P",
};
export const formatRelative = (token, _date, _baseDate, _options) =>
formatRelativeLocale[token];