How to add next-i18next translation on a dynamically routed page in a nextjs application?

clock icon

asked 279 days ago

message icon

0

eye icon

29

I have a dynamically routed page in Nextjs (v10.1.3) /my-translation/[id], I'd like to use next-i18next (v8.1.3) package to translate this page.

I tried using 2 folder structure in Nextjs, they both give the same error that I can not grasp.

  • pages/translated-page/[id]/index.tsx
  • pages/translated-page/[id].tsx

However, if I change dynamic routing to static, the translation works.

0 Answers

Empty state illustration

No Answers Found

The answer board is empty. Make it rain with your brilliant answer.

1

Write your answer here

Top Questions