12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
|
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];
|