A Rollup plugin for automatic internationalization (i18n) using i18never. Version 1.1.16 ships TypeScript types and requires Rollup ^3.26.3 as a peer dependency. It provides zero-config extraction of translatable strings from source code, enabling build-time injection of locale dictionaries. Unlike runtime i18n libraries, this plugin statically replaces i18n function calls with translated strings at build time, eliminating runtime overhead. Designed for small to medium projects that want simple i18n without heavy frameworks. Released in 2023 with occasional maintenance updates.
npm install rollup-plugin-i18neverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Rollup configuration using the i18never plugin to statically replace i18n function calls with translations at build time.
Use plugins: [i18never()] instead of plugins: [i18never]
Install i18never package: npm install i18never, and initialize it before using t() calls.
Ensure all translatable strings are literal strings passed to t() or other configured translation functions.
Consider pinning Rollup to version 3.x, or check plugin compatibility with Rollup 4.
Use plugins: [i18never({})] instead of plugins: [i18never]Install i18never: npm install i18never, and ensure it is imported in your source files.
Import and initialize i18never before using t(): import i18never from 'i18never'; i18never.init({locale: 'en', translations: ...});