Fix Language Warning
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user