Show HN: Intlayer – Lightweight Internationalization for Preact

  • Posted 21 hours ago by aypineau
  • 1 points
https://intlayer.org/doc/environment/vite-and-preact
We just adapted our lightweight internationalization solution for Preact. It supports per-component translations that are dynamically loaded, so only visible content is fetched – keeping bundles lean.

Example bundle sizes:

Preact + Intlayer: 120 KB

Preact support is handled via a new npm package, preact-intlayer.

0 comments