Valentyne Stigloher 10180aa6a3 (refactor) use #shared alias instead of ~~/shared
the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
2025-08-17 18:56:02 +02:00

13 lines
385 B
TypeScript

import { Calendar } from '#shared/calendar/helpers.ts';
import type { Event } from '#shared/calendar/helpers.ts';
import internationalEvents from '~~/locale/_/calendar/events.ts';
export const buildCalendar = (localEvents: Event[], baseUrl: string) => {
return new Calendar(
[...internationalEvents, ...localEvents],
baseUrl,
2021,
2025,
);
};