Return to documentation
i18n project architecture with next-intl
Optimal project structure for successful i18n migration.
Recommended project structure
For successful i18n migration with next-intl
src/
├── app/
│ └── [locale]/
│ ├── page.tsx ✅ Excellent support
│ ├── layout.tsx ✅ Excellent support
│ └── components/
│ ├── Hero.tsx ✅ Excellent support
│ ├── Features.tsx ✅ Excellent support
│ └── Pricing.tsx ✅ Excellent support
├── components/
│ ├── AdminDashboard.tsx ✅ Excellent support
│ ├── UserDashboard/ ✅ Excellent support
│ ├── Navbar.tsx ✅ Good support
│ └── Footer.tsx ✅ Good support
├── constants/
│ └── transactions.ts ✅ Excellent support
└── types/
└── index.ts ⚠️ Partial supportGood practices
1. Group by feature
Organize your components by feature rather than by type. This facilitates maintenance and translation.
2. Centralize constants
Place all static data in a folder /constants for easy translation.
3. Using Namspaces
Separate your translations by namespace (Common, Data, Button, etc.) for better organization.
4. Router-based routing
Use the local routing of Next.js ( [local] ) for a native i18n.