12 lines
302 B
JavaScript
12 lines
302 B
JavaScript
const formatRelativeLocale = {
|
|
lastWeek: "'oldingi' eeee p 'da'",
|
|
yesterday: "'kecha' p 'da'",
|
|
today: "'bugun' p 'da'",
|
|
tomorrow: "'ertaga' p 'da'",
|
|
nextWeek: "eeee p 'da'",
|
|
other: "P",
|
|
};
|
|
|
|
export const formatRelative = (token, _date, _baseDate, _options) =>
|
|
formatRelativeLocale[token];
|