Skip to content

i18next

Mature internationalization ecosystem for translations, interpolation and formatting.

UnverifiedActive

Unverified

Compatibility has not been verified yet in the PreactHub catalog.

Packagei18next

Facts at a glance
Preact compatibility
Unverified
Tested Preact versions
Not documented
TypeScript
Native TypeScript
SSR
SSR supported
Maintenance
Active
License
MIT
Last verified
Not yet verified
Terminal
npm install i18next
preact-example.ts
import i18next from "i18next"; i18next.init({  lng: "en",  resources: { en: { translation: { hello: "Hello" } } },});

Introduction

`i18next` is often selected for applications that need a mature translation ecosystem and plugin surface.

Preact configuration

Core i18next is framework-agnostic, but adapter selection and hook usage should be reviewed for Preact compatibility.

SSR notes

SSR usually works best when language state is created per request.

Islands notes

When using this library inside an island, keep browser-specific setup inside the island component or an effect, and pass only serializable props from the server-rendered page.

Alternatives