Fix Language Warning

This commit is contained in:
2024-03-09 14:00:38 +01:00
parent 72df9c1833
commit 228bb43518

View File

@@ -33,7 +33,7 @@ export const getStaticPaths = createGetStaticPaths(async () => {
return posts.map((page) => ({ return posts.map((page) => ({
props: { props: {
page, page,
german: page.id.split("/")[0] === astroI18n.fallbackLocale, german: astroI18n.locale !== astroI18n.primaryLocale && page.id.split("/")[0] !== astroI18n.primaryLocale,
}, },
params: { params: {
slug: fixLink(page), slug: fixLink(page),