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?
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.
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?
The topic ‘[Closed] Cannot translate content in woocommerce blocks (eg mini-cart)’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.