C

i18n/remove-unused-translations

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod removes unused i18n translations.

Example

This codemod supports removing several i18n unused translation patterns. The example below shows only one of the cases that might occur. For an exhaustive list of the supported patterns, please refer to the codemod's test.ts file.

Before:

jsx

After:

jsx

Ready to contribute?

Build your own codemod and share it with the community.