sepremex/laramissingkey is a Laravel package for manage language files with ease..
It currently has 0 GitHub stars and 0 downloads on Packagist (latest version 1.0.1).
Install it with composer require sepremex/laramissingkey.
Discover more Laravel packages by sepremex
or browse all Laravel packages to compare alternatives.
Last updated
Because sometimes... you just want your damn translation keys in place.
So... imagine working on a glorious Laravel app, multilingual AF, international ambitions, flags everywhere, buttons for French, Spanish, Martian, whatever.
Now imagine you're 42 routes deep, blade templates everywhere, controllers echoing __('Welcome') like gospel...
And then... you realize Laravel doesn't give a damn if you're missing keys.
Worse, those heroic packages that promise to find and sync them?
😐 Nah. We got fed up.
So, we did what any pissed-off dev does: we wrote our own package.
This thing runs:
php artisan lmissingkey:sync
And it does the following:
app/ and resources/views/ for translation keys like __('key') and @lang('key').json and .php grouped ones)/lang/{locale}.json file
auth.failed in the wrong placecomposer require sepremex/laramissingkey
php artisan lmissingkey:sync
Boom. Missing keys get written into the right files.
/lang/{locale}/*.php files (we're working on that)Because some of them were written in 2016...
...by developers who now work for Meta, or raise goats in the Alps, or just don’t reply to GitHub issues anymore.
So we said:
"Let’s do it ourselves. And do it better."
Brought to you by a highly caffeinated developer tired of missing __('Submit') for the 20th time.
Powered by rage, sarcasm, and love for clean code.
MIT. Fork it, break it, sell it to Elon, just don’t make it worse.