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

https://github.com/jon1vk/nextglobegen

Internationalization (i18n) library for Next.js App Router
https://github.com/jon1vk/nextglobegen

i18n internationalization localization nextjs react

Last synced: 11 days ago
JSON representation

Internationalization (i18n) library for Next.js App Router

Awesome Lists containing this project

README

        





next-intl

NextGlobeGen

NPM version
Next.js App Router Support
TypeScript Support

NextGlobeGen is a TypeScript package designed to streamline the process of adding internationalization (i18n) to your Next.js application. It is specifically tailored for projects using the Next.js App Router. By leveraging generative programming techniques, NextGlobeGen automates the creation of locale-based routes, enabling a seamless developer experience for the developers.

Whether you're building a blog, an e-commerce platform, or an enterprise application, NextGlobeGen is your go-to tool for making your Next.js app globally available.

[Check out the Docs](https://jon1vk.github.io/NextGlobeGen/)

## Key Features

- **Generative Locale Routes**: Includes plugin that generates routes on the fly for each supported language.
- **Middleware Integration**: Provides pre-configured middleware for locale detection and redirection.
- **Translation Logic**: Supports [ICU](https://unicode-org.github.io/icu/userguide/format_parse/messages/) formatted interpolation patterns in the translations.
- **Developer-Friendly**: Includes a locale-aware API that works interchangeably in server and client components.

## How It Works

NextGlobeGen uses the power of generative programming to create the localized routes. It:

- Analyzes your app routing structure.
- Generates localized routes based on the analysis.
- Supports TypeScript by generating the required types.
- Provides API that is automagically aware of the current locale.