/django-translation-cleaner

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

Build Latest Release Go Report Card Go Reference

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

  1. Get the tool with go install github.com/jidicula/django-translation-cleaner@latest or grab a binary for your OS and arch here.

  2. Clean unused translations from a Django project:

django-translation-cleaner /path/to/repo
  1. 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!