From fb60aebc4dbdd2dc39cb90dd0b6ec2a04eb256d0 Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 25 Sep 2023 09:25:29 -0700 Subject: [PATCH] Trade Page rewards strings (#61) * Add rewards copies * 0.1.12 --- config/localization/en/app.json | 4 ++++ config/localization/en/tooltips.json | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- scripts/generated/app.ts | 3 +++ scripts/generated/tooltips.ts | 2 ++ 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index 62d751d89..d4038163b 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -640,6 +640,7 @@ "FREE_TRADING_DISCLAIMER_PERPETUAL_FUNDING": "perpetual funding", "GASLESS_DEPOSITS_NEW_PROMO": "If your first deposit is $1000 or more, dYdX will pay your deposit gas fees!", "GASLESS_DEPOSITS_PROMO": "Enjoy zero gas costs on your deposit of $2000 or more, once every three days.", + "GOVERNANCE_DESCRIPTION": "To participate in governance, you need to export your secret phrase to Keplr Wallet.", "HOLDING": "Holding {NUMBER}", "IN_THIS_EPOCH": "in this epoch", "MAKER_MARKET_SHARE": "maker market share", @@ -660,6 +661,8 @@ "REWARDS_NOT_PROVIDED": "Rewards are not provided by dYdX Trading Inc.", "REWARDS_UPDATE": "Rewards update", "SEARCH_MARKETS": "Search markets", + "STAKING": "Staking", + "STAKING_DESCRIPTION": "To stake, you need to export your secret phrase to Keplr Wallet.", "STOP_MARKET_ORDERS": "Stop market orders", "STOP_MARKET_ORDERS_DESCRIPTION": "Stop market and take profit market orders are here! Quickly and easily set triggers to limit your losses and lock in profits.", "TARGET_VOLUME": "Target Volume", @@ -677,6 +680,7 @@ "TRADING_LEAGUES": "Trading leagues", "TRADING_LEAGUES_DESCRIPTION": "Trading leagues are now live! Climb the rankings and earn your share of the {PRIZE}.", "TRADING_LEAGUES_PRIZE": "$100K weekly prize pool", + "TRADING_REWARDS": "Trading Rewards", "TRADING_VOLUME_LABEL": "exchanged in the last 24h", "TRADING_VOLUME": "Trading Volume", "TRAILING_VOLUME": "Trailing Volume", diff --git a/config/localization/en/tooltips.json b/config/localization/en/tooltips.json index 21563f77a..b59d68595 100644 --- a/config/localization/en/tooltips.json +++ b/config/localization/en/tooltips.json @@ -127,6 +127,10 @@ "TITLE": "Maximum Leverage", "BODY": "Maximum allowed leverage for this market. To limit risk, maximum leverage decreases linearly with position size after a certain threshold." }, + "MAXIMUM_REWARDS": { + "TITLE": "Maximum Rewards", + "BODY": "Earn rewards when you trade on dYdX. Actual rewards may vary." + }, "NET_FUNDING": { "TITLE": "Net Funding", "BODY": "Total funding earned / paid for the lifetime of the current position. Resets if you close your position or change position sides (long to short, or vice versa)." diff --git a/package-lock.json b/package-lock.json index 3ed9fb980..0b60d564a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "0.1.11", + "version": "0.1.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "0.1.11", + "version": "0.1.12", "license": "BSL-1.1", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 74946d438..da4c156cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "0.1.11", + "version": "0.1.12", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 1fcff5089..6625fc1ff 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -907,6 +907,7 @@ export const APP_STRING_KEYS = { FREE_TRADING_TITLE_ASTERISK_FREE: 'APP.PORTFOLIO.FREE_TRADING_TITLE_ASTERISK_FREE', GASLESS_DEPOSITS_NEW_PROMO: 'APP.PORTFOLIO.GASLESS_DEPOSITS_NEW_PROMO', GASLESS_DEPOSITS_PROMO: 'APP.PORTFOLIO.GASLESS_DEPOSITS_PROMO', + GOVERNANCE_DESCRIPTION: 'APP.PORTFOLIO.GOVERNANCE_DESCRIPTION', HOLDING: 'APP.PORTFOLIO.HOLDING', IN_THIS_EPOCH: 'APP.PORTFOLIO.IN_THIS_EPOCH', MAKER_MARKET_SHARE: 'APP.PORTFOLIO.MAKER_MARKET_SHARE', @@ -927,6 +928,8 @@ export const APP_STRING_KEYS = { REWARDS_NOT_PROVIDED: 'APP.PORTFOLIO.REWARDS_NOT_PROVIDED', REWARDS_UPDATE: 'APP.PORTFOLIO.REWARDS_UPDATE', SEARCH_MARKETS: 'APP.PORTFOLIO.SEARCH_MARKETS', + STAKING: 'APP.PORTFOLIO.STAKING', + STAKING_DESCRIPTION: 'APP.PORTFOLIO.STAKING_DESCRIPTION', STOP_MARKET_ORDERS: 'APP.PORTFOLIO.STOP_MARKET_ORDERS', STOP_MARKET_ORDERS_DESCRIPTION: 'APP.PORTFOLIO.STOP_MARKET_ORDERS_DESCRIPTION', TARGET_VOLUME: 'APP.PORTFOLIO.TARGET_VOLUME', diff --git a/scripts/generated/tooltips.ts b/scripts/generated/tooltips.ts index e4c6ab9a0..2f02ecc0b 100644 --- a/scripts/generated/tooltips.ts +++ b/scripts/generated/tooltips.ts @@ -87,6 +87,8 @@ export const TOOLTIP_STRING_KEYS = { MARGIN_USAGE_TITLE: 'TOOLTIPS.TRADE.MARGIN_USAGE.TITLE', MAXIMUM_LEVERAGE_BODY: 'TOOLTIPS.TRADE.MAXIMUM_LEVERAGE.BODY', MAXIMUM_LEVERAGE_TITLE: 'TOOLTIPS.TRADE.MAXIMUM_LEVERAGE.TITLE', + MAXIMUM_REWARDS_BODY: 'TOOLTIPS.TRADE.MAXIMUM_REWARDS.BODY', + MAXIMUM_REWARDS_TITLE: 'TOOLTIPS.TRADE.MAXIMUM_REWARDS.TITLE', MAX_WITHDRAW_BODY: 'TOOLTIPS.TRADE.MAX_WITHDRAW.BODY', MAX_WITHDRAW_TITLE: 'TOOLTIPS.TRADE.MAX_WITHDRAW.TITLE', NET_FUNDING_BODY: 'TOOLTIPS.TRADE.NET_FUNDING.BODY',