intl-party
The easiest, most developer-friendly i18n library for Next.js
Type-safe internationalization for React and Next.js with zero-config setup, automatic type generation, clean URLs, hot-reloading translations, and first-class App Router support. Built to make i18n feel like a party, not a chore.
- STATUS
- ACTIVE
- STACK
- TypeScriptReactNext.jsICU MessageFormat
- REPOSITORY
- github.com/RodrigoEspinosa/intl-party
- LINK
- www.npmjs.com/org/intl-party
Zero-Config Setup
One command (`npx intl-party nextjs --init`) scaffolds config, middleware, messages, and example components. Get started in two minutes.
Perfect TypeScript
Full type safety with autocomplete on every translation key. No casting, no ceremony — types are generated from your JSON files.
Next.js Native
Built specifically for the App Router with proper SSR/SSG. Server components, client components, and middleware all share the same locale state.
Clean URLs by Default
Cookie-based locale detection means no ugly `/en/` prefixes. Opt into `as-needed` or `always` prefixing when you want them.
ICU MessageFormat
Complex pluralization, gender selection, and locale-specific formatting when you need it. Mix ICU and simple `{{variable}}` syntax freely.
Hot Reloading
Edit a translation file and see it in the browser instantly. Types regenerate automatically on save.
- STEP 01
Install
bashnpm install @intl-party/nextjs - STEP 02
Initialize
Scaffolds config, middleware, message files, and example components.
bashnpx intl-party nextjs --init - STEP 03
Use it
Type-safe translations in any server or client component.
tsximport { useTranslations } from '@intl-party/nextjs'; export default function HomePage() { const t = useTranslations('common'); return ( <div> <h1>{t('welcome')}</h1> <p>{t('description', { name: 'John' })}</p> </div> ); }
Configure
// intl-party.config.ts
export default {
locales: ['en', 'es', 'fr'],
defaultLocale: 'en',
messages: './messages',
// localePrefix: 'never', // clean URLs, no /en/
};| Feature | intl-party | next-intl | react-i18next |
|---|---|---|---|
| Setup time | 2 minutes | 15 minutes | 30 minutes |
| Type safety | Perfect | Good | Requires casting |
| Clean URLs | Default | Complex | Manual |
| App Router | Native | Good | Limited |
| Auto type generation | Built-in | Manual | None |
| Hot reloading | Built-in | Manual | None |
Scaffold i18n in a Next.js project
npx intl-party nextjs --initGenerate TypeScript types from translation files
npx intl-party generate --typesWatch translation files and regenerate types
npx intl-party generate --types --watchFind missing translations across locales
npx intl-party check --missingValidate translation format (ICU, interpolation)
npx intl-party validate
@intl-party/nextjsNext.js integration. The main package — start here.@intl-party/coreCore internationalization library. Framework-agnostic.@intl-party/reactReact hooks and components for any React app.@intl-party/cliCommand-line tools for type generation and validation.
READY TO TRY INTL-PARTY?
VIEW ON GITHUB