Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-cleanup

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-cleanup

A CLI utility for removing unused translations from i18next files.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 15 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc