-
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
Use i18n schema for block.json from WordPress Core #287
Comments
Related question: Since https://schemas.wp.org/trunk/theme.json is now a thing apparently, any plans on making the the i18n schemas available there as well? |
Sure. It uses similar URL now: https://schemas.wp.org/trunk/block.json Wait, for i18n. Yes, that would be great 👍 |
Who could set up these URLs? |
I see the URL got updated by @mkaz in WordPress/gutenberg#36316, but I don't know who set them up. I can't see any reference in Meta WordPress Trac, too. |
@gziolo @swissspidy You can make the request on Systems blog. Here's the requests I made for the schemas: 💛 |
Feature Request
Describe your use case and the problem you are facing
BlockExtractor
is using a hardcoded list of fields to translate fromblock.json
file:i18n-command/src/BlockExtractor.php
Lines 46 to 66 in ea8a6b3
Describe the solution you'd like
Replicate the approach used for
ThemeJsonExtractor
that uses schema fortheme.json
located in WordPress core codebsase:i18n-command/src/ThemeJsonExtractor.php
Lines 106 to 125 in ea8a6b3
The schema for
block.json
is located at https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/block-i18n.json.The text was updated successfully, but these errors were encountered: