-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Global 404 page is not available for internationalization #54911
Comments
It is because your not-found is not global, but rather confined to Move your Reference |
If |
Oh, my bad. So you want |
Sorry, the title of the issue I submitted may have caused misunderstanding. I created the |
yep |
So I guess you are aware that non-root
IMO the Reference |
Try to throw |
I see, thank you. |
@kjxbyz Do you mind if I open a feature request and PR about this issue? |
I do not mind |
I was able to get a 404 working but as the I tried the following by putting language For example,
I tried the above and it doesn't work for me. Related, but maybe a separate issue. The 404 page kicks in just fine under nearly every circumstance, except one. If I type in If I type in I know @devjiwonchoi is going to make a PR or suggestion, but I struggled enormously on this and wanted to comment on my ideas. |
This comment has been minimized.
This comment has been minimized.
According to the Next docs the not-found file can be "use client". If that doesn't work you can try to use the headers function and read the language from the |
Thanks. I think the issue was fixed since my comment. But thank you. |
Link to the code that reproduces this issue or a replay of the bug
https://github.com/kjxbyz/next-app-i18n-404
To Reproduce
yarn && yarn dev
http://localhost:3000/test/zh/
Current vs. Expected behavior
Current behavior
: Accessing a non-existent route returns no custom 404 page.Expected behavior
: Access a non-existent route and return a custom 404 page.Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 Binaries: Node: 18.17.1 npm: 9.6.7 Yarn: 1.22.19 pnpm: 8.6.12 Relevant Packages: next: 13.4.19 eslint-config-next: 13.4.19 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router
Additional context
No response
The text was updated successfully, but these errors were encountered: