A webpack plugin that automates i18next key collection and translation file management during webpack builds. Version 0.5.0 (stable, low release cadence) detects missing translation keys, saves them to specified paths, and copies translation resource files. Unlike other i18n webpack plugins, it integrates tightly with webpack's parsing phase and provides a config module for runtime setup. Requires webpack 5 as peer dependency. Ships TypeScript types.
npm install ya-i18next-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates plugin configuration and client-side usage with i18next and xhr-backend, including config module constants.
Ensure webpack@5 is installed (npm install webpack@5 --save-dev).
Use require('ya-i18next-webpack-plugin').default or use ES import.Import config with 'import * as i18nConf from "ya-i18next-webpack-plugin/config"'.
Consider using __webpack_public_path__ = ... or publicPath in output config.
Ensure i18next version is compatible with your client-side usage (e.g., i18next >= 20).
Use const i18nextPlugin = require('ya-i18next-webpack-plugin').default;Ensure the import path is exactly 'ya-i18next-webpack-plugin/config'.
npm install webpack@5 --save-dev
Ensure i18next is correctly initialized and the config module is imported before use.