@dydxprotocol/v4-localization 1.1.74 → 1.1.76

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.
@@ -252,6 +252,10 @@
252
252
  "TITLE": "Available",
253
253
  "BODY": "You are eligible! Deposit at least {GASLESS_DEPOSIT_THRESHOLD} {SYMBOL} to enable gasless deposit."
254
254
  },
255
+ "BRIDGE_FEES_DEPOSIT":{
256
+ "TITLE": "Bridge Fees",
257
+ "BODY": "Bridge fees are paid to other protocols in order to complete the bridging, transferring, and swapping required for this deposit."
258
+ },
255
259
  "DISABLED_GASLESS_DEPOSITS": {
256
260
  "TITLE": "Unavailable",
257
261
  "BODY": "Gasless deposits are temporarily unavailable. Don't worry, they'll be back soon!"
@@ -264,6 +268,10 @@
264
268
  "TITLE": "Gasless Deposits",
265
269
  "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."
266
270
  },
271
+ "LOWEST_FEE_DEPOSITS": {
272
+ "TITLE": "Lowest Fee Deposits",
273
+ "BODY": "USDC deposits on {LOWEST_FEE_TOKEN_NAMES} have the lowest fees."
274
+ },
267
275
  "MINIMUM_DEPOSIT_AMOUNT": {
268
276
  "TITLE": "Minimum Deposit Amount",
269
277
  "BODY": "Inclusive of any slippage that may occur due to liquidity changes while the bridge is in progress"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-localization",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "description": "v4 localization",
5
5
  "main": "index.ts",
6
6
  "scripts": {
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"
@@ -8,12 +8,16 @@ export const TOOLTIP_STRING_KEYS = {
8
8
 
9
9
  AVAILABLE_GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.AVAILABLE_GASLESS_DEPOSITS.BODY',
10
10
  AVAILABLE_GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.AVAILABLE_GASLESS_DEPOSITS.TITLE',
11
+ BRIDGE_FEES_DEPOSIT_BODY: 'TOOLTIPS.DEPOSIT.BRIDGE_FEES_DEPOSIT.BODY',
12
+ BRIDGE_FEES_DEPOSIT_TITLE: 'TOOLTIPS.DEPOSIT.BRIDGE_FEES_DEPOSIT.TITLE',
11
13
  DISABLED_GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.DISABLED_GASLESS_DEPOSITS.BODY',
12
14
  DISABLED_GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.DISABLED_GASLESS_DEPOSITS.TITLE',
13
15
  GASLESS_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.BODY',
14
16
  GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.TITLE',
15
17
  GAS_FEES_DEPOSIT_BODY: 'TOOLTIPS.DEPOSIT.GAS_FEES_DEPOSIT.BODY',
16
18
  GAS_FEES_DEPOSIT_TITLE: 'TOOLTIPS.DEPOSIT.GAS_FEES_DEPOSIT.TITLE',
19
+ LOWEST_FEE_DEPOSITS_BODY: 'TOOLTIPS.DEPOSIT.LOWEST_FEE_DEPOSITS.BODY',
20
+ LOWEST_FEE_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.LOWEST_FEE_DEPOSITS.TITLE',
17
21
  MINIMUM_DEPOSIT_AMOUNT_BODY: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.BODY',
18
22
  MINIMUM_DEPOSIT_AMOUNT_TITLE: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.TITLE',
19
23
  SWAP_BODY: 'TOOLTIPS.DEPOSIT.SWAP.BODY',