@dydxprotocol/v4-localization 1.1.37 → 1.1.39

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.
@@ -49,6 +49,7 @@
49
49
  "ALERTS": "Alerts",
50
50
  "ALL_MARKETS": "All markets",
51
51
  "ALL": "All",
52
+ "ALLOWED": "Allowed",
52
53
  "AMOUNT": "Amount",
53
54
  "ANONYMOUS": "Anonymous",
54
55
  "ARE_UNCHANGED": "are unchanged",
@@ -88,6 +89,7 @@
88
89
  "CREATED_AT": "Created At",
89
90
  "CURRENT": "Current",
90
91
  "CUSTOM": "Custom",
92
+ "CUSTOM_AMOUNT": "Custom amount",
91
93
  "DAILY": "Daily",
92
94
  "DECREASED": "decreased",
93
95
  "DECREASING": "Decreasing",
@@ -131,6 +133,7 @@
131
133
  "FREE": "Free",
132
134
  "FROM_TO": "from {FROM} to {TO}",
133
135
  "FUNDING_RATE_CHART_SHORT": "Funding",
136
+ "GAIN": "Gain",
134
137
  "GAMING": "Gaming",
135
138
  "GAS_FEE": "Gas fee",
136
139
  "GASLESS_DEPOSITS": "Gasless deposits",
@@ -186,11 +189,13 @@
186
189
  "MINE": "Mine",
187
190
  "MINIMUM_ORDER_SIZE": "Minimum Order Size",
188
191
  "MODIFY": "Modify",
192
+ "MULTIPLE": "Multiple",
189
193
  "NETWORK": "Network",
190
194
  "NEW": "New",
191
195
  "NFT": "NFT",
192
196
  "NO": "No",
193
197
  "NONE": "None",
198
+ "NOT_ALLOWED": "Not allowed",
194
199
  "ON_CHAIN": "on {CHAIN}",
195
200
  "OPERATIONAL": "Operational",
196
201
  "OPTIONAL": "Optional",
@@ -354,7 +359,7 @@
354
359
  },
355
360
  "BTC": {
356
361
  "PRIMARY": "Bitcoin is a decentralized digital currency, without a central bank or single administrator that can be sent from user to user on the peer-to-peer bitcoin network without the need for intermediaries.",
357
- "SECONDARY": "Transactions are verified by a network nodes through cryptography and recorded in a public distributed ledger called a blockchain. Bitcoins are created as a reward for a process known as mining. They can be exchanged for other currencies, products, and services."
362
+ "SECONDARY": "Transactions are verified by a network of nodes through cryptography and recorded in a public distributed ledger called a blockchain. Bitcoins are created as a reward for a process known as mining. They can be exchanged for other currencies, products, and services."
358
363
  },
359
364
  "BLUR": {
360
365
  "PRIMARY": "BLUR is a NFT marketplace.",
@@ -821,6 +826,36 @@
821
826
  "LEAVING_WEBSITE_DESCRIPTION": "By continuing, you will leave our website and join a website made available by a third party, which is independent from and unaffiliated with us.",
822
827
  "LEAVING_WEBSITE_DISCLAIMER": "We are not responsible for any action taken or content on the third-party website"
823
828
  },
