This is a Next.js 13.4 project that leverages i18n, the experimental appDir feature, and the next-roots package for an improved internationalization experience and SEO friendly.
In this application, I've implemented internationalization (i18n) by using the next-roots package. This approach simplifies routing by generating all localized file-routes (slugs) in advance, rather than using dynamic [lang]
segments.
- Clone the repository:
git clone https://github.com/CarlosUlisesOchoa/nextjs-multipage-multilanguage-example.git
- Open the project's folder:
cd nextjs-multipage-multilanguage-example
- Install dependencies:
pnpm install
- Generate the routes (routes are generated and placed at
src/app
pnpm next-roots
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser to see the app in action.
Pull requests and contributions are welcome. Please open an issue first to discuss your proposed changes or improvements.
This project is released under the MIT License.
Visit my web Carlos Ochoa
Note: If you encounter any issues with the project, please report them here. Contributions are welcome!