Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not-found error page doesn't work under [lng] folder #5

Open
mikhailovenator opened this issue Nov 6, 2023 · 2 comments
Open

not-found error page doesn't work under [lng] folder #5

mikhailovenator opened this issue Nov 6, 2023 · 2 comments

Comments

@mikhailovenator
Copy link

mikhailovenator commented Nov 6, 2023

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
Copy link
Member

adrai commented Nov 7, 2023

You can try to do something like this?
i18next/next-app-dir-i18next-example@abd7cf0

@mikhailovenator
Copy link
Author

Applied vercel/next.js#50034 (reply in thread) workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants