From 9e4d611813e8b0afae5812bce02a61d69484c40e Mon Sep 17 00:00:00 2001 From: moo-onthelawn <70078372+moo-onthelawn@users.noreply.github.com> Date: Thu, 29 Aug 2024 02:19:28 +0900 Subject: [PATCH] localization strings for market wind down + update collateral language (#672) * added * version bump * english god --- config/localization/en/app.json | 2 +- config/localization_notifications/en/app.json | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- scripts/generated/notifications.ts | 4 ++++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 225673b24..45a509afd 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -2292,7 +2292,7 @@ "WOULD_NOT_REDUCE_UNCHECK": "Your position would not be reduced with this order. Please uncheck Reduce-Only if you would like to place your order.", "INVALID_GOOD_TIL_MAX_90_DAYS": "Good Til exceeds the maximum 90 days.", "POSITION_LEVERAGE_OVER_MAX": "Resulting position leverage would be over the maximum leverage for this market.", - "ISOLATED_MARGIN_LIMIT_ORDER_BELOW_MINIMUM": "This limit order is below the minimum order size of {MIN_VALUE}." + "ISOLATED_MARGIN_LIMIT_ORDER_BELOW_MINIMUM": "Your order is below the minimum collateral requirement for isolated margin orders. Isolated margin orders require at least {MIN_VALUE} of collateral." }, "TRADE_BOX_TITLE": { "AMOUNT_INPUT_STEP_SIZE": "Step size", diff --git a/config/localization_notifications/en/app.json b/config/localization_notifications/en/app.json index 689b8e517..eafb6358f 100644 --- a/config/localization_notifications/en/app.json +++ b/config/localization_notifications/en/app.json @@ -173,6 +173,14 @@ "TITLE": "$20K giveaway", "BODY": "To celebrate surpassing 200B in cumulative trading volume, dYdX is running a Twitter giveaway, where you have the opportunity to claim $200. 100 winners will be selected based on a random selection mechanism after August 16, 2024, 23:59 UTC {HERE_LINK}." }, + "MARKET_WIND_DOWN": { + "TITLE": "{MARKET} market wound down", + "BODY": "On {DATE}, the {MARKET} market went through final settlement. Existing positions have been closed and open orders have now been canceled. You can find more information regarding the final settlement {HERE_LINK}." + }, + "MARKET_WIND_DOWN_PROPOSAL": { + "TITLE": "Live proposal to wind down {MARKET} market", + "BODY": "There is currently a live proposal to wind down the {MARKET} market. If passed, the {MARKET} market will enter final settlement on {DATE}. Existing positions will be closed and open orders will be canceled. You can find more information regarding the proposal {HERE_LINK}." + }, "TWO_MARKET_WIND_DOWN": { "TITLE": "{MARKET_1} and {MARKET_2} markets wound down", "BODY": "On {DATE}, the {MARKET_1} and {MARKET_2} markets went through final settlement. Existing positions have been closed and open orders have now been canceled. You can find more information regarding the final settlement {HERE_LINK}." diff --git a/package-lock.json b/package-lock.json index 8eeeb3af0..6051084a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.184", + "version": "1.1.185", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.1.184", + "version": "1.1.185", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index e16812d0b..ceb708da1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.184", + "version": "1.1.185", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/notifications.ts b/scripts/generated/notifications.ts index f3b77f781..f9599ad9d 100644 --- a/scripts/generated/notifications.ts +++ b/scripts/generated/notifications.ts @@ -29,6 +29,10 @@ export const NOTIFICATIONS_STRING_KEYS = { LIQUIDATION_TITLE: 'NOTIFICATIONS.LIQUIDATION.TITLE', MARKET_PARAM_UPDATE_BODY: 'NOTIFICATIONS.MARKET_PARAM_UPDATE.BODY', MARKET_PARAM_UPDATE_TITLE: 'NOTIFICATIONS.MARKET_PARAM_UPDATE.TITLE', + MARKET_WIND_DOWN_BODY: 'NOTIFICATIONS.MARKET_WIND_DOWN.BODY', + MARKET_WIND_DOWN_TITLE: 'NOTIFICATIONS.MARKET_WIND_DOWN.TITLE', + MARKET_WIND_DOWN_PROPOSAL_BODY: 'NOTIFICATIONS.MARKET_WIND_DOWN_PROPOSAL.BODY', + MARKET_WIND_DOWN_PROPOSAL_TITLE: 'NOTIFICATIONS.MARKET_WIND_DOWN_PROPOSAL.TITLE', OFFSETTING_BODY: 'NOTIFICATIONS.OFFSETTING.BODY', OFFSETTING_TITLE: 'NOTIFICATIONS.OFFSETTING.TITLE', ORDER_CANCEL_BODY: 'NOTIFICATIONS.ORDER_CANCEL.BODY',