13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
|
const formatRelativeLocale = {
|
||
|
lastWeek: "'أخر' eeee 'عند' p",
|
||
|
yesterday: "'أمس عند' p",
|
||
|
today: "'اليوم عند' p",
|
||
|
tomorrow: "'غداً عند' p",
|
||
|
nextWeek: "eeee 'عند' p",
|
||
|
other: "P",
|
||
|
};
|
||
|
|
||
|
export const formatRelative = (token, _date, _baseDate, _options) => {
|
||
|
return formatRelativeLocale[token];
|
||
|
};
|