From 228bb43518580c6319f3184eb153a6ca1eff8fab Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 9 Mar 2024 14:00:38 +0100 Subject: [PATCH] Fix Language Warning --- src/pages/[...slug].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),