12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
const formatRelativeLocale = {
|
|
lastWeek: "'vorige' eeee 'om' p",
|
|
yesterday: "'gisteren om' p",
|
|
today: "'vandaag om' p",
|
|
tomorrow: "'morgen om' p",
|
|
nextWeek: "eeee 'om' p",
|
|
other: "P",
|
|
};
|
|
|
|
export const formatRelative = (token, _date, _baseDate, _options) =>
|
|
formatRelativeLocale[token];
|