Need help for folder structure for location based internationalization #1689
Replies: 2 comments 1 reply
-
Maybe a quick prototype based on next-intl-bug-repro-app-router could help you to demonstrate what you have and what's not working. |
Beta Was this translation helpful? Give feedback.
-
Thanks for response. my project has two dependencies. first of all I've change language and second one is location. user can change language also location and content should be rendered as per user interact. I can not understand how can i define layout.tsx, page.tsx middleware.ts and other related files. I'm trying form last two days. Here the code https://github.com/codiologist/nextjs15-next-intl |
Beta Was this translation helpful? Give feedback.
-
I've a project in next.js 15 where I've render pages for two locations Dhaka and Chittagong. The URL should be as below
example.com/en/dhaka
example.com/bn/dhaka
example.com/en/dhaka/about
example.com/en/dhaka/contact
Same for the Chittagong location also.
URL must be SEO friendly.
src/
├── app/
│ ├── [locale]/
│ │ └── [location]/
I am confused how can I define layout.tsx and page.tsx in [locale] and [location] directory. Also updte the middleware.ts file.
Please help me to solve this.
Beta Was this translation helpful? Give feedback.
All reactions