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

make-json created 0 files #136

Closed
woro83c opened this issue Jan 10, 2019 · 4 comments
Closed

make-json created 0 files #136

woro83c opened this issue Jan 10, 2019 · 4 comments
Labels
Milestone

Comments

@woro83c
Copy link

woro83c commented Jan 10, 2019

heya, i'm running the make-json command without any luck. within my /languages folder i have the following files:

my-plugin-en_AU.mo
my-plugin-en_AU.po
my-plugin.mo
my-plugin.pot

then when i run wp i18n make-json languages, i get the following:

Success: Created 0 files.
@swissspidy
Copy link
Member

This will happen if your PO file doesn‘t contain any strings coming from JavaScript files. Please verify if that is the case.

@woro83c
Copy link
Author

woro83c commented Jan 10, 2019

that removes the success message, but it still leaves me with:

Fatal error: Uncaught InvalidArgumentException: The language "en_AU" is not valid in phar:///usr/local/bin/wp/vendor/gettext/gettext/src/Translations.php:356

which has also been raised here:
swissspidy/gutenberg-i18n-block#6

thanks for your help!

@swissspidy
Copy link
Member

That‘s gonna be fixed by #133.

@woro83c
Copy link
Author

woro83c commented Jan 10, 2019

ah great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants