bottelet/translation-checker
Laravel dev tool to scan your code for translation strings, detect missing keys in lang files (JSON/PHP), and sync them across locales. Optionally use AI to auto-translate missing entries; otherwise adds null placeholders to keep files consistent.
The translations:clean command is used to clean translations by removing unused keys from the source language file.
php artisan translations:clean [options]
--source: The source language for the translations to clean (default: 'en')--print: Print the cleaned translations to the console, instead of updating the fileThis command removes unused translation keys from the specified source language file. It compares the keys in the source file with those actually used in your project and removes any that are not in use.
php artisan translations:clean
php artisan translations:clean --source=fr --print
php artisan translations:clean --source=de
The command will either update the source language file, removing unused keys, or print the cleaned translations to the console, depending on the options used.
How can I help you explore Laravel packages today?