vite-bundled-i18n

JSON →
library 0.7.2 ·javascript
verified Apr 27, 2026

Route-aware i18n bundler for Vite that extracts translation keys via AST analysis at build time and emits per-route scope-matched JSON bundles. Current stable version is 0.7.2, released with weekly or bi-weekly cadence. Unlike traditional i18n libraries (react-i18next, vue-i18n) that load all translations globally, vite-bundled-i18n tree-shakes translations per page, reducing payload from thousands of keys to only the ones needed for the current route. Supports React, Vue, and vanilla JS with a shared ~50-line core, optional compiled Map modules for O(1) lookup, SSR with automatic hydration, type-safe placeholder validation, and a testing utility. Requires Node >=20, peer deps: react >=18, react-dom >=18, vue ^3.0.0, eslint >=8.

total hits 10
actors 3 distinct systems
last hit 7d ago Bingbot
GPTBot
5
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · CL