django-translation-cleaner
Command django-translation-cleaner is a tool for cleaning unused translations from .po files in a Django project. django-translation-cleaner returns a zero exit code when no unused translations are found, and a non-zero exit code when there are unused translations.
Do you find this useful?
Star this repo!
Do you find this really useful?
You can sponsor me here!
Usage
-
Get the tool with
go install github.com/jidicula/django-translation-cleaner@latest
or grab a binary for your OS and arch here. -
Clean unused translations from a Django project:
django-translation-cleaner /path/to/repo
- Check for unused translations in a Django project. If there are any unused translations, prints them to stdout and returns non-zero exit code:
django-translation-cleaner --check /path/to/repo
GitHub Action
Coming soon!