I’m currently encountering an issue with my newly installed WordPress + WooCommerce setup, using a basic theme and configured for the Swedish language. Despite having all translations updated, I’ve noticed that when I utilize the cart block and cart widget, certain elements remain in English, failing to get translated as expected.
Replicating the Issue
To replicate the problem, you can follow these steps:
Begin by setting up a fresh WooCommerce site in a local WordPress environment.
Add the cart block to the cart page.
Proceed to the front-end, and add items to your cart.
Visit the cart page.
Background and Potential Solutions
It’s worth noting that I’ve already reached out to WooCommerce support regarding this issue. However, I have previously encountered a similar problem on another website I worked on. Strangely, the issue resolved itself when I later published the site from my local WordPress environment to a live host. After this transition, the cart block correctly displayed in the site’s chosen language.
It appears that there may be a specific issue related to the local WordPress environment that is preventing WooCommerce from fully translating the cart and checkout blocks. If anyone has encountered a similar problem or has insights into resolving this issue, your assistance would be greatly appreciated.
Have you done any caching troubleshooting to see if that is an issue? Essentially does the problem persist when checking the site in a different browser type, via incognito window, using a VPN, or a mobile LTE data hotspot, etc?
Someone refered to that it is because woo core has still not had updated strings yet. But I suspect something else is at play here. Because like I said the issue resolved when uploading to live.
If you can assist me by maybe replicating the issue and reporting to the github:
Begin by setting up a fresh WooCommerce site in a localWP environment.
Add the cart block to the cart page.
Change site language from English to Swedish (or any other language).
Proceed to the front-end, and add items to your cart.
Visit the cart page.
(Later you can try installing woocomerce blocks and see if the issue resolves)