@orderly.network/i18n 3.0.0-beta.1 → 3.0.0-beta.10

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.
Files changed (57) hide show
  1. package/README.md +23 -469
  2. package/dist/{constant-BeXwHrGj.d.mts → constant-BwPxVQ3H.d.mts} +45 -40
  3. package/dist/{constant-BeXwHrGj.d.ts → constant-BwPxVQ3H.d.ts} +45 -40
  4. package/dist/constant.d.mts +1 -1
  5. package/dist/constant.d.ts +1 -1
  6. package/dist/constant.js.map +1 -1
  7. package/dist/constant.mjs.map +1 -1
  8. package/dist/index.d.mts +74 -30
  9. package/dist/index.d.ts +74 -30
  10. package/dist/index.js +156 -120
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +148 -118
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/locale.csv +42 -107
  15. package/dist/locales/de.json +42 -39
  16. package/dist/locales/en.json +42 -39
  17. package/dist/locales/es.json +42 -39
  18. package/dist/locales/fr.json +42 -39
  19. package/dist/locales/id.json +42 -39
  20. package/dist/locales/it.json +42 -39
  21. package/dist/locales/ja.json +42 -39
  22. package/dist/locales/ko.json +42 -39
  23. package/dist/locales/nl.json +42 -39
  24. package/dist/locales/pl.json +42 -39
  25. package/dist/locales/pt.json +42 -39
  26. package/dist/locales/ru.json +42 -39
  27. package/dist/locales/tc.json +42 -39
  28. package/dist/locales/tr.json +42 -39
  29. package/dist/locales/uk.json +42 -39
  30. package/dist/locales/vi.json +42 -39
  31. package/dist/locales/zh.json +42 -39
  32. package/dist/utils.d.mts +1 -1
  33. package/dist/utils.d.ts +1 -1
  34. package/dist/utils.js +51 -48
  35. package/dist/utils.js.map +1 -1
  36. package/dist/utils.mjs +51 -48
  37. package/dist/utils.mjs.map +1 -1
  38. package/docs/guide/AGENTS.md +109 -0
  39. package/docs/guide/cli.md +133 -0
  40. package/docs/guide/examples.md +455 -0
  41. package/docs/guide/exports.md +14 -0
  42. package/docs/guide/integration.md +223 -0
  43. package/docs/guide/utils.md +14 -0
  44. package/package.json +8 -6
  45. package/scripts/copyLocales.js +11 -0
  46. package/scripts/csv2json.js +28 -0
  47. package/scripts/diffCsv.js +175 -0
  48. package/scripts/fillJson.js +33 -0
  49. package/scripts/filterLocaleKeys.js +127 -0
  50. package/scripts/generateCsv.js +36 -0
  51. package/scripts/generateEnJson.js +11 -0
  52. package/scripts/generateMissingKeys.js +49 -0
  53. package/scripts/json-csv-converter.js +286 -0
  54. package/scripts/json2csv.js +38 -0
  55. package/scripts/mergeJson.js +67 -0
  56. package/scripts/separateJson.js +50 -0
  57. package/scripts/utils.js +94 -0
