Vite plugin for seamless i18next internationalization integration, v1.2.4. Provides fast, optimized bundling with automatic locale splitting and TypeScript support. Actively maintained. Differentiator: lightweight, zero-config setup compared to heavier alternatives like react-i18next.
npm install tangl-i18next-viteVerified import paths — ran on the pinned version, not inferred.
Basic Vite configuration integrating the tangl-i18next-vite plugin with two locales.
Update your Vite config to pass locales as an array e.g., locales: ['en', 'es'].
Remove 'namespaces' and reorganize locale files into subdirectories per namespace.
Ensure all locale files are .json and located under sourceDir.
Set 'moduleResolution' to 'bundler' or 'node16' in tsconfig.json.
Install the package: npm install tangl-i18next-vite --save-dev; for type resolution issues, set 'moduleResolution': 'bundler' in tsconfig.
Use dynamic import() or convert your project to ESM (set 'type': 'module' in package.json).
Use import { tanglI18nextVite } from 'tangl-i18next-vite' instead of default import.Change to locales: ['en', 'es'] per v1.2.0+ breaking change.
No dependency data recorded yet.