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

VueJS extractor. Include "v-on:" attribute when extracting messages. #184

Merged
merged 3 commits into from
May 31, 2018
Merged

Conversation

briedis
Copy link
Contributor

@briedis briedis commented May 29, 2018

"v-on:.." attribute was skipped previously, but it can contain translations, this fixes it.

@oscarotero
Copy link
Member

A better option could be set an option defining the attribute prefixes used. For example:

$prefixes = [':', 'v-on:', 'v-bind:'];

This allows to extend or customize the extractor without modify the class.

@briedis
Copy link
Contributor Author

briedis commented May 30, 2018

@oscarotero Refactored

@oscarotero oscarotero merged commit 3c5b135 into php-gettext:master May 31, 2018
@oscarotero
Copy link
Member

thanks!

@briedis briedis deleted the vuejs-fix branch June 5, 2018 20:48
icebird93 pushed a commit to icebird93/Gettext that referenced this pull request Jun 18, 2018
…hp-gettext#184)

* VueJS extractor. Include "v-on:" attribute when extracting messages.

* Fix phpspec error

* Allow VueJs template attribute prefixes to be passed through options.
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.

2 participants