timepiece/node_modules/date-fns/locale/ja/_lib/formatRelative.mjs

13 lines
303 B
JavaScript
Raw Normal View History

2024-05-14 14:54:12 +00:00
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];
};