generete the metadata from translations files
Unanswered
Cassin's Auklet posted this in #help-forum
Cassin's AukletOP
im using next-intl to translate my pages, however my
so each page has inside its object the metadata,
how can i generate these meta data based on languages and the route im in, because i tried to use useTranslations and usePathname, but hook are not allowed in generatemetadata.
can someone help with it.
"About": {
"aboutPageTitle": "metadata title - About Us",
"aboutTitle": "my title",
"abouttxt":"text"
},so each page has inside its object the metadata,
how can i generate these meta data based on languages and the route im in, because i tried to use useTranslations and usePathname, but hook are not allowed in generatemetadata.
can someone help with it.