Open Levdbas opened 1 year ago
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.
Thanks for alerting me to this!
Similarly, https://github.com/wp-cli/i18n-command/blob/main/src/ThemeJsonExtractor.php
wp-cli issues:
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.