829
+ "CLOSE_POSITIONS_CONFIRMATION_TOAST": {
830
+ "AVERAGE_PRICE": "Average Price",
831
+ "CLOSE_ALL": "Close All",
832
+ "FAILED_TO_CLOSE": "Failed to close",
833
+ "FAILED_TO_CLOSE_SINGLE_POSITION_EXPLANATION": "An unexpected error occurred when trying to close your position. Please refresh your browser, and try again.",
834
+ "FAILED_TO_CLOSE_MULTI_POSITION_EXPLANATION": "An unexpected error occurred when trying to close your positions. Please refresh your browser, and try again.",
835
+ "INSUFFICIENT_LIQUIDITY": "Insufficient liquidity",
836
+ "INSUFFICIENT_LIQUIDITY_SINGLE_POSITION_EXPLANATION": "There is not enough liquidity to close out this position fully. Please try a smaller amount, or try again later.",
837
+ "INSUFFICIENT_LIQUIDITY_MULTI_POSITION_EXPLANATION": "There is not enough liquidity to close out the following positions: {LIST_OF_POSITIONS}. Please try again later.",
838
+ "PARTIAL": "Partial",
839
+ "PARTIAL_FILL": "Partial fill",
840
+ "POSITIONS_CLOSED": "Positions Closed",
841
+ "VIEW_ORDERS": "View orders"
842
+ },
843
+ "CLOSE_POSITIONS_MODAL": {
844
+ "ARE_YOU_SURE_CLOSE_SINGLE_POSITION": "Are you sure you want to close your position in {MARKET} ({MARKET_ABBREVIATION})?",
845
+ "ARE_YOU_SURE_CLOSE_MULTI_POSITION": "Are you sure you want to close your open positions via market orders?",
846
+ "ARE_YOU_SURE_CLOSE_MULTI_POSITION_ALL": "Are you sure you want to close all of your open positions via market orders?",
847
+ "CLOSE_ALL": "Close all allowed",
848
+ "CLOSE_ALL_POSITIONS": "Close all positions",
849
+ "CONFIRM_CLOSE_SINGLE_POSITION": "Confirm close",
850
+ "CONFIRM_CLOSE_MULTI_POSITION": "Confirm close all",
851
+ "LIMIT_MID_MARKET_CLOSE": "Limit close at mid-market price",
852
+ "MARKET_CLOSE": "Market close",
853
+ "NUM_POSITION_SINGLE": "{NUMBER} position",
854
+ "NUM_POSITION_PLURAL": "{NUMBER} positions",
855
+ "SLIPPAGE_EXCEEDED": "Slippage exceeded",
856
+ "SLIPPAGE_EXCEEDED_EXPLANATION": "This order is too large and would cause excessive slippage. Decrease the close size or place a limit order instead.",
857
+ "SLIPPAGE_EXCEEDED_EXPLANATION_MULTI_MARKET": "Your order for the following markets is too large and would cause excessive slippage. Consider placing a limit order."
858
+ },
824
859
  "DEPOSIT_MODAL": {
825
860
  "BRIDGE_FEE": "Bridge Fee",
826
861
  "ENABLE_FOR_THIS_DEPOSIT": "Enable for this deposit",
@@ -897,6 +932,18 @@
897
932
  "PROVIDE_FEEDBACK": "Provide feedback",
898
933
  "PROVIDE_FEEDBACK_DESCRIPTION": "Product feedback and requests"
899
934
  },
