ESLint plugin providing rules to enforce internationalization (i18n) in React applications, with primary support for i18next. Current stable version is 1.0.3 (released December 2019). The plugin includes rules such as 'no-dynamic-translation-keys' and 'no-missing-interpolation-keys' to catch common i18n mistakes. It is designed to be framework-agnostic but focuses on i18next, with openness to PRs for other frameworks. The package is maintained by lolatravel and has a low release cadence (no updates since 2019). Differentiator: focused solely on React i18n enforcement, unlike more general i18n linting tools.
npm install eslint-plugin-react-i18nVerified import paths — ran on the pinned version, not inferred.
Setup ESLint with react-i18n plugin and recommended config, plus example of rule enforcement.
Consider alternative plugins like eslint-plugin-i18next or custom rules for newer ESLint versions.
If using ESLint 7+, test thoroughly; may need to update plugin or use older ESLint (6.x).
Use plugin with i18next or contribute PR for other libraries.
Manually verify interpolation keys if using complex translation files.
Use ESLint 6.x or lower, or find a maintained fork.
Run npm install eslint-plugin-react-i18n --save-dev
Add 'plugins: ["react-i18n"]' to .eslintrc config.
Run npm install eslint --save-dev
Create an .eslintrc file (JSON, YAML, JS) and configure the plugin.