UNPKG

date-fns

Version:

Modern JavaScript date utility library

13 lines (11 loc) 335 B
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]; };