Skip to content Skip to sidebar

Resolved

Reported for: WPML Multilingual & Multicurrency for WooCommerce 5.3.8

Resolved in: WPML 4.9.0

Topic Tags: Bug

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 is particularly visible in languages where WooCommerce native translations are incomplete.
It occurs because WooCommerce blocks rely on JavaScript translation files (.json files), which are not fully translatable through WPML String Translation.

Workaround

Since WPML 4.9.0, you can scan JavaScript strings after activating the Detect strings in JavaScript files feature. Then, you can translate them in “Other strings” section of the Translation Management Dashboard.

 

7 Responses to “WPML Multilingual & Multicurrency for WooCommerce - Cart Page Strings Not Translated When Using Blocks”

  1. 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!

    • Hi Morten,

      Thanks for reaching out! This feature requires some time to implement because it involves supporting the scanning and translation of strings from JavaScript files. The good news is that this isn’t just for WooCommerce blocks; it will benefit any plugin using strings in JS, improving overall translation capabilities.

      It will be implemented in later versions after the 4.7 release but we can’t provide an ETA at this moment. We appreciate your patience and will keep this erratum updated!

  2. Is there a solution yet? The shortcodes are breaking my design. In backend everything is translated well, but in frontend it’s not.

    • Hi there,

      Translating strings from JavaScript files is still in development. In the meantime, please open a ticket on the support forum, and we’ll be happy to help you implement a workaround.