Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added autodetector feature #147

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant