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:sort command is used to sort translation files by keys using the sorter specified in the configuration.
php artisan translations:sort [options]
--source: The source language for the translations to sort (default: 'en')--all: Sort all files found in the configured language folderThis command sorts the translation keys in the specified language file(s) using the sorting method defined in your configuration. It helps maintain a consistent order across your translation files, making them easier to manage and compare.
php artisan translations:sort
php artisan translations:sort --source=fr
php artisan translations:sort --all
The command will sort the specified translation file(s) and update them with the sorted keys.
How can I help you explore Laravel packages today?