i18next-cleanup

    1.0.0 • Public • Published

    i18next-cleanup

    Find unused i18next translations in your JavaScript/TypeScript project

    Over time, it's easy to end up with many unused translations. While unused translations don't increase you'r projects bundle size, they are unnecessary clutter you have to deal with when updating translations.

    i18-next cleaner is a CLI tool for finding those translations so you can cleanup your translation config.

    Usage

    You can run i18next-cleanup with the following command

    npx i18next-cleanup

    It will find your i18-next configuration and read all the translation keys. Then it will try to find those translation keys in the source files of your project.

    i18next-cleanup will display the unused translation keys after finishing the analysis.

    How it works

    i18next-cleanup works by searching your project for the i18-next init call, and extracting the translation keys from the object passed to it.

    Limitations

    Install

    npm i i18next-cleanup

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    24.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar