12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
|
const formatRelativeLocale = {
|
||
|
lastWeek: "'letzten' eeee 'um' p",
|
||
|
yesterday: "'gestern um' p",
|
||
|
today: "'heute um' p",
|
||
|
tomorrow: "'morgen um' p",
|
||
|
nextWeek: "eeee 'um' p",
|
||
|
other: "P",
|
||
|
};
|
||
|
|
||
|
export const formatRelative = (token, _date, _baseDate, _options) =>
|
||
|
formatRelativeLocale[token];
|