Next.js Discord

Discord Forum

Root Layout: How to get Params?

Unanswered
Erythrina gall wasp posted this in #help-forum
Open in Discord
Erythrina gall waspOP
I redirect the user to use the correct language, e.g english would go to /[lang]/ so /en/ but how can I access that param in my RootLayout? I want to add the correct language to the Html tag because currently it always uses <Html lang='en'/ which is a bit dumb

0 Replies