Merge pull request #24696 from woocommerce/fix/i18n-replacement-for-blocks

Fix missing translations for WooCommerce Blocks
This commit is contained in:
Gerhard Potgieter 2019-09-30 15:00:00 +02:00 committed by GitHub
commit da5bbe26c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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