@dydxprotocol/v4-localization 0.1.2 → 0.1.4
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.
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"AVAILABLE": "Available",
|
|
48
48
|
"BACK": "Back",
|
|
49
49
|
"BALANCE": "Balance",
|
|
50
|
+
"BASE_INITIAL_MARGIN_FRACTION": "Base Initial Margin Fraction",
|
|
51
|
+
"BASE_POSITION_NOTIONAL": "Base Position Notional",
|
|
50
52
|
"BLOCK_HEIGHT": "Block Height",
|
|
51
53
|
"BUY": "Buy",
|
|
52
54
|
"BUYING_POWER": "Buying Power",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"TITLE": "Account Leverage",
|
|
24
24
|
"BODY": "Leverage of your account based on all your open positions. Because your account is cross-margined, each open position has its own leverage while also affecting your overall account leverage."
|
|
25
25
|
},
|
|
26
|
+
"BASE_POSITION_NOTIONAL": {
|
|
27
|
+
"TITLE": "Base Position Notional",
|
|
28
|
+
"BODY": "The maximum position size at which the margin requirements are not increased."
|
|
29
|
+
},
|
|
26
30
|
"BRACKET_ORDER_SL": {
|
|
27
31
|
"TITLE": "Stop Loss",
|
|
28
32
|
"BODY": "Your current trigger price to execute a Stop Loss for this bracket order."
|
|
@@ -73,7 +77,7 @@
|
|
|
73
77
|
},
|
|
74
78
|
"INITIAL_MARGIN_FRACTION": {
|
|
75
79
|
"TITLE": "Initial Margin Fraction",
|
|
76
|
-
"BODY": "Margin fraction is calculated as your position notional value divided by equity. If your margin fraction exceeds the initial margin fraction, you will no longer be allowed to increase your position. To limit risk, the initial margin fraction increases
|
|
80
|
+
"BODY": "Margin fraction is calculated as your position notional value divided by equity. If your margin fraction exceeds the initial margin fraction, you will no longer be allowed to increase your position. To limit risk, the initial margin fraction increases by the square root of position size divided by Base Positional Notional multiplied by Base Initial Margin Fraction."
|
|
77
81
|
},
|
|
78
82
|
"INITIAL_STOP": {
|
|
79
83
|
"TITLE": "Initial Stop",
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
<p align="center"><img src="https://dydx.exchange/icon.svg?" width="256" /></p>
|
|
2
|
+
|
|
3
|
+
<h1 align="center">v4 Localization</h1>
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
6
|
+
<a href='https://www.npmjs.com/package/@dydxprotocol/v4-localization'>
|
|
7
|
+
<img src='https://img.shields.io/npm/v/@dydxprotocol/v4-localization.svg' alt='NPM'/>
|
|
8
|
+
</a>
|
|
9
|
+
<a href='https://github.com/dydxprotocol/v4-localization/blob/main/LICENSE'>
|
|
10
|
+
<img src='https://img.shields.io/badge/License-BSL_1.1-blue' alt='License' />
|
|
11
|
+
</a>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
1
14
|
# Translation structures
|
|
2
15
|
|
|
3
16
|
There are four folders for translations.
|
package/scripts/generated/app.ts
CHANGED
|
@@ -317,6 +317,8 @@ export const APP_STRING_KEYS = {
|
|
|
317
317
|
AVAILABLE: 'APP.GENERAL.AVAILABLE',
|
|
318
318
|
BACK: 'APP.GENERAL.BACK',
|
|
319
319
|
BALANCE: 'APP.GENERAL.BALANCE',
|
|
320
|
+
BASE_INITIAL_MARGIN_FRACTION: 'APP.GENERAL.BASE_INITIAL_MARGIN_FRACTION',
|
|
321
|
+
BASE_POSITION_NOTIONAL: 'APP.GENERAL.BASE_POSITION_NOTIONAL',
|
|
320
322
|
BLOCK_HEIGHT: 'APP.GENERAL.BLOCK_HEIGHT',
|
|
321
323
|
BUY: 'APP.GENERAL.BUY',
|
|
322
324
|
BUYING_POWER: 'APP.GENERAL.BUYING_POWER',
|
|
@@ -37,6 +37,8 @@ export const TOOLTIP_STRING_KEYS = {
|
|
|
37
37
|
|
|
38
38
|
ACCOUNT_LEVERAGE_BODY: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.BODY',
|
|
39
39
|
ACCOUNT_LEVERAGE_TITLE: 'TOOLTIPS.TRADE.ACCOUNT_LEVERAGE.TITLE',
|
|
40
|
+
BASE_POSITION_NOTIONAL_BODY: 'TOOLTIPS.TRADE.BASE_POSITION_NOTIONAL.BODY',
|
|
41
|
+
BASE_POSITION_NOTIONAL_TITLE: 'TOOLTIPS.TRADE.BASE_POSITION_NOTIONAL.TITLE',
|
|
40
42
|
BRACKET_ORDER_SL_BODY: 'TOOLTIPS.TRADE.BRACKET_ORDER_SL.BODY',
|
|
41
43
|
BRACKET_ORDER_SL_TITLE: 'TOOLTIPS.TRADE.BRACKET_ORDER_SL.TITLE',
|
|
42
44
|
BRACKET_ORDER_TP_BODY: 'TOOLTIPS.TRADE.BRACKET_ORDER_TP.BODY',
|