@fifteen/design-system-vue
Version:
Vue 3 (Composition API + Typescript) implementation of the Fifteen Design System
19 lines (18 loc) • 456 B
JavaScript
const t = {
lastWeek: "'el' eeee 'passat a la' LT",
yesterday: "'ahir a la' p",
today: "'avui a la' p",
tomorrow: "'demà a la' p",
nextWeek: "eeee 'a la' p",
other: "P"
}, l = {
lastWeek: "'el' eeee 'passat a les' p",
yesterday: "'ahir a les' p",
today: "'avui a les' p",
tomorrow: "'demà a les' p",
nextWeek: "eeee 'a les' p",
other: "P"
}, s = (e, a, o, r) => a.getHours() !== 1 ? l[e] : t[e];
export {
s as formatRelative
};