package/dist/utils.mjs CHANGED
@@ -51,6 +51,10 @@ var affiliate = {
51
51
  "affiliate.referralCode.label": "Enter referral code",
52
52
  "affiliate.referralCode.bound": "Referral code bound",
53
53
  "affiliate.referralCode.notExist": "This referral code does not exist.",
54
+ "affiliate.referralCode.bind.modal.title": "Were you referred by someone?",
55
+ "affiliate.referralCode.bind.modal.description": "If an affiliate shared their referral code with you, enter it below to bind your account and receive affiliate benefits.",
56
+ "affiliate.referralCode.bind.input.placeholder": "Enter referrer's code",
57
+ "affiliate.referralCode.bind.skip": "No, I was not referred by anyone",
54
58
  "affiliate.process.title": "How It Works",
55
59
  "affiliate.process.step1.title": "Trade $10,000+ or apply",
56
60
  "affiliate.process.step1.description": "Unlock a referral code automatically ($0 of $10,000 completed - main account only), or apply for a higher rate via the form.",
@@ -82,7 +86,7 @@ var affiliate = {
82
86
  "affiliate.base": "Affiliate",
83
87
  "affiliate.directBonus": "Direct bonus",
84
88
  "affiliate.commission.30d": "30d commission",
85
- "affiliate.commission.column.activeUsers": "Referral active users",
89
+ "affiliate.commission.column.activeUsers": "New traders",
86
90
  "affiliate.myReferees": "My referees",
87
91
  "affiliate.referees": "Referees",
88
92
  "affiliate.referees.column.refereeAddress": "Referee address",
@@ -112,6 +116,7 @@ var affiliate = {
112
116
  "affiliate.direct": "Direct",
113
117
  "affiliate.directInclBonus": "Incl. {{amount}} bonus",
114
118
  "affiliate.indirect": "Indirect",
119
+ "affiliate.referredBy": "Referred by {{name}}",
115
120
  "affiliate.referrals": "Referrals",
116
121
  "affiliate.referralCode.edit.modal.title": "Configure your referral settings",
117
122
  "affiliate.referralCode.create": "Create referral code",
@@ -140,6 +145,8 @@ var affiliate = {
140
145
  "affiliate.newReferralProgram.description": "Give your sub-affiliates the power to customize their earnings, while you unlock an endless stream of passive income from every trader in your growing network.",
141
146
  "affiliate.newReferralProgram.tradeUnlock": "Trade to unlock",
142
147
  "affiliate.newReferralProgram.tradeUnlock.description": "Trade {{volume}} USDC volume to unlock the ability to invite friends and earn commissions.",
148
+ "affiliate.newReferralProgram.wereYouReferred": "Were you referred by someone?",
149
+ "affiliate.newReferralProgram.referredBy": "You were referred by {{code}}.",
143
150
  "affiliate.commissionConfiguration": "Commission configuration",
144
151
  "affiliate.totalCommissionAvailable": "Total commission available",
145
152
  "affiliate.configure": "Configure",
@@ -417,6 +424,7 @@ var markets = {
417
424
  "markets.favorites": "Favorites",
418
425
  "markets.recent": "Recent",
419
426
  "markets.newListings": "New listings",
427
+ "markets.community": "Community",
420
428
  "markets.allMarkets": "All markets",
421
429
  "markets.openInterest": "Open interest",
422
430
  "markets.openInterest.tooltip": "Total size of positions per side.",
@@ -466,7 +474,13 @@ var markets = {
466
474
  "markets.symbolInfoBar.24hVolume": "24h volume",
467
475
  "markets.symbolInfoBar.24hVolume.tooltip": "24 hour total trading volume on the Orderly Network.",
468
476
  "markets.symbolInfoBar.predFundingRate": "Est. funding rate",
469
- "markets.symbolInfoBar.predFundingRate.tooltip": "Funding rates are payments between traders who are long and short. When positive, long positions pay short positions funding. When negative, short positions pay long positions."
477
+ "markets.symbolInfoBar.predFundingRate.tooltip": "Funding rates are payments between traders who are long and short. When positive, long positions pay short positions funding. When negative, short positions pay long positions.",
478
+ "markets.symbolInfoBar.riskNotice.content": "{{symbolWithBroker}} is a permissionless listing supported on Isolated Margin only, deployed and operated independently by {{brokerName}}. Please be aware of elevated risks, including low liquidity, high volatility, and increased liquidation risk."
479
+ };
480
+
481
+ // src/locale/module/navigation.ts
482
+ var navigation = {
483
+ "tradingPoints.points": "Points"
470
484
  };
471
485
 
472
486
  // src/locale/module/notification.ts
@@ -511,6 +525,7 @@ var orderEntry = {
511
525
  "orderEntry.orderType.ioc.tooltip": "Executes immediately; any unfilled amount is canceled.",
512
526
  "orderEntry.orderType.fok": "FOK",
513
527
  "orderEntry.orderType.fok.tooltip": "Executes immediately in full, or is canceled entirely.",
528
+ "orderEntry.orderType.symbolPostOnly.tooltip": "This symbol is in POST_ONLY mode. Only limit orders are accepted until the order book is ready.",
514
529
  "orderEntry.orderType.scaledOrder": "Scaled",
515
530
  "orderEntry.orderType.trailingStop": "Trailing stop",
516
531
  "orderEntry.orderSize": "Order size",
@@ -583,10 +598,13 @@ var orderEntry = {
583
598
  "marginMode.current": "Current",
584
599
  "marginMode.marginModeSettings": "Margin mode settings",
585
600
  "marginMode.updatedSuccessfully": "Updated successfully",
601
+ "marginMode.noEditableSymbolsSelected": "No editable symbols selected",
602
+ "marginMode.failedToUpdateMarginMode": "Failed to update margin mode",
586
603
  "marginMode.perpetualFutures": "Perpetual futures",
587
604
  "marginMode.searchPlaceholder": "Search",
588
605
  "marginMode.selectAll": "Select all",
589
606
  "marginMode.setAs": "Set as",
607
+ "marginMode.disabledSymbolTooltip": "This symbol is independently operated by a third party. Isolated Margin is enforced to prevent risk from affecting your other positions.",
590
608
  "orderEntry.startPrice.error.required": "Start price is required",
591
609
  "orderEntry.startPrice.error.min": "Start price must be greater than {{value}}",
592
610
  "orderEntry.startPrice.error.max": "Start price must be less than {{value}}",
@@ -615,7 +633,12 @@ var orderEntry = {
615
633
  "orderEntry.reduceOnly.reminder": "Reduce-only reminder",
616
634
  "orderEntry.reduceOnly.reminder.content": "Your account is in reduce-only and cannot open new positions. Would you like to turn off reduce-only mode and proceed with the\xA0order?",
617
635
  "orderEntry.placeOrderNow": "Place order now",
618
- "orderEntry.maxQty.reminder.content": "Order qty reduced to max available: {{maxQty}}"
636
+ "orderEntry.maxQty.reminder.content": "Order qty reduced to max available: {{maxQty}}",
637
+ "orderEntry.permissionlessNotice.title": "Community-Listed Market Notice",
638
+ "orderEntry.permissionlessNotice.content1": "This market was listed by a third-party deployer through the permissionless listing system.",
639
+ "orderEntry.permissionlessNotice.content2": "It is not created, reviewed, or endorsed by Orderly. Such markets may involve low liquidity, high volatility, incomplete information, or increased liquidation risk.",
640
+ "orderEntry.permissionlessNotice.content3": "Please review the deployer's documentation and trade at your own risk.",
641
+ "orderEntry.permissionlessNotice.checkbox": "I understand this is a community-listed market and accept the risks."
619
642
  };
620
643
 
621
644
  // src/locale/module/orders.ts
@@ -682,6 +705,8 @@ var portfolio = {
682
705
  "portfolio.overview.performance.cumulativePnl": "Cumulative PnL",
683
706
  "portfolio.overview.performance.dailyVolume": "Daily Volume",
684
707
  "portfolio.overview.performance.cumulativeVolume": "Cumulative Volume",
708
+ "portfolio.overview.todaysPnl": "Today's PnL",
709
+ "portfolio.overview.todaysVol": "Today's Vol",
685
710
  "portfolio.overview.distribution": "Distribution",
686
711
  "portfolio.overview.transferHistory": "Transfer history",
687
712
  "portfolio.overview.vaults": "Vaults",
@@ -889,7 +914,9 @@ var tpsl = {
889
914
  "tpsl.tpTrigger": "TP trigger",
890
915
  "tpsl.slTrigger": "SL trigger",
891
916
  "tpsl.pnl": "PnL",
892
- "tpsl.offset": "Offset",
917
+ "tpsl.offsetHolder": "Offset",
918
+ "tpsl.offset": "Offset (From entry)",
919
+ "tpsl.offsetPercent": "Offset% (From entry)",
893
920
  "tpsl.add": "Add",
894
921
  "tpsl.cancelAll": "Cancel all",
895
922
  "tpsl.dragToSet": "Drag to set TP/SL",
@@ -935,7 +962,9 @@ var tpsl = {
935
962
  "tpsl.tpslDetail.qty": "Qty.",
936
963
  "tpsl.tpslDetail.estPnl": "Est. PnL",
937
964
  "tpsl.tpslDetail.estPnl.tooltip": "The actual value may differ based on the actual trading price. This value is only for reference.",
938
- "tpsl.agreement": "You agree to edit your {{symbol}} order."
965
+ "tpsl.agreement": "You agree to edit your {{symbol}} order.",
966
+ "tpsl.offsetMark": "Offset (From mark)",
967
+ "tpsl.offsetPercentMark": "Offset% (From mark)"
939
968
  };
940
969
 
941
970
  // src/locale/module/trading.ts
@@ -1015,6 +1044,7 @@ var trading = {
1015
1044
  "trading.rwa.tooltip.openIn": "Regular trading hours will open in <0>{{timeFormat}}</0>",
1016
1045
  "trading.rwa.tooltip.checkDetailRules": "Check detail rules",
1017
1046
  "trading.rwa.countdown.title": "US markets are closing soon, volatility may be lower.",
1047
+ "trading.symbolDelisting": "{{symbol}} has entered forced deleveraging mode (insufficient liquidity depth / insufficient IF balance). Your position on this symbol only allows closing operations.",
1018
1048
  "trading.rwa.outsideMarketHours.notify": "This market is currently outside regular trading hours. You can still place a trade, but please be aware of reduced liquidity and potential risks.",
1019
1049
  "trading.rwa.mWeb.outsideMarketHours.desc": "Regular trading hours are about to close - 24/7 trading continues; price may slow and liquidity may be lower.",
1020
1050
  "trading.rwa.mWeb.insideMarketHours.desc": "Regular trading hours are about to open - get ready."
@@ -1058,46 +1088,6 @@ var tradingLeaderboard = {
1058
1088
  "tradingLeaderboard.tradingVolume.tooltip": "Total trading volume generated during the campaign period. Updated every 30 seconds."
1059
1089
  };
1060
1090
 
1061
- // src/locale/module/tradingPoints.ts
1062
- var tradingPoints = {
1063
- "tradingPoints.points": "Points",
1064
- "tradingPoints.startsIn": "Starts in",
1065
- "tradingPoints.days": "Days",
1066
- "tradingPoints.hours": "Hours",
1067
- "tradingPoints.minutes": "Minutes",
1068
- "tradingPoints.seconds": "Seconds",
1069
- "tradingPoints.learnMore": "Learn more",
1070
- "tradingPoints.stagePoints": "Stage points",
1071
- "tradingPoints.stageRanking": "Stage ranking",
1072
- "tradingPoints.referralCode": "Referral code",
1073
- "tradingPoints.referralLink": "Referral link",
1074
- "tradingPoints.currentPoints": "Current points",
1075
- "tradingPoints.ranking": "Ranking",
1076
- "tradingPoints.myPoints": "My points",
1077
- "tradingPoints.thisWeek": "This week",
1078
- "tradingPoints.lastWeek": "Last week",
1079
- "tradingPoints.all": "All",
1080
- "tradingPoints.tradePoints": "Trade points",
1081
- "tradingPoints.tradePointsTooltip": "Trade Points are calculated based on your perps trading volume.Updated daily.",
1082
- "tradingPoints.tradeNow": "Trade now",
1083
- "tradingPoints.pnlPoints": "PNL points",
1084
- "tradingPoints.pnlPointsTooltip": "Both profit or loss of each trade will be recorded. Updated daily.",
1085
- "tradingPoints.referralPoints": "Referral points",
1086
- "tradingPoints.referralPointsTooltip": "First-level invitee's rebates: {{l1}}%, Second-level invitee's rebates: {{l2}}%, Update daily.",
1087
- "tradingPoints.copyLink": "Copy Link",
1088
- "tradingPoints.faq.title": "FAQ",
1089
- "tradingPoints.faq.whatArePoints.question": "What are Points?",
1090
- "tradingPoints.faq.whatArePoints.answer": "The Points program is designed to encourage genuine user engagement with products and to reward loyal users who actively contribute to the growth of the {{brokerName}} ecosystem. Rewards will be airdropped in the future based on users' point accumulation.",
1091
- "tradingPoints.faq.allocation.question": "What is the points allocation criteria?",
1092
- "tradingPoints.faq.allocation.answer": "Points = Trade points + PNL points + Referral points.\n\nThe page will update your points daily, calculating the points you are expected to receive based on your contribution.\n\nNote: Wash trading (e.g., self-trades) will not receive any points",
1093
- "tradingPoints.faq.distribution.question": "When will points be distributed?",
1094
- "tradingPoints.faq.distribution.answer": "Points are distributed at 08:00 UTC everyday.",
1095
- "tradingPoints.faq.pnl.question": "How are PNL points calculated?",
1096
- "tradingPoints.faq.pnl.answer": "Points are based on your net profit or loss each trading.",
1097
- "tradingPoints.faq.referral.question": "How does the referral work?",
1098
- "tradingPoints.faq.referral.answer": "Based on the total points of your invitees and their invitees. Points earned from first-level invitees are higher than those from second-level invitees. Updated daily."
1099
- };
1100
-
1101
1091
  // src/locale/module/tradingRewards.ts
1102
1092
  var tradingRewards = {
1103
1093
  "tradingRewards.rewards": "Rewards",
@@ -1151,6 +1141,7 @@ var tradingView = {
1151
1141
  "tradingView.displayControl.buySell": "Buy/Sell",
1152
1142
  "tradingView.displayControl.limitOrders": "Limit orders",
1153
1143
  "tradingView.displayControl.stopOrders": "Stop orders",
1144
+ "tradingView.displayControl.liquidationPrice": "Liquidation Price",
1154
1145
  "tradingView.noScriptSrc": "Due to TradingView's policy, you will need to apply for your own license.",
1155
1146
  "tradingView.noScriptSrc.1": "1. Please apply for your TradingView Advanced Chart license <0>here</0>",
1156
1147
  "tradingView.noScriptSrc.2": "2. Follow the instructions on <0>orderly.network</0> to set up."
@@ -1173,10 +1164,20 @@ var transfer = {
1173
1164
  "transfer.deposit.requested": "Deposit requested",
1174
1165
  "transfer.deposit.completed": "Deposit completed",
1175
1166
  "transfer.deposit.failed": "Deposit failed",
1167
+ "transfer.exclusiveDeposit.warning": "Only send {{token}} on {{network}} to this address. Sending other tokens, using other chains, or amounts below the minimum deposit will result in permanent loss of funds.",
1168
+ "transfer.exclusiveDeposit.selectFirst": "Select your network and token first",
1169
+ "transfer.exclusiveDeposit.selectNetwork": "Select network",
1170
+ "transfer.exclusiveDeposit.selectToken": "Select token",
1171
+ "transfer.exclusiveDeposit.minDeposit": "Min. deposit",
1172
+ "transfer.exclusiveDeposit.estimatedTime": "Estimated time",
1173
+ "transfer.exclusiveDeposit.estimatedTime.default": "~ 5 min",
1174
+ "transfer.exclusiveDeposit.depositPending": "Deposit pending: {{amount}} {{symbol}}",
1176
1175
  "transfer.deposit.feeUnavailable": "Fee data is currently unavailable. Please try again later.",
1177
1176
  "transfer.deposit.notEnoughGas": "Not enough gas. Add some {{token}} to your wallet to continue.",
1178
1177
  "transfer.deposit.exceedCap": "Amount exceeds user deposit cap",
1179
1178
  "transfer.deposit.closeToMaxLimit": "Deposit amount too close to maximum limit. To ensure your transaction succeeds, please reduce the amount",
1179
+ "transfer.deposit.tab.connectedWallet": "From connected wallet",
1180
+ "transfer.deposit.tab.exchangeOrOtherWallet": "From exchange / other wallet",
1180
1181
  "transfer.deposit.estGasFee": "Est. gas fee",
1181
1182
  "transfer.deposit.estGasFee.tooltip": "Estimated gas fee includes: transaction execution cost on this chain, and destination chain operation fee for Orderly deposit. Please prepare extra to ensure sufficient coverage.",
1182
1183
  "transfer.deposit.destinationGasFee": "Destination gas fee",
@@ -1285,7 +1286,9 @@ var ui = {
1285
1286
  "ui.messageCenter.tooltip": "Check recent announcements",
1286
1287
  "ui.pagination.morePages": "More pages",
1287
1288
  "ui.pagination.rowsPerPage": "Rows per page",
1288
- "ui.picker.selectDate": "Select Date"
1289
+ "ui.picker.selectDate": "Select Date",
1290
+ "ui.dialog.srOnly.title": "Dialog",
1291
+ "ui.sheet.srOnly.title": "Sheet"
1289
1292
  };
1290
1293
 
1291
1294
  // src/locale/module/vaults.ts
@@ -1431,10 +1434,10 @@ var en = {
1431
1434
  ...affiliate,
1432
1435
  ...ui,
1433
1436
  ...tradingLeaderboard,
1434
- ...tradingPoints,
1435
1437
  ...widget,
1436
1438
  ...vaults,
1437
- ...notification
1439
+ ...notification,
1440
+ ...navigation
1438
1441
  };
1439
1442
 
1440
1443
  // src/i18n.ts