This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Translation of "Proceed to Checkout" button isn't working #5452
Labels
block: cart
Issues related to the cart block.
focus: i18n
The issue/PR is related to internationalization.
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: bug
The issue/PR concerns a confirmed bug.
Describe the bug
In #5112, we added missing lazy loaded translations files. In 4629379-zd-woothemes, a customer reported that the Norwegian translation of the "Proceed to Checkout" button isn't working.
I looked up this problem and found out that it’s caused by the following section:
https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/b56790a52c41730de4fba25bb1640b6a0d7c46c0/src/BlockTypes/Cart.php#L205-L218
Instead of
cart-blocks/checkout-button
, we’re currently referring tocart-blocks/checkout-button-frontend.js
. This leads to the fact that the translation of the "Proceed to Checkout" button does not get loaded.To reproduce
/wp-admin/options-general.php
and change the site language toNorsk bokmål
./wp-admin/update-core.php
and update the translations.Expected behavior
The translation of the "Proceed to Checkout" button should be visible.
Screenshots
Temporary fix
The following code snippet allows to temporarily fix this problem:
This code snippet can be added to a WordPress site using the Simple Custom CSS and JS plugin:
The text was updated successfully, but these errors were encountered: