What Issue or Error Are You Experiencing?
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.
Link to screenshot: cart-block-language hosted at ImgBB — ImgBB
Link to screenshot 2: cart-widget-language hosted at ImgBB — ImgBB