From 6d537580404672edc487885d4578b25186331cf5 Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 10 Oct 2025 18:12:00 +0000 Subject: [PATCH] fix: add Spanish and Italian to generateStaticParams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/[locale]/layout.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index adfa4ba..3ec7ae7 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -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,