QuiiBz/next-international

Type-safe internationalization (i18n) for Next.js

1,442

stars

153

commits

TypeScript

primary language

Oct 31, 2024

updated

next-international.vercel.app
i18n
library
nextjs
typescript

README


Type-safe internationalization (i18n) for Next.js


Features

  • 100% Type-safe: Locales in TS or JSON, type-safe t() & scopedT(), type-safe params, type-safe plurals, type-safe changeLocale()...
  • Small: No dependencies, lazy-loaded
  • Simple: No Webpack configuration, no CLI, no code generation, just pure TypeScript
  • Server and Client, Static Rendering: Lazy-load server and client-side, support for Static Rendering
  • App or Pages Router: With support for React Server Components

Note: You can now build on top of the types used by next-international using international-types!

Try it live on CodeSandbox:

Open with CodeSandbox

Documentation

Check out the documentation at https://next-international.vercel.app.

Contributing

See the contributing guide.

Sponsors

Sponsors

License

MIT

Contributors

QuiiBz

125 commits

Yovach

5 commits

ubinatus

2 commits

gdaybrice

2 commits

QuiiBz/next-international

Type-safe internationalization (i18n) for Next.js

1,442

stars

153

commits

TypeScript

primary language

Oct 31, 2024

updated

next-international.vercel.app
i18n
library
nextjs
typescript

README


Type-safe internationalization (i18n) for Next.js


Features

  • 100% Type-safe: Locales in TS or JSON, type-safe t() & scopedT(), type-safe params, type-safe plurals, type-safe changeLocale()...
  • Small: No dependencies, lazy-loaded
  • Simple: No Webpack configuration, no CLI, no code generation, just pure TypeScript
  • Server and Client, Static Rendering: Lazy-load server and client-side, support for Static Rendering
  • App or Pages Router: With support for React Server Components

Note: You can now build on top of the types used by next-international using international-types!

Try it live on CodeSandbox:

Open with CodeSandbox

Documentation

Check out the documentation at https://next-international.vercel.app.

Contributing

See the contributing guide.

Sponsors

Sponsors

License

MIT

Contributors

QuiiBz

125 commits

Yovach

5 commits

ubinatus

2 commits

gdaybrice

2 commits

Languages

TypeScript

99.9%