A modern starter template for Next.js 15 with internationalization support using next-intl v4. This template provides a solid foundation for building scalable, internationalized web applications.
- 🚀 Next.js 15 with App Router
- 🌍 Internationalization using next-intl v4
- 🎨 Tailwind CSS for styling
- 📱 Responsive Design out of the box
- 🔍 SEO Optimized
- 🎯 TypeScript for type safety
- ⚡ Fast Refresh enabled
- 🛠 Modern Development Tools (ESLint, Prettier)
main
: Full featured template with example components and pagesskeleton
: Minimal starter with basic setup and structure
next.config.ts
- Next.js configuration with next-intl plugintailwind.config.js
- Tailwind CSS configurationtsconfig.json
- TypeScript configuration
messages/
- Translation files organized by localeen/
- English translationscommon.json
- Common translationshome.json
- Home page translationspathname.json
- URL path translationsmeta.json
- Meta information translations
de/
- German translations (same structure as en)
src/i18n/
- Internationalization configurationnavigation.ts
- Navigation utilities (Link, useRouter, etc.)request.ts
- Request configuration for server-side i18nrouting.ts
- Routing configuration and pathnamestypes.ts
- TypeScript types for messages
middleware.ts
- Language routing middleware
src/app/
- Main application routes[locale]/
- Localized routeslayout.tsx
- Root layoutpage.tsx
- Home page
src/components/
- Reusable componentssrc/lib/
- Utility functions and shared logic
- Clone the repository:
git clone https://github.com/bastienallain/NextJS-15-i18n.git
- Install dependencies:
pnpm install
- Run the development server:
pnpm dev
- Open http://localhost:3000 in your browser.
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm start
- Start production serverpnpm lint
- Run ESLintpnpm format
- Format code with Prettier
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.