From 2c3383bdd6ef04b3120f7290d698bf01b7111f5b Mon Sep 17 00:00:00 2001 From: John Huang Date: Tue, 24 Oct 2023 10:43:36 -0700 Subject: [PATCH] Will have a different notification if totalFilled is not 0.0 (#123) --- config/localization_notifications/en/app.json | 4 ++++ package.json | 2 +- scripts/generated/notifications.ts | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/localization_notifications/en/app.json b/config/localization_notifications/en/app.json index 3772448f2..d4d111c64 100644 --- a/config/localization_notifications/en/app.json +++ b/config/localization_notifications/en/app.json @@ -16,6 +16,10 @@ "TITLE": "Order Canceled", "BODY": "Your order to {SIDE} {AMOUNT} {MARKET} has been canceled." }, + "ORDER_CANCEL_WITH_PARTIAL_FILL": { + "TITLE": "Order Canceled with Partial Fill", + "BODY": "Your order to {SIDE} {AMOUNT} {MARKET} has been canceled with {TOTAL_FILLED} partially filled." + }, "LIQUIDATION": { "TITLE": "Position Liquidated", "BODY": "Your {SIDE} position on {MARKET} has been liquidated." diff --git a/package.json b/package.json index 7f9100161..336785d8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "0.1.35", + "version": "0.1.36", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/notifications.ts b/scripts/generated/notifications.ts index 63b050951..34664e583 100644 --- a/scripts/generated/notifications.ts +++ b/scripts/generated/notifications.ts @@ -14,6 +14,8 @@ export const NOTIFICATIONS_STRING_KEYS = { LIQUIDATION_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.LIQUIDATION.TITLE', ORDER_CANCEL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL.BODY', ORDER_CANCEL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL.TITLE', + ORDER_CANCEL_WITH_PARTIAL_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL_WITH_PARTIAL_FILL.BODY', + ORDER_CANCEL_WITH_PARTIAL_FILL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_CANCEL_WITH_PARTIAL_FILL.TITLE', ORDER_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_FILL.BODY', ORDER_FILL_TITLE: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_FILL.TITLE', ORDER_PARTIAL_FILL_BODY: 'NOTIFICATIONS.NOTIFICATIONS.ORDER_PARTIAL_FILL.BODY',