From c6a62f40f4f22299682fbcb2ce82dfd7140dd023 Mon Sep 17 00:00:00 2001 From: Zeeshan Khan Date: Tue, 2 Jun 2026 14:15:26 +0200 Subject: [PATCH] fix: responsive Signaturmeny title + translated menu item descriptions - Make 'Signaturmeny' h2 responsive (smaller base font + break-words) so it doesn't overflow on mobile. - Add signatureMenuItems and menuDescriptions to translations (en/sv + fallbacks for hi/ur). - Update homepage signature cards and full menu page to use translated descriptions (while keeping dish names unchanged as requested). - Swedish descriptions now active by default. --- app/menu/page.tsx | 2 +- app/page.tsx | 6 ++-- lib/translations.ts | 86 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 4 deletions(-) diff --git a/app/menu/page.tsx b/app/menu/page.tsx index 38a6fd5..184dcae 100644 --- a/app/menu/page.tsx +++ b/app/menu/page.tsx @@ -286,7 +286,7 @@ export default function MenuPage() { {item.description && (

- {item.description} + {(t as any).menuDescriptions?.[item.id] || item.description}

)} diff --git a/app/page.tsx b/app/page.tsx index 5a64956..a17677b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -228,7 +228,7 @@ export default function ShahiKitchenHomepage() {
{t.signatureMenu.title}
-

{t.signatureMenu.title}

+

{t.signatureMenu.title}

{t.signatureMenu.subtitle}

@@ -241,7 +241,7 @@ export default function ShahiKitchenHomepage() { onClick={() => setMenuFilter(cat as any)} className={`flex-shrink-0 snap-start rounded-full px-5 py-2.5 text-sm font-bold transition-all active:scale-[0.97] touch-manipulation ${menuFilter === cat ? "bg-[#101724] text-white" : "border border-[#e5e1d7] bg-white text-[#182235] hover:border-[#c99a2e] hover:bg-[#fff6dc] active:bg-[#fff6dc]"}`} > - {cat} + {(t.signatureMenu as any)[`filter${cat}`] || cat} ))} @@ -273,7 +273,7 @@ export default function ShahiKitchenHomepage() {

{dish.name}

-

{dish.desc}

+

{(t.signatureMenuItems as any)?.[dish.id] || dish.desc}