@dydxprotocol/v4-localization 0.0.19 → 0.0.21
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.
- package/config/localization/en/app.json +26 -3
- package/config/localization/en/tooltips.json +4 -0
- package/config/staging/dev_endpoints.json +6 -7
- package/package.json +1 -1
- package/scripts/codegen_localization_tooltips.swift +8 -4
- package/scripts/generated/app.ts +26 -1
- package/scripts/generated/tooltips.ts +3 -3
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"DEPOSIT_MORE": "Deposit more",
|
|
84
84
|
"DEPOSIT_WITH_FIAT": "Deposit with fiat",
|
|
85
85
|
"DEPTH_CHART_SHORT": "Depth",
|
|
86
|
+
"DESTINATION": "Destination",
|
|
86
87
|
"DETAILED_VIEW": "Detailed view",
|
|
87
88
|
"DETAILS": "Details",
|
|
88
89
|
"DIRECTION": "Direction",
|
|
@@ -427,6 +428,7 @@
|
|
|
427
428
|
"CONNECTING_SUBTITLE": "Check your wallet for a connection request. Connecting to dYdX is free and does not affect your funds.",
|
|
428
429
|
"COULD_NOT_FIND_AFFILIATE": "We couldn't find this affiliate, please check the link.",
|
|
429
430
|
"CREATE_OR_VERIFY_COSMOS_ADDRESS": "Create or verify Cosmos address.",
|
|
431
|
+
"CREDITED_WITH": "Your account will be credited with ${AMOUNT_USD} in test funds.",
|
|
430
432
|
"DEPOSIT_STATUS": "Your deposit of {AMOUNT_USD} will be available in approximately {ESTIMATED_DURATION}.",
|
|
431
433
|
"DONT_MISS": "Don't miss your chance to get a {DISCOUNT} on trading fees!",
|
|
432
434
|
"ENABLE_API": "Enable secure access to our API for lightning quick trading",
|
|
@@ -1291,6 +1293,17 @@
|
|
|
1291
1293
|
"AND_EXCHANGE_MARKET_SHARE": "and exchange market share",
|
|
1292
1294
|
"AND_MAKER_MARKET_SHARE": "and maker market share",
|
|
1293
1295
|
"TRADING_VOLUME": "Trading Volume"
|
|
1296
|
+
},
|
|
1297
|
+
"THEME": {
|
|
1298
|
+
"THEME": "Theme",
|
|
1299
|
+
"DIRECTION_COLOR_PREFERENCE": "Color Preference",
|
|
1300
|
+
"DARK": "Dark",
|
|
1301
|
+
"CLASSIC_DARK": "Classic Dark",
|
|
1302
|
+
"LIGHT": "Light",
|
|
1303
|
+
"SYSTEM": "System",
|
|
1304
|
+
"GREEN_IS_UP": "Green is up",
|
|
1305
|
+
"RED_IS_UP": "Red is up",
|
|
1306
|
+
"SELECT_A_THEME": "Select Color Theme"
|
|
1294
1307
|
}
|
|
1295
1308
|
},
|
|
1296
1309
|
"CHAIN": {
|
|
@@ -1305,8 +1318,8 @@
|
|
|
1305
1318
|
"V4_TESTNET2": "V4 Testnet",
|
|
1306
1319
|
"V4_TESTNET2_DSRV": "V4 Testnet (DSRV)",
|
|
1307
1320
|
"V4_TESTNET2_DYDX": "V4 Testnet (dYdX)",
|
|
1308
|
-
"
|
|
1309
|
-
"
|
|
1321
|
+
"V4_TESTNET2_NODEFLEET": "V4 Testnet (nodefleet)",
|
|
1322
|
+
"V4_TESTNET3_IMPERATOR": "V4 Testnet3 (Imperator)"
|
|
1310
1323
|
},
|
|
1311
1324
|
"ERRORS": {
|
|
1312
1325
|
"GENERAL": {
|
|
@@ -1353,6 +1366,16 @@
|
|
|
1353
1366
|
"WOULD_NOT_REDUCE": "Your position would not be reduced if order is filled.",
|
|
1354
1367
|
"WOULD_NOT_REDUCE_UNCHECK": "Your position would not be reduced with this order. Please uncheck Reduce-Only if you would like to place your order."
|
|
1355
1368
|
},
|
|
1369
|
+
"API_STATUS": {
|
|
1370
|
+
"INDEXER_ALERT": "Indexer Alert",
|
|
1371
|
+
"INDEXER_DOWN": "Unable to get Indexer current block height.",
|
|
1372
|
+
"INDEXER_HALTED": "Indexer has halted on block {HALTED_BLOCK}.",
|
|
1373
|
+
"INDEXER_TRAILING": "Indexer is trailing the Validator by {TRAILING_BLOCKS} blocks, expect major delays.",
|
|
1374
|
+
"VALIDATOR_ALERT": "Validator Alert",
|
|
1375
|
+
"VALIDATOR_DOWN": "Unable to get current block height.",
|
|
1376
|
+
"VALIDATOR_HALTED": "Validator has halted on block {HALTED_BLOCK}.",
|
|
1377
|
+
"UNKNOWN_API_ERROR": "Unknown API error"
|
|
1378
|
+
},
|
|
1356
1379
|
"ORDER_VALIDATION": {
|
|
1357
1380
|
"2000_FILL_OR_KILL_ORDER_COULD_NOT_BE_FULLY_FILLED": "Fill Or Kill order could not be fully filled",
|
|
1358
1381
|
"2001_REDUCE_ONLY_WOULD_INCREASE_POSITION_SIZE": "Reduce-only orders cannot increase the position size",
|
|
@@ -1428,4 +1451,4 @@
|
|
|
1428
1451
|
"TAKE_PROFIT_MARKET_ORDER_MAY_NOT_EXECUTE": "Take Profit Market"
|
|
1429
1452
|
}
|
|
1430
1453
|
}
|
|
1431
|
-
}
|
|
1454
|
+
}
|
|
@@ -159,6 +159,10 @@
|
|
|
159
159
|
"TITLE": "Reduce-Only",
|
|
160
160
|
"BODY": "Reduce-Only prevents an order from changing the side of your position (long to short, or short to long). An order with Reduce-Only set will automatically resize and cancel itself as your position changes."
|
|
161
161
|
},
|
|
162
|
+
"SPREAD": {
|
|
163
|
+
"TITLE": "Spread",
|
|
164
|
+
"BODY": "The difference in price between the highest bid (the price a buyer is willing to buy for) and lowest ask (the price a seller is willing to sell for) an asset."
|
|
165
|
+
},
|
|
162
166
|
"STEP_SIZE": {
|
|
163
167
|
"TITLE": "Step Size",
|
|
164
168
|
"BODY": "Step size is the smallest factor allowed for order amounts on this market."
|
|
@@ -327,12 +327,12 @@
|
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
"comment":"V4 Public Testnet #
|
|
330
|
+
"comment":"V4 Public Testnet #3 Imperator Indexer",
|
|
331
331
|
"environment":"dydxprotocol-testnet-imperator",
|
|
332
332
|
"ethereumChainId":"5",
|
|
333
|
-
"dydxChainId":"dydx-testnet-
|
|
334
|
-
"string":"v4 Public Testnet #
|
|
335
|
-
"stringKey":"CHAIN.
|
|
333
|
+
"dydxChainId":"dydx-testnet-3",
|
|
334
|
+
"string":"v4 Public Testnet #3 Imperator Indexer",
|
|
335
|
+
"stringKey":"CHAIN.V4_TESTNET3_IMPERATOR",
|
|
336
336
|
"isMainNet":false,
|
|
337
337
|
"version":"v4",
|
|
338
338
|
"maxSubaccountNumber":127,
|
|
@@ -344,12 +344,11 @@
|
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
346
|
"validators":[
|
|
347
|
-
"https://dydx
|
|
348
|
-
"https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R"
|
|
347
|
+
"https://validator.v4testnet.dydx.exchange"
|
|
349
348
|
],
|
|
350
349
|
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
351
350
|
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
352
|
-
"faucet":"https://faucet.
|
|
351
|
+
"faucet":"https://faucet.v4testnet.dydx.exchange",
|
|
353
352
|
"statusPageUrl": "https://status.v4testnet.dydx.exchange/",
|
|
354
353
|
"marketImageUrl": "https://v4.testnet.dydx.exchange/currencies/{asset}.png",
|
|
355
354
|
"tosUrl": "https://dydx.exchange/v4-terms",
|
package/package.json
CHANGED
|
@@ -31,9 +31,13 @@ print("};\n")
|
|
|
31
31
|
|
|
32
32
|
func generateItems(keyPath: String, lastKey: String?, value: Any?) {
|
|
33
33
|
if let value = value as? [String: Any] {
|
|
34
|
-
if let lastKey = lastKey,
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if let lastKey = lastKey, value.keys.contains("BODY") || value.keys.contains("TITLE") {
|
|
35
|
+
if value.keys.contains("BODY") {
|
|
36
|
+
print(" \(lastKey)_BODY: \'\(keyPath).BODY\',")
|
|
37
|
+
}
|
|
38
|
+
if value.keys.contains("TITLE") {
|
|
39
|
+
print(" \(lastKey)_TITLE: \'\(keyPath).TITLE\',")
|
|
40
|
+
}
|
|
37
41
|
} else {
|
|
38
42
|
if let lastKey = lastKey {
|
|
39
43
|
print("\n // \(lastKey)\n")
|
|
@@ -43,4 +47,4 @@ func generateItems(keyPath: String, lastKey: String?, value: Any?) {
|
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
|
-
}
|
|
50
|
+
}
|
package/scripts/generated/app.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// !! GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
-
// Generated from
|
|
3
|
+
// Generated from ../config/localization/en/app.json using codegen_localization_app.swift
|
|
4
4
|
|
|
5
5
|
export const APP_STRING_KEYS = {
|
|
6
6
|
|
|
@@ -353,6 +353,7 @@ export const APP_STRING_KEYS = {
|
|
|
353
353
|
DEPOSIT_MORE: 'APP.GENERAL.DEPOSIT_MORE',
|
|
354
354
|
DEPOSIT_WITH_FIAT: 'APP.GENERAL.DEPOSIT_WITH_FIAT',
|
|
355
355
|
DEPTH_CHART_SHORT: 'APP.GENERAL.DEPTH_CHART_SHORT',
|
|
356
|
+
DESTINATION: 'APP.GENERAL.DESTINATION',
|
|
356
357
|
DETAILED_VIEW: 'APP.GENERAL.DETAILED_VIEW',
|
|
357
358
|
DETAILS: 'APP.GENERAL.DETAILS',
|
|
358
359
|
DIRECTION: 'APP.GENERAL.DIRECTION',
|
|
@@ -780,6 +781,7 @@ export const APP_STRING_KEYS = {
|
|
|
780
781
|
CONNECT_YOUR_WALLET_SUBTITLE: 'APP.ONBOARDING.CONNECT_YOUR_WALLET_SUBTITLE',
|
|
781
782
|
COULD_NOT_FIND_AFFILIATE: 'APP.ONBOARDING.COULD_NOT_FIND_AFFILIATE',
|
|
782
783
|
CREATE_OR_VERIFY_COSMOS_ADDRESS: 'APP.ONBOARDING.CREATE_OR_VERIFY_COSMOS_ADDRESS',
|
|
784
|
+
CREDITED_WITH: 'APP.ONBOARDING.CREDITED_WITH',
|
|
783
785
|
DEPOSIT_ALERT_SUBTITLE: 'APP.ONBOARDING.DEPOSIT_ALERT_SUBTITLE',
|
|
784
786
|
DEPOSIT_ALERT_TITLE: 'APP.ONBOARDING.DEPOSIT_ALERT_TITLE',
|
|
785
787
|
DEPOSIT_STATUS: 'APP.ONBOARDING.DEPOSIT_STATUS',
|
|
@@ -1083,6 +1085,18 @@ export const APP_STRING_KEYS = {
|
|
|
1083
1085
|
TESTNET_DEPOSITS: 'APP.TEST_FUNDS_MODAL.TESTNET_DEPOSITS',
|
|
1084
1086
|
TESTNET_DEPOSITS_BODY: 'APP.TEST_FUNDS_MODAL.TESTNET_DEPOSITS_BODY',
|
|
1085
1087
|
|
|
1088
|
+
// THEME
|
|
1089
|
+
|
|
1090
|
+
CLASSIC_DARK: 'APP.THEME.CLASSIC_DARK',
|
|
1091
|
+
DARK: 'APP.THEME.DARK',
|
|
1092
|
+
DIRECTION_COLOR_PREFERENCE: 'APP.THEME.DIRECTION_COLOR_PREFERENCE',
|
|
1093
|
+
GREEN_IS_UP: 'APP.THEME.GREEN_IS_UP',
|
|
1094
|
+
LIGHT: 'APP.THEME.LIGHT',
|
|
1095
|
+
RED_IS_UP: 'APP.THEME.RED_IS_UP',
|
|
1096
|
+
SELECT_A_THEME: 'APP.THEME.SELECT_A_THEME',
|
|
1097
|
+
SYSTEM: 'APP.THEME.SYSTEM',
|
|
1098
|
+
THEME: 'APP.THEME.THEME',
|
|
1099
|
+
|
|
1086
1100
|
// TRADE
|
|
1087
1101
|
|
|
1088
1102
|
ADD_TRIGGERS: 'APP.TRADE.ADD_TRIGGERS',
|
|
@@ -1346,6 +1360,17 @@ export const CHAIN_STRING_KEYS = {
|
|
|
1346
1360
|
|
|
1347
1361
|
export const ERRORS_STRING_KEYS = {
|
|
1348
1362
|
|
|
1363
|
+
// API_STATUS
|
|
1364
|
+
|
|
1365
|
+
INDEXER_ALERT: 'ERRORS.API_STATUS.INDEXER_ALERT',
|
|
1366
|
+
INDEXER_DOWN: 'ERRORS.API_STATUS.INDEXER_DOWN',
|
|
1367
|
+
INDEXER_HALTED: 'ERRORS.API_STATUS.INDEXER_HALTED',
|
|
1368
|
+
INDEXER_TRAILING: 'ERRORS.API_STATUS.INDEXER_TRAILING',
|
|
1369
|
+
UNKNOWN_API_ERROR: 'ERRORS.API_STATUS.UNKNOWN_API_ERROR',
|
|
1370
|
+
VALIDATOR_ALERT: 'ERRORS.API_STATUS.VALIDATOR_ALERT',
|
|
1371
|
+
VALIDATOR_DOWN: 'ERRORS.API_STATUS.VALIDATOR_DOWN',
|
|
1372
|
+
VALIDATOR_HALTED: 'ERRORS.API_STATUS.VALIDATOR_HALTED',
|
|
1373
|
+
|
|
1349
1374
|
// DEPOSIT_MODAL
|
|
1350
1375
|
|
|
1351
1376
|
DEPOSIT_ACCOUNT_OUT_OF_SYNC: 'ERRORS.DEPOSIT_MODAL.DEPOSIT_ACCOUNT_OUT_OF_SYNC',
|
|
@@ -22,9 +22,7 @@ export const TOOLTIP_STRING_KEYS = {
|
|
|
22
22
|
|
|
23
23
|
// GENERAL
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
// DYDX_ADDRESS
|
|
27
|
-
|
|
25
|
+
DYDX_ADDRESS_BODY: 'TOOLTIPS.GENERAL.DYDX_ADDRESS.BODY',
|
|
28
26
|
LEGACY_SIGNING_BODY: 'TOOLTIPS.GENERAL.LEGACY_SIGNING.BODY',
|
|
29
27
|
LEGACY_SIGNING_TITLE: 'TOOLTIPS.GENERAL.LEGACY_SIGNING.TITLE',
|
|
30
28
|
REMEMBER_ME_BODY: 'TOOLTIPS.GENERAL.REMEMBER_ME.BODY',
|
|
@@ -107,6 +105,8 @@ export const TOOLTIP_STRING_KEYS = {
|
|
|
107
105
|
REALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.REALIZED_PNL.TITLE',
|
|
108
106
|
REDUCE_ONLY_BODY: 'TOOLTIPS.TRADE.REDUCE_ONLY.BODY',
|
|
109
107
|
REDUCE_ONLY_TITLE: 'TOOLTIPS.TRADE.REDUCE_ONLY.TITLE',
|
|
108
|
+
SPREAD_BODY: 'TOOLTIPS.TRADE.SPREAD.BODY',
|
|
109
|
+
SPREAD_TITLE: 'TOOLTIPS.TRADE.SPREAD.TITLE',
|
|
110
110
|
STEP_SIZE_BODY: 'TOOLTIPS.TRADE.STEP_SIZE.BODY',
|
|
111
111
|
STEP_SIZE_TITLE: 'TOOLTIPS.TRADE.STEP_SIZE.TITLE',
|
|
112
112
|
TAKER_FEE_BODY: 'TOOLTIPS.TRADE.TAKER_FEE.BODY',
|