Library
Internationalizationi18next
Mature internationalization ecosystem for translations, interpolation and formatting.
UnverifiedActive
Unverified
Compatibility has not been verified yet in the PreactHub catalog.
Packagei18next
npm install i18nextimport 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.