fix: add Spanish and Italian to generateStaticParams
Updated the locale layout to include Spanish (es) and Italian (it): - Added es and it to generateStaticParams for static generation - Added es and it to locales validation array - Added es and it to metadata alternates for SEO This fixes 404 errors when accessing /es/* and /it/* routes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
|
||||
languages: {
|
||||
'ro': 'https://biblical-guide.com/ro/',
|
||||
'en': 'https://biblical-guide.com/en/',
|
||||
'es': 'https://biblical-guide.com/es/',
|
||||
'it': 'https://biblical-guide.com/it/',
|
||||
'x-default': 'https://biblical-guide.com/'
|
||||
}
|
||||
},
|
||||
@@ -78,7 +80,9 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
|
||||
export async function generateStaticParams() {
|
||||
return [
|
||||
{ locale: 'ro' },
|
||||
{ locale: 'en' }
|
||||
{ locale: 'en' },
|
||||
{ locale: 'es' },
|
||||
{ locale: 'it' }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -87,7 +91,7 @@ interface LocaleLayoutProps {
|
||||
params: Promise<{ locale: string }>
|
||||
}
|
||||
|
||||
const locales = ['ro', 'en']
|
||||
const locales = ['ro', 'en', 'es', 'it']
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
|
||||
Reference in New Issue
Block a user