# Localization of new Woocommerce blocks

**URL:** <https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626>\
**Category:** Support\
**Created:** [October 19, 2023, 3:28pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626 "2023-10-19T15:28:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![madjedo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@madjedo](https://community.localwp.com/u/madjedo)\
**Post date:** [October 19, 2023, 3:28pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/1 "2023-10-19T15:28:03Z")

</div>

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](https://ibb.co/SQRj7M2)  
Link to screenshot 2: [cart-widget-language hosted at ImgBB — ImgBB](https://ibb.co/xsywpTP)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 26, 2023, 6:06pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/2 "2023-10-26T18:06:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![madjedo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@madjedo](https://community.localwp.com/u/madjedo)\
**Post date:** [October 29, 2023, 4:37pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/3 "2023-10-29T16:37:35Z")

</div>

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](https://github.com/woocommerce/woocommerce-blocks/issues/11368))

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  
nginx

Kind regards,

Madjedo!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 31, 2023, 3:21pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/4 "2023-10-31T15:21:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Halvorsen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/halvorsen/32/20441_2.png) [@Halvorsen](https://community.localwp.com/u/Halvorsen)\
**Post date:** [December 26, 2023, 10:56am UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/5 "2023-12-26T10:56:30Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![madjedo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@madjedo](https://community.localwp.com/u/madjedo)\
**Post date:** [December 26, 2023, 8:48pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/6 "2023-12-26T20:48:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [December 27, 2023, 2:24pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/7 "2023-12-27T14:24:54Z")

</div>

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](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/#download-local-logs)

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

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [March 26, 2024, 2:25pm UTC](https://community.localwp.com/t/localization-of-new-woocommerce-blocks/39626/8 "2024-03-26T14:25:30Z")

</div>

Closed on March 26, 2024, 2:25pm UTC

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