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

block.json and theme.json translation WordPress #797

Open
Levdbas opened this issue Jun 21, 2023 · 2 comments
Open

block.json and theme.json translation WordPress #797

Levdbas opened this issue Jun 21, 2023 · 2 comments

Comments

@Levdbas
Copy link

Levdbas commented Jun 21, 2023

I am working with block.json files in WordPress. This is a preview on how such a block looks like: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/

It seems that poedit is not able to extract this kind of block data. In wp-cli there is a option to extract these strings though.

See: https://github.com/wp-cli/i18n-command/blob/main/src/BlockExtractor.php and https://github.com/wp-cli/i18n-command/blob/main/src/JsonSchemaExtractor.php

It would be nice if Poedit supported the discovering of these kind of strings as well.

@vslavik
Copy link
Owner

vslavik commented Jun 21, 2023

Thanks for alerting me to this!

@vslavik vslavik changed the title [feature] block.json translation WordPress [feature] block.json and theme.json translation WordPress Jul 19, 2023
@vslavik vslavik changed the title [feature] block.json and theme.json translation WordPress block.json and theme.json translation WordPress Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants