prismicio-community / nextjs-starter-prismic-multi-language

Multi-language project with Next.js & Prismic
https://nextjs-starter-prismic-multi-language.vercel.app
Apache License 2.0
57 stars 27 forks source link

Html tag lang property always remains hardcoded #44

Open olehkhalin opened 1 year ago

olehkhalin commented 1 year ago

Lang property in html tag doesn't depend on the selected locale

https://github.com/prismicio-community/nextjs-starter-prismic-multi-language/blob/e6c791303a13aaabd3b7cbd9ac7dcd440d40f531/src/app/layout.js#L26

loudmu commented 10 months ago

your folder structure should be : /app/[lang]/layout.js then you will have access to your locale from param.lang