Open
Reported for: WooCommerce Multilingual & Multicurrency 5.3.8
Overview of the issue
When using WooCommerce blocks for the Cart and Checkout pages, certain strings like “Proceed to checkout” are not translated on the frontend for some languages. This issue occurs because WooCommerce blocks rely on JavaScript translation files (.json
files), which are not fully translatable through WPML String Translation.
Workaround
To bypass this issue, use WooCommerce shortcodes instead of blocks for the Cart and Checkout pages.
- Edit the Cart and Checkout pages in WordPress.
- Replace the WooCommerce blocks with the following shortcodes:
- Cart Page:
woocommerce_cart
- Checkout Page:
woocommerce_checkout
- Cart Page:
- Save the changes.
- Go to WPML > String Translation page, and scan the
.mo
files for WooCommerce. - Translate the strings as needed.
Thanks that was the issue! I managed to replace them with shortcodes and then the translations worked just fine. Thank you so much for you prompt support on the matter!
That’s great! Thanks for the feedback 🙂