Skip to content

Commit

Permalink
add new event mapping and extract messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski committed Oct 4, 2024
1 parent 788b6b7 commit ea81f31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions locale/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2377,6 +2377,10 @@
"context": "no card defuned alert message",
"string": "You haven’t defined a gift card product!"
},
"E4GW+N": {
"context": "fully paid checkout automatically completed message",
"string": "Order created automatically from fully paid checkout"
},
"E54eoT": {
"string": "Creating the navigation structure is done by dragging and dropping. Simply create a new menu item and then drag it into its destined place. You can move items inside one another to create a tree structure and drag items up and down to create a hierarchy"
},
Expand Down Expand Up @@ -2762,6 +2766,10 @@
"context": "dialog header",
"string": "Delete Variant"
},
"GFkb2t": {
"context": "automatically complete checkouts checkbox label",
"string": "Automatically complete checkouts when fully paid"
},
"GJAX0z": {
"context": "order history message",
"string": "Order was placed"
Expand Down Expand Up @@ -6902,6 +6910,10 @@
"context": "product type name",
"string": "Type Name"
},
"hIh8bm": {
"context": "automatically complete checkouts checkbox description",
"string": "When enabled, checkouts detected as fully paid will be completed automatically, without checkoutComplete mutation. ({link})"
},
"hJDnLg": {
"context": "section header",
"string": "Upcoming Apps"
Expand Down
6 changes: 6 additions & 0 deletions src/orders/components/OrderHistory/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ export const getEventMessage = (event: OrderEventFragment, intl: IntlShape): str
defaultMessage: "Order was marked as paid",
description: "order history message",
});
case OrderEventsEnum.PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT:
return intl.formatMessage({
id: "E4GW+N",
defaultMessage: "Order created automatically from fully paid checkout",
description: "fully paid checkout automatically completed message",
});
case OrderEventsEnum.OTHER:
return event.message;
case OrderEventsEnum.OVERSOLD_ITEMS:
Expand Down

0 comments on commit ea81f31

Please sign in to comment.