-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add VueJS support to wp i18n make-pot #326
Comments
There's an open feature request to allow customizing the list of file extensions. Right now only Do you perhaps have an example |
Here is a sample
|
The command |
From what I can see this will probably require something similar to #304, involving the existing I currently have bandwidth to look into this myself, but any contribution in this area is more than welcome.
This is covered by #231 |
This is not specifically for wp-cli but if somebody wants a temporary solution, use the Loco Translate plugin to make a POT template, in the Loco plugin setting: "Scan JavaScript files with extensions:" use "ts Vue" This takes really long to create a POT file but it includes text, maybe you guys can take some help from Loco's source code. |
Your compiler must create bundled JS. So wp cli can scan bundled JS and extract pot and json file. I am using in vue and all works fine.
|
Thanks @bilalmalkoc , It is working. |
Add *.vue file support to
wp i18n make-pot
Is there any plan to add VueJS support to
wp i18n make-pot
? Right now it doesn’t add those strings to pot file which are in *.vueThe text was updated successfully, but these errors were encountered: