Skip to content

Conversation

@TheNewSound
Copy link

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 TheNewSound changed the title Added autodetecter feature Added autodetector feature Apr 13, 2020
@TheNewSound
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant