UNPKG

date-fns

Version:

Modern JavaScript date utility library

11 lines 280 B
var formatRelativeLocale = { lastWeek: "'verlede' eeee 'om' p", yesterday: "'gister om' p", today: "'vandag om' p", tomorrow: "'môre om' p", nextWeek: "eeee 'om' p", other: 'P' }; export default function formatRelative(token) { return formatRelativeLocale[token]; }