935
+ "TRIGGERS_MODAL": {
936
+ "AVG_ENTRY_PRICE": "Avg. Entry Price",
937
+ "CUSTOM_AMOUNT_TOOLTIP": "Adjusting your custom amount will apply to both Take Profit and Stop Loss orders.",
938
+ "ENTER_TRIGGERS": "Enter trigger(s)",
939
+ "LIMIT_PRICE_TOOLTIP": "By identifying a limit price, you are placing a Take Profit Limit Order and/or a Stop Limit Order. Click {DOCUMENTATION_LINK} for more details.",
940
+ "MULTIPLE_ORDERS_FOUND": "Multiple orders found.",
941
+ "PRICE_TRIGGERS": "Price triggers",
942
+ "SL_PRICE": "SL Price",
943
+ "STOP_LOSS_TOOLTIP": "Protects against losses by closing a trader’s position once the oracle price crosses the trigger price.",
944
+ "TAKE_PROFIT_TOOLTIP": "Allows traders to set targets and protects profits on positions by specifying a price at which to close an open position for profit.",
945
+ "TP_PRICE": "TP Price"
946
+ },
900
947
  "PORTFOLIO": {
901
948
  "ABOUT_TRADING_DATA_DESCRIPTION": "See how your trading data is used to calculate rewards.",
902
949
  "ABOUT_TRADING_DATA": "About Trading Rewards Data",
@@ -1036,6 +1083,7 @@
1036
1083
  "CURRENTLY_TRADING_GOERLI": "You are trading on our Goerli testnet app with test funds. Create an account on our mainnet app to start trading with real funds",
1037
1084
  "CURRENTLY_TRADING_ROPSTEN": "You are trading on our Ropsten testnet app with test funds. Create an account on our mainnet app to start trading with real funds",
1038
1085
  "DELEVERAGED": "Deleveraged",
1086
+ "EDIT_STOP_LOSS": "Edit stop loss",
1039
1087
  "ENTER_AMOUNT": "Enter amount",
1040
1088
  "ENTER_LIMIT_PRICE": "Enter limit price",
1041
1089
  "ENTER_TRIGGER_PRICE": "Enter trigger price",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-localization",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "v4 localization",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -43,6 +43,14 @@ For example, if you are working on Spanish, and started the work on July 13th, 2
43
43
 
44
44
  Once your PR is accepted and merged into "main", the branch is removed from the repo. Create a new branch for next batch of changes.
45
45
 
46
+ ## Committing Changes
47
+ Before committing your changes to the repo, you need to run the following commands:
48
+
49
+ `npm run generate` to auto generate required code
50
+
51
+ `npm version patch` to update the package version number
52
+
53
+
46
54
  # JSON Translations
47
55
 
48
56
  Please translate each JSON entry, using the file in /en folder as the original, and translate into the same file name in other language files.
@@ -1,6 +1,6 @@
1
1
  // !! GENERATED FILE - DO NOT EDIT
2
2
 
3
- // Generated from ../config/localization/en/app.json using codegen_localization_app.swift
3
+ // Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift
4
4
 
5
5
  export const APP_STRING_KEYS = {
6
6
 
@@ -16,6 +16,37 @@ export const APP_STRING_KEYS = {
16
16
  UNSET: 'APP.ALLOWANCE_ALERT_MODAL.UNSET',
17
17
  WALLET_CAN_BE_USED_NORMALLY: 'APP.ALLOWANCE_ALERT_MODAL.WALLET_CAN_BE_USED_NORMALLY',
18
18
 
19
+ // CLOSE_POSITIONS_CONFIRMATION_TOAST
20
+
21
+ AVERAGE_PRICE: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.AVERAGE_PRICE',
22
+ CLOSE_ALL: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.CLOSE_ALL',
23
+ FAILED_TO_CLOSE: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.FAILED_TO_CLOSE',
24
+ FAILED_TO_CLOSE_MULTI_POSITION_EXPLANATION: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.FAILED_TO_CLOSE_MULTI_POSITION_EXPLANATION',
25
+ FAILED_TO_CLOSE_SINGLE_POSITION_EXPLANATION: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.FAILED_TO_CLOSE_SINGLE_POSITION_EXPLANATION',
26
+ INSUFFICIENT_LIQUIDITY: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.INSUFFICIENT_LIQUIDITY',
27
+ INSUFFICIENT_LIQUIDITY_MULTI_POSITION_EXPLANATION: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.INSUFFICIENT_LIQUIDITY_MULTI_POSITION_EXPLANATION',
28
+ INSUFFICIENT_LIQUIDITY_SINGLE_POSITION_EXPLANATION: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.INSUFFICIENT_LIQUIDITY_SINGLE_POSITION_EXPLANATION',
29
+ PARTIAL: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.PARTIAL',
30
+ PARTIAL_FILL: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.PARTIAL_FILL',
31
+ POSITIONS_CLOSED: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.POSITIONS_CLOSED',
32
+ VIEW_ORDERS: 'APP.CLOSE_POSITIONS_CONFIRMATION_TOAST.VIEW_ORDERS',
33
+
34
+ // CLOSE_POSITIONS_MODAL
35
+
36
+ ARE_YOU_SURE_CLOSE_MULTI_POSITION: 'APP.CLOSE_POSITIONS_MODAL.ARE_YOU_SURE_CLOSE_MULTI_POSITION',
37
+ ARE_YOU_SURE_CLOSE_MULTI_POSITION_ALL: 'APP.CLOSE_POSITIONS_MODAL.ARE_YOU_SURE_CLOSE_MULTI_POSITION_ALL',
38
+ ARE_YOU_SURE_CLOSE_SINGLE_POSITION: 'APP.CLOSE_POSITIONS_MODAL.ARE_YOU_SURE_CLOSE_SINGLE_POSITION',
39
+ CLOSE_ALL_POSITIONS: 'APP.CLOSE_POSITIONS_MODAL.CLOSE_ALL_POSITIONS',
40
+ CONFIRM_CLOSE_MULTI_POSITION: 'APP.CLOSE_POSITIONS_MODAL.CONFIRM_CLOSE_MULTI_POSITION',
41
+ CONFIRM_CLOSE_SINGLE_POSITION: 'APP.CLOSE_POSITIONS_MODAL.CONFIRM_CLOSE_SINGLE_POSITION',
42
+ LIMIT_MID_MARKET_CLOSE: 'APP.CLOSE_POSITIONS_MODAL.LIMIT_MID_MARKET_CLOSE',
43
+ MARKET_CLOSE: 'APP.CLOSE_POSITIONS_MODAL.MARKET_CLOSE',
44
+ NUM_POSITION_PLURAL: 'APP.CLOSE_POSITIONS_MODAL.NUM_POSITION_PLURAL',
45
+ NUM_POSITION_SINGLE: 'APP.CLOSE_POSITIONS_MODAL.NUM_POSITION_SINGLE',
46
+ SLIPPAGE_EXCEEDED: 'APP.CLOSE_POSITIONS_MODAL.SLIPPAGE_EXCEEDED',
47
+ SLIPPAGE_EXCEEDED_EXPLANATION: 'APP.CLOSE_POSITIONS_MODAL.SLIPPAGE_EXCEEDED_EXPLANATION',
48
+ SLIPPAGE_EXCEEDED_EXPLANATION_MULTI_MARKET: 'APP.CLOSE_POSITIONS_MODAL.SLIPPAGE_EXCEEDED_EXPLANATION_MULTI_MARKET',
49
+
19
50
  // COMPLIANCE_MODAL
20
51
 
21
52
  COMPLIANCE_BODY: 'APP.COMPLIANCE_MODAL.COMPLIANCE_BODY',
@@ -214,6 +245,7 @@ export const APP_STRING_KEYS = {
214
245
  AI: 'APP.GENERAL.AI',
215
246
  ALERTS: 'APP.GENERAL.ALERTS',
216
247
  ALL: 'APP.GENERAL.ALL',
248
+ ALLOWED: 'APP.GENERAL.ALLOWED',
217
249
  ALL_MARKETS: 'APP.GENERAL.ALL_MARKETS',
218
250
  AMOUNT: 'APP.GENERAL.AMOUNT',
219
251
  ANONYMOUS: 'APP.GENERAL.ANONYMOUS',
@@ -254,10 +286,12 @@ export const APP_STRING_KEYS = {
254
286
  CREATED_AT: 'APP.GENERAL.CREATED_AT',
255
287
  CURRENT: 'APP.GENERAL.CURRENT',
256
288
  CUSTOM: 'APP.GENERAL.CUSTOM',
289
+ CUSTOM_AMOUNT: 'APP.GENERAL.CUSTOM_AMOUNT',
257
290
  DAILY: 'APP.GENERAL.DAILY',
258
291
  DECREASED: 'APP.GENERAL.DECREASED',
259
292
  DECREASING: 'APP.GENERAL.DECREASING',
260
293
  DEFAULT: 'APP.GENERAL.DEFAULT',
294
+ DEFAULT_TO_ALL_MARKETS_IN_POSITIONS: 'APP.GENERAL.DEFAULT_TO_ALL_MARKETS_IN_POSITIONS',
261
295
  DEFI: 'APP.GENERAL.DEFI',
262
296
  DEGRADED: 'APP.GENERAL.DEGRADED',
263
297
  DEPOSIT: 'APP.GENERAL.DEPOSIT',
@@ -297,6 +331,7 @@ export const APP_STRING_KEYS = {
297
331
  FROM: 'APP.GENERAL.FROM',
298
332
  FROM_TO: 'APP.GENERAL.FROM_TO',
299
333
  FUNDING_RATE_CHART_SHORT: 'APP.GENERAL.FUNDING_RATE_CHART_SHORT',
334
+ GAIN: 'APP.GENERAL.GAIN',
300
335
  GAMING: 'APP.GENERAL.GAMING',
301
336
  GASLESS_DEPOSITS: 'APP.GENERAL.GASLESS_DEPOSITS',
302
337
  GAS_FEE: 'APP.GENERAL.GAS_FEE',
@@ -352,11 +387,13 @@ export const APP_STRING_KEYS = {
352
387
  MINE: 'APP.GENERAL.MINE',
353
388
  MINIMUM_ORDER_SIZE: 'APP.GENERAL.MINIMUM_ORDER_SIZE',
354
389
  MODIFY: 'APP.GENERAL.MODIFY',
390
+ MULTIPLE: 'APP.GENERAL.MULTIPLE',
355
391
  NETWORK: 'APP.GENERAL.NETWORK',
356
392
  NEW: 'APP.GENERAL.NEW',
357
393
  NFT: 'APP.GENERAL.NFT',
358
394
  NO: 'APP.GENERAL.NO',
359
395
  NONE: 'APP.GENERAL.NONE',
396
+ NOT_ALLOWED: 'APP.GENERAL.NOT_ALLOWED',
360
397
  ON_CHAIN: 'APP.GENERAL.ON_CHAIN',
361
398
  OPERATIONAL: 'APP.GENERAL.OPERATIONAL',
362
399
  OPTIONAL: 'APP.GENERAL.OPTIONAL',
@@ -1210,6 +1247,7 @@ export const APP_STRING_KEYS = {
1210
1247
  CURRENT_RATE_1H: 'APP.TRADE.CURRENT_RATE_1H',
1211
1248
  CURRENT_RATE_8H: 'APP.TRADE.CURRENT_RATE_8H',
1212
1249
  DELEVERAGED: 'APP.TRADE.DELEVERAGED',
1250
+ EDIT_STOP_LOSS: 'APP.TRADE.EDIT_STOP_LOSS',
1213
1251
  ENTER_AMOUNT: 'APP.TRADE.ENTER_AMOUNT',
1214
1252
  ENTER_EXECUTION: 'APP.TRADE.ENTER_EXECUTION',
1215
1253
  ENTER_GOOD_UNTIL: 'APP.TRADE.ENTER_GOOD_UNTIL',
@@ -1415,6 +1453,19 @@ export const APP_STRING_KEYS = {
1415
1453
  SEASON_ID: 'APP.TRADING_REWARDS.SEASON_ID',
1416
1454
  TRADING_REWARD: 'APP.TRADING_REWARDS.TRADING_REWARD',
1417
1455
 
1456
+ // TRIGGERS_MODAL
1457
+
1458
+ AVG_ENTRY_PRICE: 'APP.TRIGGERS_MODAL.AVG_ENTRY_PRICE',
1459
+ CUSTOM_AMOUNT_TOOLTIP: 'APP.TRIGGERS_MODAL.CUSTOM_AMOUNT_TOOLTIP',
1460
+ ENTER_TRIGGERS: 'APP.TRIGGERS_MODAL.ENTER_TRIGGERS',
1461
+ LIMIT_PRICE_TOOLTIP: 'APP.TRIGGERS_MODAL.LIMIT_PRICE_TOOLTIP',
1462
+ MULTIPLE_ORDERS_FOUND: 'APP.TRIGGERS_MODAL.MULTIPLE_ORDERS_FOUND',
1463
+ PRICE_TRIGGERS: 'APP.TRIGGERS_MODAL.PRICE_TRIGGERS',
1464
+ SL_PRICE: 'APP.TRIGGERS_MODAL.SL_PRICE',
1465
+ STOP_LOSS_TOOLTIP: 'APP.TRIGGERS_MODAL.STOP_LOSS_TOOLTIP',
1466
+ TAKE_PROFIT_TOOLTIP: 'APP.TRIGGERS_MODAL.TAKE_PROFIT_TOOLTIP',
1467
+ TP_PRICE: 'APP.TRIGGERS_MODAL.TP_PRICE',
1468
+
1418
1469
  // USER_SURVEY
1419
1470
 
1420
1471
  USER_SURVEY_BODY: 'APP.USER_SURVEY.USER_SURVEY_BODY',