How to translate promotions?

Created on 24 January 2024, 10 months ago
Updated 17 February 2024, 9 months ago

I have already enabled translation for Promotions from /admin/config/regional/content-language.
I have created the respective translation for one promotion.

When I do a checkout, view cart or look at the sidebar summary, the discount label is not being translated. All I see is the same label even after switching languages.
I have notices that they come from {{ adjustment.label }} in web/modules/contrib/commerce/modules/order/templates/commerce-order-total-summary.html.twig . The only way I've found is to add a |t but that's only adding the string into the User interface translation.

Is there some additional cofiguration that is necessary?

💬 Support request
Status

Fixed

Version

2.0

Component

Documentation

Created by

🇪🇸Spain uridrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024