{"id":26158,"library":"react-i18next-lint","title":"react-i18next-lint","description":"A CLI tool for validating translation keys in react-i18next projects. v1.3.1 (latest). It scans React views and language JSON files to detect missing keys, zombie keys, empty translations, and misprint keys using regex matching. Offers configurable severity levels (disable/warning/error), deep search, and auto-fix for zombie keys. Differentiators: focused solely on react-i18next, supports URL-based language files, and includes misprint detection. Alternatives like i18next-scanner focus on extraction rather than validation. Released under semantic versioning with monthly updates.","status":"active","version":"1.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/svoboda-rabstvo/react-i18next-lint","tags":["javascript","react-i18next","i18next","validator","linting","cli","react","linter","typescript"],"install":[{"cmd":"npm install react-i18next-lint","lang":"bash","label":"npm"},{"cmd":"yarn add react-i18next-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add react-i18next-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used for file pattern matching for project and language files","package":"glob","optional":false}],"imports":[{"note":"The package is a CLI tool, not a library. Use npx or install globally. No programmatic API is exported.","wrong":"react-i18next-lint -p ./src -l ./locales (without npx or global install)","symbol":"react-i18next-lint CLI","correct":"npx react-i18next-lint -p ./src -l ./locales"}],"quickstart":{"code":"npx react-i18next-lint -p \"./src/**/*.{jsx,tsx}\" -l \"./public/locales/**/*.json\" --kv error --zk warning --ek warning","lang":"javascript","description":"Scans JSX/TSX files in src and JSON translation files in public/locales, reports missing keys as errors, zombie and empty keys as warnings."},"warnings":[{"fix":"Use deep search only when necessary; consider narrowing the project glob pattern.","message":"The --ds (deepSearch) option can significantly increase execution time on large projects.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Adjust --mc (misprintCoefficient) to a lower value (e.g., 0.8) to reduce false positives.","message":"The --mk (misprintKeys) option may produce false positives with coefficient 0.9.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Explicitly set --kv warning if you want the old behavior.","message":"Default severity for keysOnViews changed from 'warning' to 'error' in v1.1.0.","severity":"breaking","affected_versions":">=1.1.0"},{"fix":"Use with caution; backup language files before auto-fix.","message":"The --fz (fixZombiesKeys) option is experimental and may be removed in future versions.","severity":"deprecated","affected_versions":">=1.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Verify the path to language files; use --l './public/locales/**/*.json' to match nested files.","cause":"The language glob pattern does not match any existing files.","error":"Error: ENOENT: no such file or directory, scandir './public/locales/en.json'"},{"fix":"Install glob globally or use a recent npm version (>=7) that auto-installs peer dependencies.","cause":"Missing dependency when running via npx with an older npm version.","error":"Error: Cannot find module 'glob'"},{"fix":"Ensure the glob pattern includes file extensions like .jsx, .tsx, .js, .ts. Example: -p './src/**/*.{jsx,tsx}'","cause":"The project glob pattern does not match any files with translation keys.","error":"Warning: No translation keys found in views. Check your --project glob pattern."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}