not-found.js not accepting props
Answered
Alaska pollock posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Alaska pollockOP
not-found.js components do not accept any props. How are we supposed to translate it to other languages if it doesn't accept any props?
Answered by DirtyCajunRice | AppDir
the simplest way - if path - is to make not-found a client component, and do useParams()
6 Replies
![Avatar](https://cdn.discordapp.com/avatars/184479429404262410/a_35db4fb943e84d39bb02d6ec0f1d0b7e.gif?size=256)
DirtyCajunRice | AppDir
is your language set in headers, or in path only
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Alaska pollockOP
i'm using nextjs Internationalization, so dynamic routes
![Avatar](https://cdn.discordapp.com/avatars/184479429404262410/a_35db4fb943e84d39bb02d6ec0f1d0b7e.gif?size=256)
DirtyCajunRice | AppDir
the simplest way - if path - is to make not-found a client component, and do useParams()
Answer
![Avatar](https://cdn.discordapp.com/avatars/184479429404262410/a_35db4fb943e84d39bb02d6ec0f1d0b7e.gif?size=256)
DirtyCajunRice | AppDir
if you want it to be a server component, you need to use headers() get the path from headers, and parse the path yourself
either way gets you what you need.
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Alaska pollockOP
understood, preciate the help ðŸ¤