mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start new website
This commit is contained in:
1 parent
9037e2caff
commit
bc8cfc9897
8 files changed
+130
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
---
|
||||
import locales from '@blitzkit/i18n/locales.json';
|
||||
import type { GetStaticPaths } from 'astro';
|
||||
|
||||
export const getStaticPaths = (() => {
|
||||
return locales.supported.map(({ locale, blitz }) => ({
|
||||
params: { locale: locale === locales.default ? undefined : locale },
|
||||
props: { locale, blitzLocale: blitz ?? locale },
|
||||
}));
|
||||
}) satisfies GetStaticPaths;
|
||||
|
||||
const { locale } = Astro.props;
|
||||
---
|
||||
|
||||
Hello in {locale}!
|
||||
Reference in new issue
Block a user