Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Kor 1 year, 7 months ago.

Assisted by: Kor.

Author Posts
October 16, 2023 at 11:08 pm #14589139

davidA-29

I cannot find the strings to translate in the Woo mini cart. I've searched woocommerce for strings, then when I go to String Translation I cannot find these strings, for example "Shipping, taxes, and discounts calculated at checkout" returns 0 results.

When I search the server's filesystem I find this string in
plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents.js
plugins/woocommerce/packages/woocommerce-blocks/assets/js/blocks/mini-cart/mini-cart-contents

And other similar locations. So, how can I use WPML to translate strings in woocommerce blocks that are rendered using JS like this?

Screenshot 2023-10-17 at 12.04.37.png
October 18, 2023 at 6:24 am #14599317

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

October 19, 2023 at 8:57 pm #14619323

davidA-29

Hi there, I cannot give access to our server or database. Can you please explain how we should search for strings in JS-rendered blocks? Can you confirm if this is supported by WPML and should happen when scanning WooCommerce for strings?

October 20, 2023 at 7:56 am #14621283

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Yes, scanning the plugin as explained here should reveal the strings that you need to translate. https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ . Have you given it a try?

The topic ‘[Closed] Cannot translate content in woocommerce blocks (eg mini-cart)’ is closed to new replies.