From 2f5d4c968f28abcbcbcc436ee44f9fd4c3b1618f Mon Sep 17 00:00:00 2001 From: mulan xia Date: Wed, 24 Jul 2024 11:18:07 -0400 Subject: [PATCH 1/5] add strings --- config/localization/en/app.json | 3 +++ scripts/generated/app.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index c77207483..d50142fc4 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1326,6 +1326,9 @@ "NEXT_IN": "Next in {TIME}", "NOTIONAL_VALUE": "Notional Value", "OFFSETTING": "Offsetting", + "OHLC": "OHLC", + "OHLC_VIA_MID_PRICE": "OHLC (via mid-price)", + "OHLC_TOOLTIP": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook", "OPEN_INTEREST": "Open Interest", "OPEN_POSITIONS": "Open Positions", "OPEN_STATUS": "Open", diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 650f3738e..93b245410 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 = { @@ -1479,6 +1479,9 @@ export const APP_STRING_KEYS = { NEXT_IN: 'APP.TRADE.NEXT_IN', NOTIONAL_VALUE: 'APP.TRADE.NOTIONAL_VALUE', OFFSETTING: 'APP.TRADE.OFFSETTING', + OHLC: 'APP.TRADE.OHLC', + OHLC_TOOLTIP: 'APP.TRADE.OHLC_TOOLTIP', + OHLC_VIA_MID_PRICE: 'APP.TRADE.OHLC_VIA_MID_PRICE', OPEN_INTEREST: 'APP.TRADE.OPEN_INTEREST', OPEN_POSITIONS: 'APP.TRADE.OPEN_POSITIONS', OPEN_STATUS: 'APP.TRADE.OPEN_STATUS', From 11419b11de47feaca4b6a3f85e36ba7d76478f6f Mon Sep 17 00:00:00 2001 From: mulan xia Date: Wed, 24 Jul 2024 11:18:23 -0400 Subject: [PATCH 2/5] 1.1.163 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 167ec0cc4..8c2ca7010 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.162", + "version": "1.1.163", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "1.1.162", + "version": "1.1.163", "license": "AGPL-3.0", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 331472a60..69583c0bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "1.1.162", + "version": "1.1.163", "description": "v4 localization", "main": "index.ts", "scripts": { From d4ee55e67e43d63d347cf5c891d0a2362dba5461 Mon Sep 17 00:00:00 2001 From: mulan xia Date: Wed, 24 Jul 2024 11:35:31 -0400 Subject: [PATCH 3/5] period --- config/localization/en/app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index d50142fc4..ee3425ec0 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1328,7 +1328,7 @@ "OFFSETTING": "Offsetting", "OHLC": "OHLC", "OHLC_VIA_MID_PRICE": "OHLC (via mid-price)", - "OHLC_TOOLTIP": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook", + "OHLC_TOOLTIP": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook.", "OPEN_INTEREST": "Open Interest", "OPEN_POSITIONS": "Open Positions", "OPEN_STATUS": "Open", From ee78f33cc3fb76bb13feb41a56173ea8e22adc10 Mon Sep 17 00:00:00 2001 From: mulan xia Date: Wed, 24 Jul 2024 11:57:58 -0400 Subject: [PATCH 4/5] tooltips --- config/localization/en/app.json | 2 -- config/localization/en/tooltips.json | 8 +++++++- scripts/generated/app.ts | 2 -- scripts/generated/tooltips.ts | 5 +++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index ee3425ec0..68c7ebcdf 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1326,9 +1326,7 @@ "NEXT_IN": "Next in {TIME}", "NOTIONAL_VALUE": "Notional Value", "OFFSETTING": "Offsetting", - "OHLC": "OHLC", "OHLC_VIA_MID_PRICE": "OHLC (via mid-price)", - "OHLC_TOOLTIP": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook.", "OPEN_INTEREST": "Open Interest", "OPEN_POSITIONS": "Open Positions", "OPEN_STATUS": "Open", diff --git a/config/localization/en/tooltips.json b/config/localization/en/tooltips.json index 61ed5c6b9..246170fd4 100644 --- a/config/localization/en/tooltips.json +++ b/config/localization/en/tooltips.json @@ -353,10 +353,16 @@ "BODY": "To ensure the security of the protocol, dYdX Chain validators delay the settlement of dYdX Chain DYDX." } }, + "TRADE_CHART": { + "OHLC": { + "TITLE": "OHLC", + "BODY": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook." + } + }, "NEW_MARKET_WIDGET": { "REFERENCE_PRICE": { "TITLE": "Reference Price", "BODY": "The Reference Price is the rolling 30 day average of the market's price and is used as an input to automatically calculate the market's parameters on dYdX Chain. The Reference Price should approximately be the same as the market's current price (i.e. round down to the same powers of 10)." } - } + }, } diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 93b245410..40f896ede 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -1479,8 +1479,6 @@ export const APP_STRING_KEYS = { NEXT_IN: 'APP.TRADE.NEXT_IN', NOTIONAL_VALUE: 'APP.TRADE.NOTIONAL_VALUE', OFFSETTING: 'APP.TRADE.OFFSETTING', - OHLC: 'APP.TRADE.OHLC', - OHLC_TOOLTIP: 'APP.TRADE.OHLC_TOOLTIP', OHLC_VIA_MID_PRICE: 'APP.TRADE.OHLC_VIA_MID_PRICE', OPEN_INTEREST: 'APP.TRADE.OPEN_INTEREST', OPEN_POSITIONS: 'APP.TRADE.OPEN_POSITIONS', diff --git a/scripts/generated/tooltips.ts b/scripts/generated/tooltips.ts index 641865aed..4e2c5a67a 100644 --- a/scripts/generated/tooltips.ts +++ b/scripts/generated/tooltips.ts @@ -178,6 +178,11 @@ export const TOOLTIP_STRING_KEYS = { UNREALIZED_PNL_BODY: 'TOOLTIPS.TRADE.UNREALIZED_PNL.BODY', UNREALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.UNREALIZED_PNL.TITLE', + // TRADE_CHART + + OHLC_BODY: 'TOOLTIPS.TRADE_CHART.OHLC.BODY', + OHLC_TITLE: 'TOOLTIPS.TRADE_CHART.OHLC.TITLE', + // TRANSFER_AND_DEPOSIT ALLOWANCE_AND_DEPOSIT_NETWORK_FEE_BODY: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.ALLOWANCE_AND_DEPOSIT_NETWORK_FEE.BODY', From 820a46dc79d1c55b934e9238b0b5210c0c982f8e Mon Sep 17 00:00:00 2001 From: mulan xia Date: Wed, 24 Jul 2024 11:58:36 -0400 Subject: [PATCH 5/5] lint --- config/localization/en/tooltips.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/localization/en/tooltips.json b/config/localization/en/tooltips.json index 246170fd4..00ad23296 100644 --- a/config/localization/en/tooltips.json +++ b/config/localization/en/tooltips.json @@ -364,5 +364,5 @@ "TITLE": "Reference Price", "BODY": "The Reference Price is the rolling 30 day average of the market's price and is used as an input to automatically calculate the market's parameters on dYdX Chain. The Reference Price should approximately be the same as the market's current price (i.e. round down to the same powers of 10)." } - }, + } }