A Rollup plugin that imports PO (gettext) files as i18next-compatible JSON objects, enabling seamless integration of i18next translation workflows into your build. Version 10.0.0 requires Node >=20 and supports Rollup 2/3/4 and i18next-conv >=14. Released about every 6 months with breaking changes tied to Node EOL. Differentiators: deterministic locale extraction from file paths, customizable include/exclude patterns, and passthrough of all i18next-conv options. Unlike alternatives, it focuses exclusively on PO file conversion with zero runtime overhead.
npm install rollup-plugin-i18next-convVerified import paths — ran on the pinned version, not inferred.
Configures i18next-conv Rollup plugin to import PO files from locale directories, with custom locale detection and key separator.
Upgrade Node.js to version 20 or later.
Use import statements or dynamic import() instead of require().
Update i18next-conv to version 14 or higher.
Check that your Rollup version is ^2.0.0, ^3.0.0, or ^4.0.0.
Migrate to Rollup 3 or 4.
Override determineLocale function if your folder structure differs.
Run `npm install --save-dev rollup-plugin-i18next-conv` and ensure package.json includes it.
Change to `import i18next from 'rollup-plugin-i18next-conv'`.
Run `npm install --save-dev i18next-conv`.
Switch to import syntax or use dynamic import().