12 lines
323 B
JavaScript
12 lines
323 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) =>
|
|
formatRelativeLocale[token];
|