Skip to content

Order Cancellation Modal Title Missing Translation #40098

@wiktorkoscielny

Description

@wiktorkoscielny

Preconditions and environment

  • 2.4.7-p5, also checked in the code of the newest one - 2.4.9-alpha1

Steps to reproduce

  1. Create an account and log in.
  2. Place an order using a payment method that allows order cancellation.
  3. Go to the "My Orders" tab in the customer account area.
  4. Click the "Cancel Order" button for an eligible order.
  5. Observe that the Order Cancellation modal displays a title that is not translated (hardcoded as "Cancel Order" instead of using a translation function).

Expected result

There is a possibility to translate the modal title

Actual result

The modal title uses a hardcoded string instead of a translation function

Additional information

File and code location: magento/module-order-cancellation-ui/view/frontend/web/js/cancel-order-modal.js
Suggest the fix: Replace title: 'Cancel Order' with title: $.mage.__('Cancel Order')

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: AccountComponent: SalesIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.7-p5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions