Laravel-JS-Localization icon indicating copy to clipboard operation
Laravel-JS-Localization copied to clipboard

Added autodetector feature

Open TheNewSound opened this issue 4 years ago • 1 comments

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.

TheNewSound avatar Apr 13 '20 15:04 TheNewSound

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!')

TheNewSound avatar Apr 21 '20 04:04 TheNewSound