@fifteen/design-system-vue
Version:
Vue 3 (Composition API + Typescript) implementation of the Fifteen Design System
19 lines (18 loc) • 436 B
JavaScript
const t = {
lastWeek: "'o' eeee 'pasado á' LT",
yesterday: "'onte á' p",
today: "'hoxe á' p",
tomorrow: "'mañá á' p",
nextWeek: "eeee 'á' p",
other: "P"
}, a = {
lastWeek: "'o' eeee 'pasado ás' p",
yesterday: "'onte ás' p",
today: "'hoxe ás' p",
tomorrow: "'mañá ás' p",
nextWeek: "eeee 'ás' p",
other: "P"
}, p = (e, o, r, s) => o.getHours() !== 1 ? a[e] : t[e];
export {
p as formatRelative
};