Laravel-JS-Localization
Laravel-JS-Localization copied to clipboard
Added autodetector feature
Adds option -a or --autodetect to the php artisan lang:js command.
The autodetector searches files given by glob's set in the js-localization.php config file for Lang.get() / Lang.has() / Lang.choice() etc. usages.
Also enables to use JSON strings directly as key in Lang functions.
Aka
Lang.get('Welcome to this website!')
instead of
Lang.get('strings.Welcome to this website!')