@dydxprotocol/v4-localization 1.1.74 → 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.
@@ -264,6 +264,10 @@
264
264
  "TITLE": "Gasless Deposits",
265
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."
266
266
  },
267
+ "LOWEST_FEE_DEPOSITS": {
268
+ "TITLE": "Lowest Fee Deposits",
269
+ "BODY": "USDC Deposits on {LOWEST_FEE_TOKEN_NAMES} have the lowest fees."
270
+ },
267
271
  "MINIMUM_DEPOSIT_AMOUNT": {
268
272
  "TITLE": "Minimum Deposit Amount",
269
273
  "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.75",
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"
@@ -14,6 +14,8 @@ export const TOOLTIP_STRING_KEYS = {
14
14
  GASLESS_DEPOSITS_TITLE: 'TOOLTIPS.DEPOSIT.GASLESS_DEPOSITS.TITLE',
15
15
  GAS_FEES_DEPOSIT_BODY: 'TOOLTIPS.DEPOSIT.GAS_FEES_DEPOSIT.BODY',
16
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',
17
19
  MINIMUM_DEPOSIT_AMOUNT_BODY: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.BODY',
18
20
  MINIMUM_DEPOSIT_AMOUNT_TITLE: 'TOOLTIPS.DEPOSIT.MINIMUM_DEPOSIT_AMOUNT.TITLE',
19
21
  SWAP_BODY: 'TOOLTIPS.DEPOSIT.SWAP.BODY',