-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Yuki edited this page Jul 9, 2026
·
1 revision
Error:
i18n-smell-detector: Config file not found: /path/to/i18n-smell.config.mjsCause:
The package is installed, but no config file exists at the path passed to --config.
Fix:
npx i18n-smell-detector init
npx i18n-smell-detector check --config i18n-smell.config.mjs --fail-on noneIf the config is elsewhere:
npx i18n-smell-detector check --config ./config/i18n-smell.config.mjsCheck that every locales path points to a real JSON file. Paths are resolved relative to the config file.
Check source globs:
export default {
source: [
'src/**/*.{vue,js,jsx,ts,tsx}'
]
};Generated files can be excluded with:
export default {
hardcoded: {
ignoreFiles: ['src/generated/**']
}
};Start in reporting mode:
npx i18n-smell-detector check --fail-on noneThen tune:
allowIdenticalKeysallowIdenticalValueshardcoded.ignoreValueshardcoded.ignorePatternshardcoded.ignoreFilesbaseline
Use key or value allowlists:
export default {
allowIdenticalKeys: ['brand.*'],
allowIdenticalValues: ['ExampleApp']
};Create a baseline first:
npx i18n-smell-detector check --baseline .i18n-smell-baseline.json --update-baselineThen run CI with that baseline:
npx i18n-smell-detector check --baseline .i18n-smell-baseline.json --fail-on high