feat: 404 page

This commit is contained in:
TrèsAbhi committed 2025-05-26 20:07:33 -05:00
1 parent 5adf90bab2
commit bc6bb4f10e
28 files changed
+1505 -97

No files matched your search

@@ -0,0 +1,14 @@
import locales from '@blitzkit/i18n/locales.json' with { type: 'json' };
import type { APIRoute, GetStaticPaths, GetStaticPathsItem } from 'astro';
import { getStrings } from 'packages/website-ue/src/core/i18n/getStrings';
export const getStaticPaths: GetStaticPaths = () => {
return locales.supported.map(
({ locale }) => ({ params: { locale } }) satisfies GetStaticPathsItem,
);
};
export const GET: APIRoute = async ({ params, request }) => {
const strings = await getStrings(params.locale!);
return Response.json(strings);
};