Skip to content

Internationalization (i18n) library for Next.js App Router

License

Notifications You must be signed in to change notification settings

petetnt/NextGlobeGen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-intl NextGlobeGen

NPM Version Static Badge Static Badge

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

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 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.

About

Internationalization (i18n) library for Next.js App Router

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.9%
  • JavaScript 1.1%