https://github.com/wp-cli/i18n-command/pull/405 introduced the ability to extract strings (title) from the property styles.blocks.variations of the theme.json — these were missing and detected during the beta period.
Later on, the feature received more feedback and the consensus was to remove the ability to register block style variations from theme.json. That together with some changes to the shape of the styles subtree, made https://github.com/wp-cli/i18n-command/pull/405 unnecessary, as there is no longer a title key to translate.
What
This PR reverts https://github.com/wp-cli/i18n-command/pull/405
Why
https://github.com/wp-cli/i18n-command/pull/405 introduced the ability to extract strings (
title
) from the propertystyles.blocks.variations
of thetheme.json
— these were missing and detected during the beta period.Later on, the feature received more feedback and the consensus was to remove the ability to register block style variations from
theme.json
. That together with some changes to the shape of thestyles
subtree, made https://github.com/wp-cli/i18n-command/pull/405 unnecessary, as there is no longer atitle
key to translate.How
Revert the changes introduced in #405
Test
Automated test should pass. They are now broken in
main
. See setup instructions at https://github.com/wp-cli/i18n-command/pull/405