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
- Host: GitHub
- URL: https://github.com/jon1vk/nextglobegen
- Owner: Jon1VK
- License: mit
- Created: 2024-12-04T14:10:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-03-29T09:42:06.000Z (about 1 month ago)
- Last Synced: 2025-03-29T10:29:17.300Z (about 1 month ago)
- Topics: i18n, internationalization, localization, nextjs, react
- Language: TypeScript
- Homepage: https://next-globe-gen.dev/
- Size: 1.02 MB
- Stars: 17
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
NextGlobeGenNextGlobeGen 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.