12 lines
301 B
JavaScript
12 lines
301 B
JavaScript
|
const formatRelativeLocale = {
|
||
|
lastWeek: "'pasinta' eeee 'je' p",
|
||
|
yesterday: "'hieraŭ je' p",
|
||
|
today: "'hodiaŭ je' p",
|
||
|
tomorrow: "'morgaŭ je' p",
|
||
|
nextWeek: "eeee 'je' p",
|
||
|
other: "P",
|
||
|
};
|
||
|
|
||
|
export const formatRelative = (token, _date, _baseDate, _options) =>
|
||
|
formatRelativeLocale[token];
|