12 lines
283 B
JavaScript
12 lines
283 B
JavaScript
const formatRelativeLocale = {
|
|
lastWeek: "'Praėjusį' eeee p",
|
|
yesterday: "'Vakar' p",
|
|
today: "'Šiandien' p",
|
|
tomorrow: "'Rytoj' p",
|
|
nextWeek: "eeee p",
|
|
other: "P",
|
|
};
|
|
|
|
export const formatRelative = (token, _date, _baseDate, _options) =>
|
|
formatRelativeLocale[token];
|