#StackBounty: #magento2 #magento2.4 #localisation #magento2.4.1 Bug in translation add to cart: translation resets to default value aft…

Bounty: 50

I experience a problem on a Magento 2.4.1 store.

The problem: the Add to cart button on the product page is translated correctly on initial load. This is in Dutch in my case: "In Winkelwagen". After clicking the button it changes to untranslated text "Adding…" and then "Added" and finally it changes to "Add to Cart" so it resets from Dutch to English when using the add to cart button.

This only happens in production mode. In developer mode the several translations work as expected.

I did some research I found similar issues but those are dated.


  • Is this a known bug for this version? (M2.4.1)
  • How can I fix it?

Get this bounty!!!

#StackBounty: #php #magento-1 #localisation #slider #hreflang Product names are randomly translated in Magento widget

Bounty: 50

I’ve implemented a custom product slider in my Magento store. Sometimes the product titles in the slider are in English instead of Dutch on the Dutch storeview.

When I empty the cache everything works normal (titles back to Dutch) for about 1-2 hours and then after a period of time, the product titles go back to English.

This is the code that is used for the product collection in the sliders:

protected function _getProductCollection()
    $productCollection = null;

    $category = $this->getCategory();
    if ($this->getCategory() != null && $category->getId()) {
        $productCollection = $category->getProductCollection()



    return $productCollection;

Sidenote: We’ve recently implemented a hreflang module in our store. After this implementation, the problems seem to have started.

Get this bounty!!!