amiranagram / localizator

Scan your Laravel project and generate language files ready to translate in language(s) of choosing.
Other
226 stars 28 forks source link

Delete a key that no longer exists #26

Closed danyderigon closed 1 year ago

danyderigon commented 2 years ago

Hello.

Is it possible that the extraction script automatically deletes the keys that no longer exist?

Example: A .blade.php file contained a string 'test'. This string doesn't exist anymore (it has been deleted from balde.php). Is it possible that it is automatically removed from the lang files so that we have a version that is always up to date and does not have a key that no longer exists?

amiranagram commented 2 years ago

Not currently, but It's a good feature that I can add, so we can have something like:

php artisan localize de,ru,es --remove-missing

Thanks for the suggestion.

danyderigon commented 2 years ago

Awesome, this would be a great feature !