rec.
HOMEMUSICCODE
← BACK TO CODE

intl-party

The easiest, most developer-friendly i18n library for Next.js

NPM↗GITHUB↗
00OVERVIEW

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
01FEATURES
01

Zero-Config Setup

One command (`npx intl-party nextjs --init`) scaffolds config, middleware, messages, and example components. Get started in two minutes.

02

Perfect TypeScript

Full type safety with autocomplete on every translation key. No casting, no ceremony — types are generated from your JSON files.

03

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.

04

Clean URLs by Default

Cookie-based locale detection means no ugly `/en/` prefixes. Opt into `as-needed` or `always` prefixing when you want them.

05

ICU MessageFormat

Complex pluralization, gender selection, and locale-specific formatting when you need it. Mix ICU and simple `{{variable}}` syntax freely.

06

Hot Reloading

Edit a translation file and see it in the browser instantly. Types regenerate automatically on save.

02QUICK START
  1. STEP 01

    Install

    bash
    npm install @intl-party/nextjs
  2. STEP 02

    Initialize

    Scaffolds config, middleware, message files, and example components.

    bash
    npx intl-party nextjs --init
  3. STEP 03

    Use it

    Type-safe translations in any server or client component.

    tsx
    import { 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>
      );
    }
03CONFIGURATION

Configure

ts
// intl-party.config.ts
export default {
  locales: ['en', 'es', 'fr'],
  defaultLocale: 'en',
  messages: './messages',
  // localePrefix: 'never', // clean URLs, no /en/
};
04COMPARISON
Featureintl-partynext-intlreact-i18next
Setup time2 minutes15 minutes30 minutes
Type safetyPerfectGoodRequires casting
Clean URLsDefaultComplexManual
App RouterNativeGoodLimited
Auto type generationBuilt-inManualNone
Hot reloadingBuilt-inManualNone
05CLI
  • Scaffold i18n in a Next.js project

    npx intl-party nextjs --init
  • Generate TypeScript types from translation files

    npx intl-party generate --types
  • Watch translation files and regenerate types

    npx intl-party generate --types --watch
  • Find missing translations across locales

    npx intl-party check --missing
  • Validate translation format (ICU, interpolation)

    npx intl-party validate
06PACKAGES
  • @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
© 2026 RECyo@rec.cool
IGYTMDEO, UY