Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carlosulisesochoa/nextjs-multipage-multilanguage-example

A template/example of a starter project with Nextjs 14.2 + i18n + next-roots (svobik7)
https://github.com/carlosulisesochoa/nextjs-multipage-multilanguage-example

appdir i18n localization mpa next nextjs

Last synced: about 9 hours ago
JSON representation

A template/example of a starter project with Nextjs 14.2 + i18n + next-roots (svobik7)

Awesome Lists containing this project

README

        


Next.js 14.2 + appDir + i18n + next-roots






![bg-next-roots](https://github.com/CarlosUlisesOchoa/nextjs-multipage-multilanguage-example/assets/26280134/aad88e22-e2b1-4217-9e8f-99cb1bcba48b)

## Overview

This project template showcases an enhanced internationalization (i18n) experience in a Next.js application using the next-roots package. By generating all localized file-routes (slugs) in advance, this approach simplifies routing and improves performance compared to dynamic `[lang]` segments.


### Key Benefits

- **Simplified Routing**: Automatically generates localized routes such as `/es/acerca` and `/about`, allowing you to manage multiple languages efficiently.
- **Centralized Translation Files**: Keep your code clean by defining routes in one file and placing translations in another, making it easier to maintain and scale your application.


## Table of Contents

- [Overview](#overview)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [License](#license)
- [About Developer](#about-developer)


## Getting Started

1. **Clone the repository:**

```bash
git clone https://github.com/CarlosUlisesOchoa/nextjs-multipage-multilanguage-example.git
```

2. **Navigate to the project directory:**

```bash
cd nextjs-multipage-multilanguage-example
```

3. **Install dependencies:**

```bash
pnpm install
```

4. **Run the development server:**

```bash
pnpm dev
```

5. **Open the application:**

Visit [http://localhost:3000](http://localhost:3000) in your browser to see the app in action.


## Contributing

Pull requests and contributions are welcome. Please open an issue first to discuss your proposed changes or improvements.


## License

This project is released under the [MIT License](LICENSE).


## About developer

Visit my web [Carlos Ochoa](https://carlos8a.com)


---

**Note:** If you encounter any issues with the project, please report them [here](https://github.com/CarlosUlisesOchoa/nextjs-multipage-multilanguage-example/issues). Contributions are welcome!