diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 3ab4383bc..2c9feeebc 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1001,6 +1001,7 @@ "FEE": "Fee", "FILL_OR_KILL": "Fill Or Kill", "FILLS_EMPTY_STATE": "You have no fills.", + "FINAL_SETTLEMENT": "Final Settlement", "FULL_CLOSE": "Full close", "FUNDING_PAYMENTS_EMPTY_STATE": "You have no past funding payments.", "FUNDING_PAYMENTS_SHORT": "Funding", diff --git a/config/localization_notifications/en/app.json b/config/localization_notifications/en/app.json index f6799b95d..6695f6852 100644 --- a/config/localization_notifications/en/app.json +++ b/config/localization_notifications/en/app.json @@ -1,5 +1,17 @@ { "NOTIFICATIONS": { + "DELEVERAGED": { + "TITLE": "Position Deleveraged", + "BODY": "Your {SIDE} position on {MARKET} has been deleveraged." + }, + "FINAL_SETTLEMENT": { + "TITLE": "Position Settled", + "BODY": "{MARKET} has closed. Your {SIDE} position on {MARKET} has reached final settlement." + }, + "OFFSETTING": { + "TITLE": "Position Offsetting", + "BODY": "Your {SIDE} position on {MARKET} was used to offset a deleveraged position." + }, "ORDER_FILL": { "TITLE": "Order Filled", "BODY": "Your order to {SIDE} {AMOUNT} {MARKET} has been filled at ${AVERAGE_PRICE}." @@ -49,4 +61,4 @@ "BODY": "Your withdrawal of {AMOUNT} {ASSET} has been confirmed." } } -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 682d061b2..1d03c13c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.17", + "version": "1.0.18", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.0.17", + "version": "1.0.18", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index c7e2b9b12..7654a9b03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.0.17", + "version": "1.0.18", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 6f0a47e01..ddc822990 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -1,6 +1,6 @@ // !! GENERATED FILE - DO NOT EDIT -// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift +// Generated from ../config/localization/en/app.json using codegen_localization_app.swift export const APP_STRING_KEYS = { @@ -1216,6 +1216,7 @@ export const APP_STRING_KEYS = { FEE_PERCENT: 'APP.TRADE.FEE_PERCENT', FILLS_EMPTY_STATE: 'APP.TRADE.FILLS_EMPTY_STATE', FILL_OR_KILL: 'APP.TRADE.FILL_OR_KILL', + FINAL_SETTLEMENT: 'APP.TRADE.FINAL_SETTLEMENT', FULL_CLOSE: 'APP.TRADE.FULL_CLOSE', FUNDING_PAYMENTS: 'APP.TRADE.FUNDING_PAYMENTS', FUNDING_PAYMENTS_EMPTY_STATE: 'APP.TRADE.FUNDING_PAYMENTS_EMPTY_STATE', diff --git a/scripts/generated/notifications.ts b/scripts/generated/notifications.ts index 5369575b8..fba1a9846 100644 --- a/scripts/generated/notifications.ts +++ b/scripts/generated/notifications.ts @@ -3,12 +3,18 @@ // Generated from ../config/localization_notifications/en/app.json using ../config/localization_notifications/en/app.json export const NOTIFICATIONS_STRING_KEYS = { + DELEVERAGED_BODY: 'NOTIFICATIONS.DELEVERAGED.BODY', + DELEVERAGED_TITLE: 'NOTIFICATIONS.DELEVERAGED.TITLE', DEPOSIT_SUCCESS_BODY: 'NOTIFICATIONS.DEPOSIT_SUCCESS.BODY', DEPOSIT_SUCCESS_TITLE: 'NOTIFICATIONS.DEPOSIT_SUCCESS.TITLE', FAST_WITHDRAW_SUCCESS_BODY: 'NOTIFICATIONS.FAST_WITHDRAW_SUCCESS.BODY', FAST_WITHDRAW_SUCCESS_TITLE: 'NOTIFICATIONS.FAST_WITHDRAW_SUCCESS.TITLE', + FINAL_SETTLEMENT_BODY: 'NOTIFICATIONS.FINAL_SETTLEMENT.BODY', + FINAL_SETTLEMENT_TITLE: 'NOTIFICATIONS.FINAL_SETTLEMENT.TITLE', LIQUIDATION_BODY: 'NOTIFICATIONS.LIQUIDATION.BODY', LIQUIDATION_TITLE: 'NOTIFICATIONS.LIQUIDATION.TITLE', + OFFSETTING_BODY: 'NOTIFICATIONS.OFFSETTING.BODY', + OFFSETTING_TITLE: 'NOTIFICATIONS.OFFSETTING.TITLE', ORDER_CANCEL_BODY: 'NOTIFICATIONS.ORDER_CANCEL.BODY', ORDER_CANCEL_TITLE: 'NOTIFICATIONS.ORDER_CANCEL.TITLE', ORDER_CANCEL_WITH_PARTIAL_FILL_BODY: 'NOTIFICATIONS.ORDER_CANCEL_WITH_PARTIAL_FILL.BODY',