@dydxprotocol/v4-localization 1.1.199 → 1.1.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1574,6 +1574,10 @@
|
|
|
1574
1574
|
"YOUR_MARKET_POSITION": "Your {MARKET} position",
|
|
1575
1575
|
"YOUR_POSITION_WAS_LIQUIDATED": "Your position was liquidated."
|
|
1576
1576
|
},
|
|
1577
|
+
"TRADING_VIEW": {
|
|
1578
|
+
"DRAFT_LIMIT_SELL": "Draft Limit Sell at {PRICE}",
|
|
1579
|
+
"DRAFT_LIMIT_BUY": "Draft Limit Buy at {PRICE}"
|
|
1580
|
+
},
|
|
1577
1581
|
"LEAGUES": {
|
|
1578
1582
|
"ACTIVE": "Active",
|
|
1579
1583
|
"AND": "and",
|
|
@@ -1646,7 +1650,9 @@
|
|
|
1646
1650
|
},
|
|
1647
1651
|
"VAULTS": {
|
|
1648
1652
|
"VAULT": "Vault",
|
|
1653
|
+
"MEGAVAULT": "MegaVault",
|
|
1649
1654
|
"VAULT_FAQS": "Vault FAQs",
|
|
1655
|
+
"MEGAVAULT_FAQS": "MegaVault FAQs",
|
|
1650
1656
|
"YOUR_ALL_TIME_PNL": "Your All-time P&L",
|
|
1651
1657
|
"VAULT_THIRTY_DAY_APR": "30d APR",
|
|
1652
1658
|
"VAULT_THIRTY_DAY_PNL": "30d P&L",
|
|
@@ -1668,6 +1674,8 @@
|
|
|
1668
1674
|
"AMOUNT_TO_WITHDRAW": "Amount to Withdraw",
|
|
1669
1675
|
"PREVIEW_WITHDRAW": "Preview Withdraw",
|
|
1670
1676
|
"PREVIEW_DEPOSIT": "Preview Deposit",
|
|
1677
|
+
"CONFIRM_WITHDRAW_CTA": "Confirm Withdraw",
|
|
1678
|
+
"CONFIRM_DEPOSIT_CTA": "Confirm Deposit",
|
|
1671
1679
|
"AMOUNT_TO_DEPOSIT": "Amount to Deposit",
|
|
1672
1680
|
"CROSS_ACCOUNT": "Cross Account",
|
|
1673
1681
|
"VAULT_DESCRIPTION": "This vault provides automated liquidity on all dYdX markets and gets a share of fee revenue. Vaults aim for a market-neutral position by quoting both sides of the book. P&L will vary based on market conditions and there's a risk of losing some or all of the USDC deposited.",
|
|
@@ -2430,7 +2438,7 @@
|
|
|
2430
2438
|
"ISOLATED_MARGIN_LIMIT_ORDER_BELOW_MINIMUM": "Below minimum size"
|
|
2431
2439
|
},
|
|
2432
2440
|
"TRADING_VIEW": {
|
|
2433
|
-
"ORDER_MODIFICATION_ERROR_LIMIT_PRICE_CROSS": "Dragging limit orders across current price is not allowed
|
|
2441
|
+
"ORDER_MODIFICATION_ERROR_LIMIT_PRICE_CROSS": "Dragging limit orders across current price is not allowed",
|
|
2434
2442
|
"ORDER_MODIFICATION_ERROR_USE_TRADE_FORM": "To execute an order immediately, use the trade form.",
|
|
2435
2443
|
"ORDER_MODIFICATION_ERROR_SL_PRICE_HIGHER": "Stop Loss price must be higher than current price.",
|
|
2436
2444
|
"ORDER_MODIFICATION_ERROR_SL_PRICE_LOWER": "Stop Loss price must be lower than current price.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dydxprotocol/v4-localization",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.201",
|
|
4
4
|
"description": "v4 localization",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"generate:app": "cd scripts && ./codegen_localization_app.swift ../config/localization/en/app.json > ./generated/app.ts && cd ..",
|
|
10
10
|
"generate:notifications": "cd scripts && ./codegen_localization_notifications.swift ../config/localization_notifications/en/app.json > ./generated/notifications.ts && cd ..",
|
|
11
11
|
"generate:tooltips": "cd scripts && ./codegen_localization_tooltips.swift ../config/localization/en/tooltips.json > ./generated/tooltips.ts && cd ..",
|
|
12
|
-
"bump_version": "./scripts/bump_version.sh"
|
|
12
|
+
"bump_version": "./scripts/bump_version.sh",
|
|
13
|
+
"prepare_for_pr": "./scripts/bump_version.sh --no-warning && npm run generate"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
package/scripts/bump_version.sh
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
|
|
3
|
+
# Parse the boolean parameter
|
|
4
|
+
SHOW_IMPORTANT_TEXT=true
|
|
5
|
+
if [ "$1" = "--no-warning" ]; then
|
|
6
|
+
SHOW_IMPORTANT_TEXT=false
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
# Search for the first line that starts with "version" in package.json
|
|
10
|
+
# Get the value in the quotes
|
|
5
11
|
VERSION=$(cat package.json | jq -r '.version')
|
|
6
12
|
|
|
7
13
|
echo "Current version is $VERSION. Enter new version (or press enter to skip):"
|
|
8
14
|
read NEW_VERSION
|
|
9
15
|
|
|
10
|
-
#
|
|
16
|
+
# If NEW_VERSION is not empty, replace the version in package.json
|
|
11
17
|
if [ -n "$NEW_VERSION" ]; then
|
|
12
18
|
sed -i '' "s/ \"version\": \"$VERSION\"/ \"version\": \"$NEW_VERSION\"/" package.json
|
|
13
19
|
echo "Version bumped to $NEW_VERSION"
|
|
14
20
|
npm i
|
|
15
21
|
fi
|
|
22
|
+
|
|
23
|
+
# ANSI color code for red
|
|
24
|
+
RED='\033[0;31m'
|
|
25
|
+
# ANSI color code for resetting color
|
|
26
|
+
NC='\033[0m'
|
|
27
|
+
|
|
28
|
+
# Display the important text only if SHOW_IMPORTANT_TEXT is true
|
|
29
|
+
if [ "$SHOW_IMPORTANT_TEXT" = true ]; then
|
|
30
|
+
echo ""
|
|
31
|
+
echo "${RED}**************************************************************"
|
|
32
|
+
echo "* IMPORTANT: If you are creating a PR, run \`npm run prepare_for_pr\` *"
|
|
33
|
+
echo "**************************************************************${NC}"
|
|
34
|
+
echo ""
|
|
35
|
+
fi
|
package/scripts/generated/app.ts
CHANGED
|
@@ -1777,6 +1777,11 @@ export const APP_STRING_KEYS = {
|
|
|
1777
1777
|
TRADING_REWARD_TABLE_DISCONNECTED_STATE: 'APP.TRADING_REWARDS.TRADING_REWARD_TABLE_DISCONNECTED_STATE',
|
|
1778
1778
|
TRADING_REWARD_TABLE_EMPTY_STATE: 'APP.TRADING_REWARDS.TRADING_REWARD_TABLE_EMPTY_STATE',
|
|
1779
1779
|
|
|
1780
|
+
// TRADING_VIEW
|
|
1781
|
+
|
|
1782
|
+
DRAFT_LIMIT_BUY: 'APP.TRADING_VIEW.DRAFT_LIMIT_BUY',
|
|
1783
|
+
DRAFT_LIMIT_SELL: 'APP.TRADING_VIEW.DRAFT_LIMIT_SELL',
|
|
1784
|
+
|
|
1780
1785
|
// TRIGGERS_MODAL
|
|
1781
1786
|
|
|
1782
1787
|
AVG_ENTRY_PRICE: 'APP.TRIGGERS_MODAL.AVG_ENTRY_PRICE',
|
|
@@ -1824,11 +1829,15 @@ export const APP_STRING_KEYS = {
|
|
|
1824
1829
|
ACKNOWLEDGE_HIGH_SLIPPAGE: 'APP.VAULTS.ACKNOWLEDGE_HIGH_SLIPPAGE',
|
|
1825
1830
|
AMOUNT_TO_DEPOSIT: 'APP.VAULTS.AMOUNT_TO_DEPOSIT',
|
|
1826
1831
|
AMOUNT_TO_WITHDRAW: 'APP.VAULTS.AMOUNT_TO_WITHDRAW',
|
|
1832
|
+
CONFIRM_DEPOSIT_CTA: 'APP.VAULTS.CONFIRM_DEPOSIT_CTA',
|
|
1833
|
+
CONFIRM_WITHDRAW_CTA: 'APP.VAULTS.CONFIRM_WITHDRAW_CTA',
|
|
1827
1834
|
CROSS_ACCOUNT: 'APP.VAULTS.CROSS_ACCOUNT',
|
|
1828
1835
|
DEPOSIT_TOO_HIGH: 'APP.VAULTS.DEPOSIT_TOO_HIGH',
|
|
1829
1836
|
ENTER_AMOUNT_TO_DEPOSIT: 'APP.VAULTS.ENTER_AMOUNT_TO_DEPOSIT',
|
|
1830
1837
|
ENTER_AMOUNT_TO_WITHDRAW: 'APP.VAULTS.ENTER_AMOUNT_TO_WITHDRAW',
|
|
1831
1838
|
EST_SLIPPAGE: 'APP.VAULTS.EST_SLIPPAGE',
|
|
1839
|
+
MEGAVAULT: 'APP.VAULTS.MEGAVAULT',
|
|
1840
|
+
MEGAVAULT_FAQS: 'APP.VAULTS.MEGAVAULT_FAQS',
|
|
1832
1841
|
PREVIEW_DEPOSIT: 'APP.VAULTS.PREVIEW_DEPOSIT',
|
|
1833
1842
|
PREVIEW_WITHDRAW: 'APP.VAULTS.PREVIEW_WITHDRAW',
|
|
1834
1843
|
PROTOCOL_VAULT: 'APP.VAULTS.PROTOCOL_VAULT',
|