feat: add i18n support

This commit is contained in:
DuroCodes
2024-05-14 20:53:47 -04:00
parent 441af2e4aa
commit f43a51c7b1
6 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
---
import StarlightFallbackContentNotice from "@astrojs/starlight/components/FallbackContentNotice.astro";
import type { Props } from "@astrojs/starlight/props";
const { slug } = Astro.props;
const isApi = slug.includes("/api/");
---
{!isApi && <StarlightFallbackContentNotice {...Astro.props} />}