not-found error page doesn't work under [lng] folder
mikhailovenator opened this issue · 2 comments
mikhailovenator commented
Question
not-found error page doesn't work under [lng] folder. I can only add it in app root folder, but this page can't have "lng" param and it should have root layout.
We can't have root layout like in app folder because we don't have lng param:
<html
lang={lng}
dir={dir(lng)}
Is it possible to add not-found error page in [lng] folder? My main goal is to have localizable not-found error page. What would you suggest?
To Reproduce
I am using Next.js 13.5.6 and your repo as an example.
Expected behavior
I guess it is Next.js behavior.
adrai commented
You can try to do something like this?
i18next/next-app-dir-i18next-example@abd7cf0
mikhailovenator commented
Applied vercel/next.js#50034 (reply in thread) workaround