Unsupport language handling? should go back to default language? #227
Unanswered
KhantMin-coder
asked this question in
Q&A
Replies: 1 comment
-
You can implement this by replacing Please note that this is not a bug but a usage question, I'm converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi
I am following the Nextjs 13, client component translations.
My url is something like this
http://localhost:3000/en?token=e8dcef6d
Its works fine since i follow the example my app support
en
andde
but the problem is when the url goes into something like this, unsupported language. Eg (fr)
http://localhost:3000/fr?token=e8dcef6d
its completely break the translations.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://github.com/amannn/next-intl/tree/main/packages/example-next-13
need to comment out
notFound()
in the head.tsx and layout.tsxReproduction description
Steps to reproduce:
Expected behaviour
If the change the locale to
fr
which is the unsupported format. it should go back to englishexample
http://localhost:3000/fr?token=e8dcef6d
Beta Was this translation helpful? Give feedback.
All reactions