i18n-usage-report
v1.0.3
Published
find usage of translations and not used values
Downloads
8
Readme
i18n-usage-report
find usage of translations and not used values
Arguments:
-P for project path
-T for translation file path
-S if single quotes are used in code
Env variables
PROJECT_PATH for project path
TRANSLATION_PATH for translation file path
SINGLE_QUOTE if single quotes are used in code
Usage example
npm install i18n-usage-report
node ./node_modules/i18n-usage-report -P ./src -T ./src/locales/en.json
or
npx i18n-usage-report -P ./src -T ./src/locales/en.json
Script will get keys from translation file, check usage of these keys in project files and report unused keys.