diff --git a/apps/foundation/app/(Site)/not-found.tsx b/apps/foundation/app/(Site)/not-found.tsx index 5d02a25b..0e9df7e9 100644 --- a/apps/foundation/app/(Site)/not-found.tsx +++ b/apps/foundation/app/(Site)/not-found.tsx @@ -5,9 +5,10 @@ import Link from 'next/link'; import { getTranslations } from 'next-intl/server'; export async function generateMetadata() { + const dictionary = await getTranslations('notFound'); return { - title: 'Page not found', - description: "Sorry! We couldn't find the page you were looking for.", + title: dictionary('metaTitle'), + description: dictionary('metaDescription'), }; } diff --git a/apps/foundation/locales/en.json b/apps/foundation/locales/en.json index adcffe39..1370ca3c 100644 --- a/apps/foundation/locales/en.json +++ b/apps/foundation/locales/en.json @@ -8,7 +8,9 @@ }, "notFound": { "description": "Sorry! We couldn't find the page you were looking for.", - "homeButton": "Return Home" + "homeButton": "Return Home", + "metaTitle": "Page not found", + "metaDescription": "Sorry! We couldn't find the page you were looking for." }, "blog": { "backToBlog": "Back to blog",