-
Notifications
You must be signed in to change notification settings - Fork 220
Product button: Fix 'In cart' button localization. #7504
Conversation
Fixes #7494. Co-authored-by: Niels Lange <[email protected]>
The release ZIP for this PR is accessible via:
|
Size Change: 0 B Total Size: 993 kB ℹ️ View Unchanged
|
Tagging @gigitux here. The change to return It seems this change could cause a cycle of back-and-forth reversions, so maybe @gigitux can clarify why that change was required and how can we restore l12n without undoing support for Product Query. |
Thanks @sunyatasattva, for tagging me! I made that change because when this block is used in the PQ, we generate the markup on the server side, so it isn't necessary to load JS assets. But if we break custom translations, we have to find another solution. We are using this approach for all atomic blocks :/ |
Well, many atomic blocks don't use translations, right? Like Product Image. But we need to be aware of those which do. Do you suggest to merge this PR and create an issue on the Product Query epic to figure out an alternative solution? I think it's more important to fix the breaking translations now and merge this, as our work on the PQ is not public yet. What do you think? |
@sunyatasattva It makes sense. We can investigate this issue in the following weeks 👍 I will open an issue about this! |
Fixes woocommerce#7494. Co-authored-by: Niels Lange <[email protected]>
To ensure no JS for product elements inside Product Query block is loaded.
Fixes the issue with the "x in cart" text not translating within the All products block.
Fixes #7494.
Co-authored-by: Niels Lange [email protected]
Screenshots
Testing
%d in cart
within the WooCommerce core plugin language files.Automated Tests
User Facing Testing
Same as the above.
WooCommerce Visibility
Changelog