@dydxprotocol/v4-localization 1.1.200 → 1.1.202
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.
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
"MARGIN_WITH_MODE": "Margin ({MODE})",
|
|
255
255
|
"MARGIN_MODE": "Margin Mode",
|
|
256
256
|
"MARGIN_USAGE": "Margin Usage",
|
|
257
|
+
"MARGIN_USED": "Margin Used",
|
|
257
258
|
"MARKET_NAME": "Market Name",
|
|
258
259
|
"MARKET_SEARCH_DOES_NOT_EXIST_YET": "We might not support this asset yet, or it does not yet exist.",
|
|
259
260
|
"MARKET_SEARCH_PLACEHOLDER": "e.g. “ETH” or “Ethereum”",
|
|
@@ -327,6 +328,7 @@
|
|
|
327
328
|
"RESULTS": "Results",
|
|
328
329
|
"REWARDS": "Rewards",
|
|
329
330
|
"REWARDED": "Rewarded",
|
|
331
|
+
"REWARDS_EARNED": "Rewards Earned",
|
|
330
332
|
"REWARD_HISTORY": "Reward History",
|
|
331
333
|
"SAFETY": "Safety",
|
|
332
334
|
"SAVE": "Save",
|
|
@@ -399,6 +401,7 @@
|
|
|
399
401
|
"UNSTAKED": "Unstaked",
|
|
400
402
|
"UNSTAKING_FROM": "Unstaking from {VALIDATOR}",
|
|
401
403
|
"USERNAME": "Username",
|
|
404
|
+
"VALUE": "Value",
|
|
402
405
|
"VIEW_DETAILS": "View details",
|
|
403
406
|
"VIEW_LEAGUE": "View League",
|
|
404
407
|
"VIEW_LESS": "View less",
|
|
@@ -1322,6 +1325,7 @@
|
|
|
1322
1325
|
"AVERAGE_OPEN": "Average Open",
|
|
1323
1326
|
"AVERAGE_OPEN_CLOSE": "Avg. Open / Close",
|
|
1324
1327
|
"AVERAGE_OPEN_SHORT": "Open",
|
|
1328
|
+
"AVG_OPEN": "Avg. Open",
|
|
1325
1329
|
"BASELINE_POSITION_SIZE": "Baseline Position Size",
|
|
1326
1330
|
"BEST_EFFORT_CANCELED": "Best effort canceled",
|
|
1327
1331
|
"BIDS": "Bids",
|
|
@@ -1329,6 +1333,7 @@
|
|
|
1329
1333
|
"BRACKET_ORDER_LONG_TAKE_PROFIT_DESCRIPTION": "If {ASSET} increases by a given amount, trigger a {ACTION} to capture profits.",
|
|
1330
1334
|
"BRACKET_ORDER_SHORT_STOP_LOSS_DESCRIPTION": "If {ASSET} increases by a given amount, trigger a {ACTION} to prevent your losses.",
|
|
1331
1335
|
"BRACKET_ORDER_SHORT_TAKE_PROFIT_DESCRIPTION": "If {ASSET} falls to a fixed price, trigger a {ACTION} to capture profits.",
|
|
1336
|
+
"BUY_LONG": "Buy | Long",
|
|
1332
1337
|
"BUY_MARK_TOOLTIP": "Bought {ASSET_SIZE} {ASSET} at {PRICE}",
|
|
1333
1338
|
"BUYS_SELLS_TOGGLE": "Buys/Sells",
|
|
1334
1339
|
"BUYS_SELLS_TOGGLE_TOOLTIP": "Display historical buys and sells",
|
|
@@ -1400,6 +1405,7 @@
|
|
|
1400
1405
|
"INDEX_PRICE_ABBREVIATED": "Oracle",
|
|
1401
1406
|
"INDEX_PRICE": "Oracle Price",
|
|
1402
1407
|
"INITIAL_STOP": "Initial Stop",
|
|
1408
|
+
"LAUNCH_MARKET_WITH_PLUS": "+ Launch Market",
|
|
1403
1409
|
"LIMIT_ORDER_DESCRIPTION": "Buy or sell {SYMBOL} at a specific price (or better) and fine tune your order with advanced trade options.",
|
|
1404
1410
|
"LIMIT_ORDER_SHORT": "Limit",
|
|
1405
1411
|
"LIMIT_CLOSE": "Limit Close",
|
|
@@ -1519,6 +1525,7 @@
|
|
|
1519
1525
|
"RISK_REWARD": "Risk-Reward",
|
|
1520
1526
|
"SELECT_MARKET": "Select market",
|
|
1521
1527
|
"SELL_MARK_TOOLTIP": "Sold {ASSET_SIZE} {ASSET} at {PRICE}",
|
|
1528
|
+
"SELL_SHORT": "Sell | Short",
|
|
1522
1529
|
"SELF_TRADE": "Self-trade",
|
|
1523
1530
|
"SET_ORDER_SIZE": "Set order size",
|
|
1524
1531
|
"SET_PRICE_TRIGGERS": "Set price triggers",
|
|
@@ -1650,7 +1657,9 @@
|
|
|
1650
1657
|
},
|
|
1651
1658
|
"VAULTS": {
|
|
1652
1659
|
"VAULT": "Vault",
|
|
1660
|
+
"MEGAVAULT": "MegaVault",
|
|
1653
1661
|
"VAULT_FAQS": "Vault FAQs",
|
|
1662
|
+
"MEGAVAULT_FAQS": "MegaVault FAQs",
|
|
1654
1663
|
"YOUR_ALL_TIME_PNL": "Your All-time P&L",
|
|
1655
1664
|
"VAULT_THIRTY_DAY_APR": "30d APR",
|
|
1656
1665
|
"VAULT_THIRTY_DAY_PNL": "30d P&L",
|
|
@@ -1672,6 +1681,8 @@
|
|
|
1672
1681
|
"AMOUNT_TO_WITHDRAW": "Amount to Withdraw",
|
|
1673
1682
|
"PREVIEW_WITHDRAW": "Preview Withdraw",
|
|
1674
1683
|
"PREVIEW_DEPOSIT": "Preview Deposit",
|
|
1684
|
+
"CONFIRM_WITHDRAW_CTA": "Confirm Withdraw",
|
|
1685
|
+
"CONFIRM_DEPOSIT_CTA": "Confirm Deposit",
|
|
1675
1686
|
"AMOUNT_TO_DEPOSIT": "Amount to Deposit",
|
|
1676
1687
|
"CROSS_ACCOUNT": "Cross Account",
|
|
1677
1688
|
"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.",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"NETWORK": "Network",
|
|
65
65
|
"NEWS": "News",
|
|
66
66
|
"NICE": "Nice!",
|
|
67
|
+
"NOT_NOW": "Not now",
|
|
67
68
|
"NO_RESULTS": "No results",
|
|
68
69
|
"OF": "{ITEM1} of {ITEM2}",
|
|
69
70
|
"OK": "OK",
|
|
@@ -339,8 +340,11 @@
|
|
|
339
340
|
"UPDATE_SETTINGS_MESSAGE": "Please update notifications in your app settings.",
|
|
340
341
|
"PERMIT": "Permit",
|
|
341
342
|
"GO_TO_SETTINGS": "Go to Settings",
|
|
342
|
-
"PRIMER_TITLE": "
|
|
343
|
-
"PRIMER_MESSAGE": "
|
|
343
|
+
"PRIMER_TITLE": "Turn on notifications",
|
|
344
|
+
"PRIMER_MESSAGE": "Stay up to date on your orders and positions.",
|
|
345
|
+
"ENABLED": "Notifications turned on",
|
|
346
|
+
"DISABLED": "Notifications disabled",
|
|
347
|
+
"DISABLED_BODY": "Turn them on in settings."
|
|
344
348
|
},
|
|
345
349
|
"SHARE_ACTIVITY_MODAL": {
|
|
346
350
|
"TWEET_PROFILE": "Check out my profile on @dYdX!",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dydxprotocol/v4-localization",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.202",
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// !! GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
-
// Generated from ../config/localization/en/app.json using codegen_localization_app.swift
|
|
3
|
+
// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift
|
|
4
4
|
|
|
5
5
|
export const APP_STRING_KEYS = {
|
|
6
6
|
|
|
@@ -510,6 +510,7 @@ export const APP_STRING_KEYS = {
|
|
|
510
510
|
MARGIN: 'APP.GENERAL.MARGIN',
|
|
511
511
|
MARGIN_MODE: 'APP.GENERAL.MARGIN_MODE',
|
|
512
512
|
MARGIN_USAGE: 'APP.GENERAL.MARGIN_USAGE',
|
|
513
|
+
MARGIN_USED: 'APP.GENERAL.MARGIN_USED',
|
|
513
514
|
MARGIN_WITH_MODE: 'APP.GENERAL.MARGIN_WITH_MODE',
|
|
514
515
|
MARKET: 'APP.GENERAL.MARKET',
|
|
515
516
|
MARKETS: 'APP.GENERAL.MARKETS',
|
|
@@ -587,6 +588,7 @@ export const APP_STRING_KEYS = {
|
|
|
587
588
|
RESULTS: 'APP.GENERAL.RESULTS',
|
|
588
589
|
REWARDED: 'APP.GENERAL.REWARDED',
|
|
589
590
|
REWARDS: 'APP.GENERAL.REWARDS',
|
|
591
|
+
REWARDS_EARNED: 'APP.GENERAL.REWARDS_EARNED',
|
|
590
592
|
REWARD_HISTORY: 'APP.GENERAL.REWARD_HISTORY',
|
|
591
593
|
SAFETY: 'APP.GENERAL.SAFETY',
|
|
592
594
|
SAVE: 'APP.GENERAL.SAVE',
|
|
@@ -694,6 +696,7 @@ export const APP_STRING_KEYS = {
|
|
|
694
696
|
UNSTAKED: 'APP.GENERAL.UNSTAKED',
|
|
695
697
|
UNSTAKING_FROM: 'APP.GENERAL.UNSTAKING_FROM',
|
|
696
698
|
USERNAME: 'APP.GENERAL.USERNAME',
|
|
699
|
+
VALUE: 'APP.GENERAL.VALUE',
|
|
697
700
|
VIEW: 'APP.GENERAL.VIEW',
|
|
698
701
|
VIEWS: 'APP.GENERAL.VIEWS',
|
|
699
702
|
VIEW_ALL: 'APP.GENERAL.VIEW_ALL',
|
|
@@ -1492,6 +1495,7 @@ export const APP_STRING_KEYS = {
|
|
|
1492
1495
|
AVERAGE_OPEN: 'APP.TRADE.AVERAGE_OPEN',
|
|
1493
1496
|
AVERAGE_OPEN_CLOSE: 'APP.TRADE.AVERAGE_OPEN_CLOSE',
|
|
1494
1497
|
AVERAGE_OPEN_SHORT: 'APP.TRADE.AVERAGE_OPEN_SHORT',
|
|
1498
|
+
AVG_OPEN: 'APP.TRADE.AVG_OPEN',
|
|
1495
1499
|
BASELINE_POSITION_SIZE: 'APP.TRADE.BASELINE_POSITION_SIZE',
|
|
1496
1500
|
BEST_EFFORT_CANCELED: 'APP.TRADE.BEST_EFFORT_CANCELED',
|
|
1497
1501
|
BIDS: 'APP.TRADE.BIDS',
|
|
@@ -1501,6 +1505,7 @@ export const APP_STRING_KEYS = {
|
|
|
1501
1505
|
BRACKET_ORDER_SHORT_TAKE_PROFIT_DESCRIPTION: 'APP.TRADE.BRACKET_ORDER_SHORT_TAKE_PROFIT_DESCRIPTION',
|
|
1502
1506
|
BUYS_SELLS_TOGGLE: 'APP.TRADE.BUYS_SELLS_TOGGLE',
|
|
1503
1507
|
BUYS_SELLS_TOGGLE_TOOLTIP: 'APP.TRADE.BUYS_SELLS_TOGGLE_TOOLTIP',
|
|
1508
|
+
BUY_LONG: 'APP.TRADE.BUY_LONG',
|
|
1504
1509
|
BUY_MARK_TOOLTIP: 'APP.TRADE.BUY_MARK_TOOLTIP',
|
|
1505
1510
|
CANCELED_ON_CHAIN: 'APP.TRADE.CANCELED_ON_CHAIN',
|
|
1506
1511
|
CANCELING: 'APP.TRADE.CANCELING',
|
|
@@ -1568,6 +1573,7 @@ export const APP_STRING_KEYS = {
|
|
|
1568
1573
|
INDEX_PRICE: 'APP.TRADE.INDEX_PRICE',
|
|
1569
1574
|
INDEX_PRICE_ABBREVIATED: 'APP.TRADE.INDEX_PRICE_ABBREVIATED',
|
|
1570
1575
|
INITIAL_STOP: 'APP.TRADE.INITIAL_STOP',
|
|
1576
|
+
LAUNCH_MARKET_WITH_PLUS: 'APP.TRADE.LAUNCH_MARKET_WITH_PLUS',
|
|
1571
1577
|
LIMIT_CLOSE: 'APP.TRADE.LIMIT_CLOSE',
|
|
1572
1578
|
LIMIT_ORDER: 'APP.TRADE.LIMIT_ORDER',
|
|
1573
1579
|
LIMIT_ORDER_DESCRIPTION: 'APP.TRADE.LIMIT_ORDER_DESCRIPTION',
|
|
@@ -1687,6 +1693,7 @@ export const APP_STRING_KEYS = {
|
|
|
1687
1693
|
SELECT_MARKET: 'APP.TRADE.SELECT_MARKET',
|
|
1688
1694
|
SELF_TRADE: 'APP.TRADE.SELF_TRADE',
|
|
1689
1695
|
SELL_MARK_TOOLTIP: 'APP.TRADE.SELL_MARK_TOOLTIP',
|
|
1696
|
+
SELL_SHORT: 'APP.TRADE.SELL_SHORT',
|
|
1690
1697
|
SET_ORDER_SIZE: 'APP.TRADE.SET_ORDER_SIZE',
|
|
1691
1698
|
SET_PRICE_TRIGGERS: 'APP.TRADE.SET_PRICE_TRIGGERS',
|
|
1692
1699
|
SLIDER: 'APP.TRADE.SLIDER',
|
|
@@ -1829,11 +1836,15 @@ export const APP_STRING_KEYS = {
|
|
|
1829
1836
|
ACKNOWLEDGE_HIGH_SLIPPAGE: 'APP.VAULTS.ACKNOWLEDGE_HIGH_SLIPPAGE',
|
|
1830
1837
|
AMOUNT_TO_DEPOSIT: 'APP.VAULTS.AMOUNT_TO_DEPOSIT',
|
|
1831
1838
|
AMOUNT_TO_WITHDRAW: 'APP.VAULTS.AMOUNT_TO_WITHDRAW',
|
|
1839
|
+
CONFIRM_DEPOSIT_CTA: 'APP.VAULTS.CONFIRM_DEPOSIT_CTA',
|
|
1840
|
+
CONFIRM_WITHDRAW_CTA: 'APP.VAULTS.CONFIRM_WITHDRAW_CTA',
|
|
1832
1841
|
CROSS_ACCOUNT: 'APP.VAULTS.CROSS_ACCOUNT',
|
|
1833
1842
|
DEPOSIT_TOO_HIGH: 'APP.VAULTS.DEPOSIT_TOO_HIGH',
|
|
1834
1843
|
ENTER_AMOUNT_TO_DEPOSIT: 'APP.VAULTS.ENTER_AMOUNT_TO_DEPOSIT',
|
|
1835
1844
|
ENTER_AMOUNT_TO_WITHDRAW: 'APP.VAULTS.ENTER_AMOUNT_TO_WITHDRAW',
|
|
1836
1845
|
EST_SLIPPAGE: 'APP.VAULTS.EST_SLIPPAGE',
|
|
1846
|
+
MEGAVAULT: 'APP.VAULTS.MEGAVAULT',
|
|
1847
|
+
MEGAVAULT_FAQS: 'APP.VAULTS.MEGAVAULT_FAQS',
|
|
1837
1848
|
PREVIEW_DEPOSIT: 'APP.VAULTS.PREVIEW_DEPOSIT',
|
|
1838
1849
|
PREVIEW_WITHDRAW: 'APP.VAULTS.PREVIEW_WITHDRAW',
|
|
1839
1850
|
PROTOCOL_VAULT: 'APP.VAULTS.PROTOCOL_VAULT',
|