diff --git a/app/page.tsx b/app/page.tsx index fe27269..97ed30c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,6 +3,22 @@ import { Contacts } from '@/components/contacts'; import { Person } from '@/components/person'; import { Skills } from '@/components/skills'; import { Work } from '@/components/work'; +import { type Metadata } from 'next'; +import { getTranslations } from 'next-intl/server'; + +type Parameters = { + params: { + locale: string; + }; +}; + +export async function generateMetadata({ params: { locale } }: Parameters): Promise { + const t = await getTranslations({ locale, namespace: 'HomePage' }); + + return { + title: t('title'), + }; +} export default function HomePage() { return ( diff --git a/messages/ru.json b/messages/ru.json index a776af3..ad9c9c1 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -1,4 +1,8 @@ { + "HomePage": { + "title": "Влад Чикалкин", + "description": "веб-разработчик React Next.js Typescript" + }, "Person": { "hello": "Привет! Я Влад 👋", "description": "Веб-разработчик с широким опытом работы в различных проектах. Люблю технологии и создавать приятный софт"