diff --git a/src/pages/[...slug].astro b/src/pages/[...slug].astro index 848a269..c9b9042 100644 --- a/src/pages/[...slug].astro +++ b/src/pages/[...slug].astro @@ -33,7 +33,7 @@ export const getStaticPaths = createGetStaticPaths(async () => { return posts.map((page) => ({ props: { page, - german: page.id.split("/")[0] === astroI18n.fallbackLocale, + german: astroI18n.locale !== astroI18n.primaryLocale && page.id.split("/")[0] !== astroI18n.primaryLocale, }, params: { slug: fixLink(page),