Localization of new Woocommerce blocks

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

Hi @madjedo

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?

Hello @Nick-B , yes.

I have opened a ticket @ woocommerce-blocks github (LocalWP, cart block and widget failing to translate? · Issue #11368 · woocommerce/woocommerce-blocks · GitHub)

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)

My localwp setup:

PHP version: 8.1.23
Database: MySQL 8.0.16

Kind regards,


Hi @madjedo

Per your last here did the issue persist after the core update?

I will re-report if issue still persists after the core update. Thank you for your assistance.

Did you find a solution? I’m having the same issue using LocalWP, but when I create a site using Docker, everything works fine.

Spent ages trying to figure out the problem in WordPress, only to finally figure out, that it is a Local problem…

Hi, im glad someone was able to reporduce it atleast. Others have tried (see link to GitHub).

I have not found a solution yet. But some specific LocalWP setups must be affected then.

Hi @madjedo and @madjedo

If you want to provide some more details we can try taking a look from our end of things?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.