@dydxprotocol/v4-localization 1.1.73 → 1.1.75
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.
|
@@ -932,6 +932,7 @@
|
|
|
932
932
|
"GASLESS_DEPOSITS_SUBJECT_TO_RULES": "Gasless deposits are subject to these rules",
|
|
933
933
|
"GASLESS_DEPOSITS_TEMPORARILY_DISABLED": "Gasless deposits are temporarily unavailable. Don't worry, they'll be back soon!",
|
|
934
934
|
"GASLESS_ETH_DEPOSITS": "Gasless deposits are not available for ETH. You can convert your ETH to WETH on {1INCH_WETH_LINK} or {UNISWAP_WETH_LINK} and use WETH gasless deposits, or directly deposit ETH by paying your own gas costs.",
|
|
935
|
+
"LOWEST_FEE_DEPOSITS": "USDC deposits from {LOWEST_FEE_TOKENS_TOOLTIP} have the lowest fees. Other deposits may have additional third-party fees.",
|
|
935
936
|
"MAX_SLIPPAGE": "Max Slippage",
|
|
936
937
|
"MINIMUM_DEPOSIT_AMOUNT": "Minimum Deposit Amount",
|
|
937
938
|
"MINIMUM_DEPOSIT_MET": "Nice! Your deposit meets the gasless deposit minimum of {GASLESS_DEPOSIT_THRESHOLD} {SYMBOL}. dYdX will cover the gas fees for this deposit.",
|
|
@@ -256,10 +256,18 @@
|
|
|
256
256
|
"TITLE": "Unavailable",
|
|
257
257
|
"BODY": "Gasless deposits are temporarily unavailable. Don't worry, they'll be back soon!"
|
|
258
258
|
},
|
|
259
|
+
"GAS_FEES_DEPOSIT":{
|
|
260
|
+
"TITLE": "Gas Fees",
|
|
261
|
+
"BODY": "Gas fees are transaction fees on the source chain, in this case {SOURCE_CHAIN}."
|
|
262
|
+
},
|
|
259
263
|
"GASLESS_DEPOSITS": {
|
|
260
264
|
"TITLE": "Gasless Deposits",
|
|
261
265
|
"BODY": "dYdX will cover your gas fees if you deposit {GASLESS_DEPOSIT_THRESHOLD} {SYMBOL} or more. You are eligible for one gasless deposit every three days. Gasless deposits are subject to rules."
|
|
262
266
|
},
|
|
267
|
+
"LOWEST_FEE_DEPOSITS": {
|
|
268
|
+
"TITLE": "Lowest Fee Deposits",
|
|
269
|
+
"BODY": "USDC Deposits on {LOWEST_FEE_TOKEN_NAMES} have the lowest fees."
|
|
270
|
+
},
|
|
263
271
|
"MINIMUM_DEPOSIT_AMOUNT": {
|
|
264
272
|
"TITLE": "Minimum Deposit Amount",
|
|
265
273
|
"BODY": "Inclusive of any slippage that may occur due to liquidity changes while the bridge is in progress"
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -33,6 +33,28 @@ Each of them contains a list of language folders, such as
|
|
|
33
33
|
|
|
34
34
|
Each folder contains either a list of JSON files ending .json, or text files ending .txt
|
|
35
35
|
|
|
36
|
+
# Syntax and Structure
|
|
37
|
+
|
|
38
|
+
Text that goes within tooltip pop ups should go in the config/localization/{language}/tooltips.json
|
|
39
|
+
Other text goes to config/localization/{language}/app.json
|
|
40
|
+
|
|
41
|
+
Within each json file, find the component/view that your text belongs in (or create a new key for it) and your text.
|
|
42
|
+
|
|
43
|
+
Typically, tooltips will have both `TITLE` and `BODY` text.
|
|
44
|
+
|
|
45
|
+
## Parameters
|
|
46
|
+
|
|
47
|
+
If you need to inject dynamic text or other values, use {} to notate an input parameter.
|
|
48
|
+
|
|
49
|
+
Ex:
|
|
50
|
+
```
|
|
51
|
+
"SOME_TEXT": "A zebra has {ZEBRA_PATTERN} stripes"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The term within the {} will be the name of the variable used to inject your dynamic values.
|
|
55
|
+
Parameters are quite flexible - you can even insert react components (as long as they can be rendered properly).
|
|
56
|
+
|
|
57
|
+
|
|
36
58
|
# Work with Github
|
|
37
59
|
|
|
38
60
|
The "main" branch cannot be written directly. You must create a separate branch, make the changes there, commit and push the branch, and then create a PR (Push request) to "main"
|
package/scripts/generated/app.ts
CHANGED
|
@@ -84,6 +84,7 @@ export const APP_STRING_KEYS = {
|
|
|
84
84
|
GASLESS_DEPOSITS_SUBJECT_TO_RULES: 'APP.DEPOSIT_MODAL.GASLESS_DEPOSITS_SUBJECT_TO_RULES',
|
|
85
85
|
GASLESS_DEPOSITS_TEMPORARILY_DISABLED: 'APP.DEPOSIT_MODAL.GASLESS_DEPOSITS_TEMPORARILY_DISABLED',
|
|
86
86
|
GASLESS_ETH_DEPOSITS: 'APP.DEPOSIT_MODAL.GASLESS_ETH_DEPOSITS',
|
|
87
|
+
LOWEST_FEE_DEPOSITS: 'APP.DEPOSIT_MODAL.LOWEST_FEE_DEPOSITS',
|
|
87
88
|
MAX_SLIPPAGE: 'APP.DEPOSIT_MODAL.MAX_SLIPPAGE',
|
|
88
89
|
MINIMUM_DEPOSIT_AMOUNT: 'APP.DEPOSIT_MODAL.MINIMUM_DEPOSIT_AMOUNT',
|
|
89
90
|
MINIMUM_DEPOSIT_MET: 'APP.DEPOSIT_MODAL.MINIMUM_DEPOSIT_MET',
|
|
@@ -12,6 +12,10 @@ export const TOOLTIP_STRING_KEYS = {
|
|
|
12
12
|
DISABLED_GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.DISABLED_GASLESS_DEPOSITS.TITLE',
|
|
13
13
|
GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.BODY',
|
|
14
14
|
GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.TITLE',
|
|
15
|
+
GAS_FEES_DEPOSIT_BODY: 'TOOLTIPS.DEPOSIT.GAS_FEES_DEPOSIT.BODY',
|
|
16
|
+
GAS_FEES_DEPOSIT_TITLE: 'TOOLTIPS.DEPOSIT.GAS_FEES_DEPOSIT.TITLE',
|
|
17
|
+
LOWEST_FEE_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.LOWEST_FEE_DEPOSITS.BODY',
|
|
18
|
+
LOWEST_FEE_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.LOWEST_FEE_DEPOSITS.TITLE',
|
|
15
19
|
MINIMUM_DEPOSIT_AMOUNT_BODY: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.BODY',
|
|
16
20
|
MINIMUM_DEPOSIT_AMOUNT_TITLE: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.TITLE',
|
|
17
21
|
SWAP_BODY: 'TOOLTIPS.DEPOSIT.SWAP.BODY',
|