mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00

the #shared alias used by Nuxt cannot be easily disabled and to prevent breackage with jiti, we make use of it
13 lines
385 B
TypeScript
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,
|
|
);
|
|
};
|