Getting error in Prismic localization

I am implementing i18n in prismic
Project versions : -

"prismicio/client": "^5.1.0"
"prismic-reactjs": "^1.3.4"
"next": "10.2.0"

When I get locales from the repository it does not generate the other language URLs when we pass manually in route "http://localhost:3000/fr-fr/test-page" Then the URL is updated in the API field here is the example.


Are you using a route resolver for your localized pages? how is it structured?

Here is my route file