Skip to content

Commit

Permalink
added generateMetadata with usage of useTranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinonalcom authored Mar 20, 2024
1 parent d95c0de commit 2e2d1b7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import Link from 'next/link'
import useTranslation from 'next-translate/useTranslation'
import Trans from 'next-translate/Trans'
import { Metadata } from "next";

export function generateMetadata(): Metadata {
const { t } = useTranslation("common");

return {
title: t`second-page-title`
};
}

export default function Page() {
const { t, lang } = useTranslation('common')
Expand Down

0 comments on commit 2e2d1b7

Please sign in to comment.