Merge pull request #24696 from woocommerce/fix/i18n-replacement-for-blocks
Fix missing translations for WooCommerce Blocks
This commit is contained in:
commit
da5bbe26c6
|
@ -29,7 +29,7 @@ output 2 "Done"
|
|||
output 3 "Updating package textdomains..."
|
||||
|
||||
# Replace text domains within packages with woocommerce
|
||||
find ./packages/woocommerce-blocks -iname '*.php' -exec sed -i.bak -e "s/, 'woo-gutenberg-products-block'/, 'woocommerce'/g" {} \;
|
||||
find ./packages/woocommerce-blocks \( -iname '*.php' -o -iname '*.js' \) -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/'woocommerce'/g" {} \;
|
||||
find ./packages/woocommerce-rest-api -iname '*.php' -exec sed -i.bak -e "s/, 'woocommerce-rest-api'/, 'woocommerce'/g" {} \;
|
||||
|
||||
# Cleanup backup files
|
||||
|
|
Loading…
Reference in New Issue