Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2571,6 +2571,13 @@
"VIEW_PROPOSAL": "View proposal",
"VIEW_MARKET": "View market"
},
"LEVERAGE": {
"SET_MARKET_LEVERAGE": "Set Market Leverage",
"EDIT_LEVERAGE": "Edit leverage",
"INVALID_LEVERAGE_VALUE": "Invalid leverage value",
"SETTING_HIGHER_LEVERAGE_WARNING": "Setting a higher leverage could increase liquidation risk.",
"MINIMUM_LEVERAGE_ERROR": "Minimum leverage for this position is {minLeverage}×. Insufficient margin available to decrease leverage further. Add more margin to decrease leverage."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move to the explicit keys for warnings and errors

},
"COMPLIANCE": {
"CLOSE_ONLY_MESSAGE_WITH_HELP": "Because you appear to be a resident of, or trading from, a jurisdiction that violates our terms of use, or have engaged in activity that violates our terms of use, you have been blocked. You have until {DATE} to withdraw your funds before your access to the frontend is blocked. If you believe there has been an error, please contact support at {HELP_LINK}.",
"PERMANENTLY_BLOCKED_MESSAGE_WITH_HELP": "Because you appear to be a resident of, or trading from, a jurisdiction that violates our terms of use and previously have been given an opportunity to redress circumstances that led to restrictions on your account, you have been permanently blocked. If you believe there has been an error, please contact support at {HELP_LINK}.",
Expand Down
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.1.339",
"version": "1.1.340",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,14 @@ export const APP_STRING_KEYS = {
LEAVING_WEBSITE_DISCLAIMER: 'APP.LEGAL.LEAVING_WEBSITE_DISCLAIMER',
LEGAL: 'APP.LEGAL.LEGAL',

// LEVERAGE

EDIT_LEVERAGE: 'APP.LEVERAGE.EDIT_LEVERAGE',
INVALID_LEVERAGE_VALUE: 'APP.LEVERAGE.INVALID_LEVERAGE_VALUE',
MINIMUM_LEVERAGE_ERROR: 'APP.LEVERAGE.MINIMUM_LEVERAGE_ERROR',
SETTING_HIGHER_LEVERAGE_WARNING: 'APP.LEVERAGE.SETTING_HIGHER_LEVERAGE_WARNING',
SET_MARKET_LEVERAGE: 'APP.LEVERAGE.SET_MARKET_LEVERAGE',

// MNEMONIC_EXPORT

BEFORE_PROCEED: 'APP.MNEMONIC_EXPORT.BEFORE_PROCEED',
Expand Down