Skip to content

Commit

Permalink
Trade validation strings (#146)
Browse files Browse the repository at this point in the history
* move some native strings to shared

* version bump
  • Loading branch information
aforaleka authored Nov 7, 2023
1 parent 895484f commit 183ae80
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
9 changes: 8 additions & 1 deletion config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,12 @@
"CURRENTLY_TRADING_GOERLI": "You are trading on our Goerli testnet app with test funds. Create an account on our mainnet app to start trading with real funds",
"CURRENTLY_TRADING_ROPSTEN": "You are trading on our Ropsten testnet app with test funds. Create an account on our mainnet app to start trading with real funds",
"ENTER_AMOUNT": "Enter amount",
"ENTER_LIMIT_PRICE": "Enter limit price",
"ENTER_TRIGGER_PRICE": "Enter trigger price",
"ENTER_TRAILING_PERCENT": "Enter trailing percent",
"ENTER_TIME_IN_FORCE": "Enter time in force",
"ENTER_GOOD_UNTIL": "Enter good until",
"ENTER_EXECUTION": "Enter execution",
"ENTRY_PRICE_SHORT": "Entry",
"EXECUTION": "Execution",
"EXPECTED_PRICE": "Expected Price",
Expand Down Expand Up @@ -1436,6 +1442,7 @@
"CONFIRM_TRANSFER": "Confirm transfer",
"CONFIRM_TRANSFER_PROMPT": "You are attempting to transfer {AMOUNT} to the following Ethereum address:",
"DIRECTLY_TRANSFER": "Directly transfer funds to another account on dYdX",
"ENTER_ETH_ADDRESS": "Enter wallet address",
"ETH_ADDRESS": "Ethereum wallet address",
"INVALID_ADDRESS_TITLE": "Invalid wallet address",
"INVALID_ADDRESS_BODY": "Please enter an valid dYdX chain address.",
Expand Down Expand Up @@ -1831,4 +1838,4 @@
"TAKE_PROFIT_MARKET_ORDER_MAY_NOT_EXECUTE": "Take Profit Market"
}
}
}
}
5 changes: 1 addition & 4 deletions config/localizations_native/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@
"CANNOT_PLACE_TRADE": "Cannot place trade",
"CLOSED_STATUS": "Closed",
"ENTER_AMOUNT_TO_TRADE": "Enter trade amount",
"ENTER_LIMIT_PRICE": "Enter limit price",
"ENTER_STOP_PRICE": "Enter stop price",
"ENTER_TRAILING_PERCENT": "Enter trailing percent",
"ENTER_TRIGGER_PRICE": "Enter trigger price",
"LIQUIDATION": "Liquidation",
"LUNA_IMF_TITLE": "Adjusted Margin for LUNA-USD",
"LUNA_IMF_TEXT": "We have temporarily increased the Initial Margin Requirements on LUNA-USD to 100% due to volatility. Maintenance margin remains the same at 5%.",
Expand Down Expand Up @@ -419,4 +416,4 @@
"TAKE_PROFIT_MARKET_ORDER_MAY_NOT_EXECUTE": "Take Profit Market orders on dYdX are not guaranteed to fill depending on liquidity at time of triggering. For more control, try a Take Profit Limit order."
}
}
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-localization",
"version": "1.0.2",
"version": "1.0.3",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export const APP_STRING_KEYS = {
CONFIRM_TRANSFER: 'APP.DIRECT_TRANSFER_MODAL.CONFIRM_TRANSFER',
CONFIRM_TRANSFER_PROMPT: 'APP.DIRECT_TRANSFER_MODAL.CONFIRM_TRANSFER_PROMPT',
DIRECTLY_TRANSFER: 'APP.DIRECT_TRANSFER_MODAL.DIRECTLY_TRANSFER',
ENTER_ETH_ADDRESS: 'APP.DIRECT_TRANSFER_MODAL.ENTER_ETH_ADDRESS',
ETH_ADDRESS: 'APP.DIRECT_TRANSFER_MODAL.ETH_ADDRESS',
INVALID_ADDRESS_BODY: 'APP.DIRECT_TRANSFER_MODAL.INVALID_ADDRESS_BODY',
INVALID_ADDRESS_TITLE: 'APP.DIRECT_TRANSFER_MODAL.INVALID_ADDRESS_TITLE',
Expand Down Expand Up @@ -1181,6 +1182,12 @@ export const APP_STRING_KEYS = {
CURRENT_RATE_1H: 'APP.TRADE.CURRENT_RATE_1H',
CURRENT_RATE_8H: 'APP.TRADE.CURRENT_RATE_8H',
ENTER_AMOUNT: 'APP.TRADE.ENTER_AMOUNT',
ENTER_EXECUTION: 'APP.TRADE.ENTER_EXECUTION',
ENTER_GOOD_UNTIL: 'APP.TRADE.ENTER_GOOD_UNTIL',
ENTER_LIMIT_PRICE: 'APP.TRADE.ENTER_LIMIT_PRICE',
ENTER_TIME_IN_FORCE: 'APP.TRADE.ENTER_TIME_IN_FORCE',
ENTER_TRAILING_PERCENT: 'APP.TRADE.ENTER_TRAILING_PERCENT',
ENTER_TRIGGER_PRICE: 'APP.TRADE.ENTER_TRIGGER_PRICE',
ENTRY_PRICE_SHORT: 'APP.TRADE.ENTRY_PRICE_SHORT',
EXECUTION: 'APP.TRADE.EXECUTION',
EXPECTED_PRICE: 'APP.TRADE.EXPECTED_PRICE',
Expand Down

0 comments on commit 183ae80

Please sign in to comment.