Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Copyright (c) 2026, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import {defineMessages} from 'react-intl'

export const messages = defineMessages({
title: {
defaultMessage: 'Return items from order #{orderNo}',
id: 'return_items_modal.heading.return_items'
},
subhead: {
defaultMessage: 'Select the items you want to return and tell us why.',
id: 'return_items_modal.text.select_items_description'
},
availableToReturn: {
defaultMessage: 'Up to {count, plural, one {# unit} other {# units}} available to return',
id: 'return_items_modal.text.available_to_return'
},
quantityLabel: {
defaultMessage: 'Quantity',
id: 'return_items_modal.label.quantity'
},
reasonLabel: {
defaultMessage: 'Reason',
id: 'return_items_modal.label.reason'
},
reasonFor: {
defaultMessage: 'Reason for {name}',
id: 'return_items_modal.label.reason_for'
},
selectReasonPlaceholder: {
defaultMessage: 'Select a reason',
id: 'return_items_modal.placeholder.select_reason'
},
cancelButton: {
defaultMessage: 'Cancel',
id: 'return_items_modal.button.cancel'
},
reviewButton: {
defaultMessage: 'Review return',
id: 'return_items_modal.button.review_return'
},
reviewDisabledHint: {
defaultMessage: 'Select at least one item and choose a reason to continue.',
id: 'return_items_modal.hint.review_disabled'
},
loadingReasons: {
defaultMessage: 'Loading return reasons…',
id: 'return_items_modal.text.loading_reasons'
},
reasonsError: {
defaultMessage: 'We could not load the return reasons. Please try again.',
id: 'return_items_modal.text.reasons_error'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sf-jie-dai Did you get messages for various error scenarios from Sab or are we supposed to show a default message for all errors?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a W-22821839 especially for error states but I could ask Sab now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reached out here

but an error related to SCAPI. I think a generic one should be okay since it shouldn't happen often

},
retryButton: {
defaultMessage: 'Retry',
id: 'return_items_modal.button.retry'
},
itemCheckboxLabel: {
defaultMessage: '{name}, {count, plural, one {# unit} other {# units}} available to return',
id: 'return_items_modal.label.item_checkbox'
}
})
Loading
Loading