
next-lang is a lightweight, zero-routing localization package built for Next.js and React. It removes the need for complex folder structures like /[locale]/, locales/, or changing the URL during language switches. Instead, it offers a minimal setup with centralized translations, full control over the current language state, and clean integration into your frontend logic.
Designed for developers who want simple, state-driven internationalization in modern frontend apps — without the overhead.
Features
- 
✅ No /en/, /sk/ or URL routing required
 - 
✅ No special Next.js configuration (i18n, locales)
 - 
✅ Use a single translations object instead of multiple JSON files
 - 
✅ Clean integration with <LangProvider> and useLang() hook
 - 
✅ Utility methods like toggleLang() and setLang()
 - 
✅ Fully typed with TypeScript
 - 
✅ SSR-friendly foundation (client-first, but SSR support is planned)
 
Tech Stack ✅ React & Next.js compatible
✅ TypeScript (typed translations via as const)
✅ Fully client-side
✅ SSR-compatible design pattern (future: async translations + middleware support)
🧪 Planned features:
- 
Lazy loading of translations
 - 
Optional fallback languages
 - 
Devtools toggle + localStorage persistence
 - 
Integration into RSC (React Server Components)
 
When to Use next-lang
- 
When you want simple, clean localization with minimal setup
 - 
When you want to avoid modifying Next.js routing
 - 
When you’re building an MVP or internal app where full-blown i18n is overkill
 - 
When you value clean URLs and a fully frontend-driven language switcher
 
License
MIT — free for personal and commercial use.
