Skip to content

wlycdgr/i18n-janitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18n-janitor

A CLI tool for identifying and removing unused localization tokens in browser extensions that use the Chrome i18n localization file format. Originally created to help maintain the Ghostery browser extension.

Note: this simple tool does literal string comparison to identify unused tokens and will not work as expected if you dynamically generate/assemble i18n token names in your code. Treat the tool's findings as a starting point and confirm/edit them by hand before running the purge operation.

You'll need to have

  • Node 10.10+
  • Yarn

Instructions

  1. Install with yarn global add i18n-janitor
  2. cd into the root of the target project directory
  3. Run i18n-janitor and follow the CLI prompts

To uninstall, run yarn global remove i18n-janitor

About

A CLI tool to find and purge unused i18n tokens. https://www.npmjs.com/package/i18n-janitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published