@orderly.network/i18n 3.0.0-beta.0 → 3.0.0-beta.2

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-DkvDyddr.d.mts} +37 -40
  3. package/dist/{constant-BeXwHrGj.d.ts → constant-DkvDyddr.d.ts} +37 -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 +69 -30
  9. package/dist/index.d.ts +69 -30
  10. package/dist/index.js +140 -118
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +132 -115
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/locale.csv +33 -106
  15. package/dist/locales/de.json +33 -38
  16. package/dist/locales/en.json +33 -38
  17. package/dist/locales/es.json +33 -38
  18. package/dist/locales/fr.json +33 -38
  19. package/dist/locales/id.json +33 -38
  20. package/dist/locales/it.json +33 -38
  21. package/dist/locales/ja.json +33 -38
  22. package/dist/locales/ko.json +33 -38
  23. package/dist/locales/nl.json +33 -38
  24. package/dist/locales/pl.json +33 -38
  25. package/dist/locales/pt.json +33 -38
  26. package/dist/locales/ru.json +33 -38
  27. package/dist/locales/tc.json +33 -38
  28. package/dist/locales/tr.json +33 -38
  29. package/dist/locales/uk.json +33 -38
  30. package/dist/locales/vi.json +33 -38
  31. package/dist/locales/zh.json +33 -38
  32. package/dist/utils.d.mts +1 -1
  33. package/dist/utils.d.ts +1 -1
  34. package/dist/utils.js +40 -45
  35. package/dist/utils.js.map +1 -1
  36. package/dist/utils.mjs +40 -45
  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",
@@ -417,6 +422,7 @@ var markets = {
417
422
  "markets.favorites": "Favorites",
418
423
  "markets.recent": "Recent",
419
424
  "markets.newListings": "New listings",
425
+ "markets.community": "Community",
420
426
  "markets.allMarkets": "All markets",
421
427
  "markets.openInterest": "Open interest",
422
428
  "markets.openInterest.tooltip": "Total size of positions per side.",
@@ -466,7 +472,13 @@ var markets = {
466
472
  "markets.symbolInfoBar.24hVolume": "24h volume",
467
473
  "markets.symbolInfoBar.24hVolume.tooltip": "24 hour total trading volume on the Orderly Network.",
468
474
  "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."
475
+ "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.",
476
+ "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."
477
+ };
478
+
479
+ // src/locale/module/navigation.ts
480
+ var navigation = {
481
+ "tradingPoints.points": "Points"
470
482
  };
471
483
 
472
484
  // src/locale/module/notification.ts
@@ -511,6 +523,7 @@ var orderEntry = {
511
523
  "orderEntry.orderType.ioc.tooltip": "Executes immediately; any unfilled amount is canceled.",
512
524
  "orderEntry.orderType.fok": "FOK",
513
525
  "orderEntry.orderType.fok.tooltip": "Executes immediately in full, or is canceled entirely.",
526
+ "orderEntry.orderType.symbolPostOnly.tooltip": "This symbol is in POST_ONLY mode. Only limit orders are accepted until the order book is ready.",
514
527
  "orderEntry.orderType.scaledOrder": "Scaled",
515
528
  "orderEntry.orderType.trailingStop": "Trailing stop",
516
529
  "orderEntry.orderSize": "Order size",
@@ -583,10 +596,13 @@ var orderEntry = {
583
596
  "marginMode.current": "Current",
584
597
  "marginMode.marginModeSettings": "Margin mode settings",
585
598
  "marginMode.updatedSuccessfully": "Updated successfully",
599
+ "marginMode.noEditableSymbolsSelected": "No editable symbols selected",
600
+ "marginMode.failedToUpdateMarginMode": "Failed to update margin mode",
586
601
  "marginMode.perpetualFutures": "Perpetual futures",
587
602
  "marginMode.searchPlaceholder": "Search",
588
603
  "marginMode.selectAll": "Select all",
589
604
  "marginMode.setAs": "Set as",
605
+ "marginMode.disabledSymbolTooltip": "This symbol is independently operated by a third party. Isolated Margin is enforced to prevent risk from affecting your other positions.",
590
606
  "orderEntry.startPrice.error.required": "Start price is required",
591
607
  "orderEntry.startPrice.error.min": "Start price must be greater than {{value}}",
592
608
  "orderEntry.startPrice.error.max": "Start price must be less than {{value}}",
@@ -615,7 +631,12 @@ var orderEntry = {
615
631
  "orderEntry.reduceOnly.reminder": "Reduce-only reminder",
616
632
  "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
633
  "orderEntry.placeOrderNow": "Place order now",
618
- "orderEntry.maxQty.reminder.content": "Order qty reduced to max available: {{maxQty}}"
634
+ "orderEntry.maxQty.reminder.content": "Order qty reduced to max available: {{maxQty}}",
635
+ "orderEntry.permissionlessNotice.title": "Community-Listed Market Notice",
636
+ "orderEntry.permissionlessNotice.content1": "This market was listed by a third-party deployer through the permissionless listing system.",
637
+ "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.",
638
+ "orderEntry.permissionlessNotice.content3": "Please review the deployer's documentation and trade at your own risk.",
639
+ "orderEntry.permissionlessNotice.checkbox": "I understand this is a community-listed market and accept the risks."
619
640
  };
620
641
 
621
642
  // src/locale/module/orders.ts
@@ -682,6 +703,8 @@ var portfolio = {
682
703
  "portfolio.overview.performance.cumulativePnl": "Cumulative PnL",
683
704
  "portfolio.overview.performance.dailyVolume": "Daily Volume",
684
705
  "portfolio.overview.performance.cumulativeVolume": "Cumulative Volume",
706
+ "portfolio.overview.todaysPnl": "Today's PnL",
707
+ "portfolio.overview.todaysVol": "Today's Vol",
685
708
  "portfolio.overview.distribution": "Distribution",
686
709
  "portfolio.overview.transferHistory": "Transfer history",
687
710
  "portfolio.overview.vaults": "Vaults",
@@ -1015,6 +1038,7 @@ var trading = {
1015
1038
  "trading.rwa.tooltip.openIn": "Regular trading hours will open in <0>{{timeFormat}}</0>",
1016
1039
  "trading.rwa.tooltip.checkDetailRules": "Check detail rules",
1017
1040
  "trading.rwa.countdown.title": "US markets are closing soon, volatility may be lower.",
1041
+ "trading.symbolDelisting": "{{symbol}} has entered forced deleveraging mode (insufficient liquidity depth / insufficient IF balance). Your position on this symbol only allows closing operations.",
1018
1042
  "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
1043
  "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
1044
  "trading.rwa.mWeb.insideMarketHours.desc": "Regular trading hours are about to open - get ready."
@@ -1058,46 +1082,6 @@ var tradingLeaderboard = {
1058
1082
  "tradingLeaderboard.tradingVolume.tooltip": "Total trading volume generated during the campaign period. Updated every 30 seconds."
1059
1083
  };
1060
1084
 
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
1085
  // src/locale/module/tradingRewards.ts
1102
1086
  var tradingRewards = {
1103
1087
  "tradingRewards.rewards": "Rewards",
@@ -1151,6 +1135,7 @@ var tradingView = {
1151
1135
  "tradingView.displayControl.buySell": "Buy/Sell",
1152
1136
  "tradingView.displayControl.limitOrders": "Limit orders",
1153
1137
  "tradingView.displayControl.stopOrders": "Stop orders",
1138
+ "tradingView.displayControl.liquidationPrice": "Liquidation Price",
1154
1139
  "tradingView.noScriptSrc": "Due to TradingView's policy, you will need to apply for your own license.",
1155
1140
  "tradingView.noScriptSrc.1": "1. Please apply for your TradingView Advanced Chart license <0>here</0>",
1156
1141
  "tradingView.noScriptSrc.2": "2. Follow the instructions on <0>orderly.network</0> to set up."
@@ -1173,10 +1158,20 @@ var transfer = {
1173
1158
  "transfer.deposit.requested": "Deposit requested",
1174
1159
  "transfer.deposit.completed": "Deposit completed",
1175
1160
  "transfer.deposit.failed": "Deposit failed",
1161
+ "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.",
1162
+ "transfer.exclusiveDeposit.selectFirst": "Select your network and token first",
1163
+ "transfer.exclusiveDeposit.selectNetwork": "Select network",
1164
+ "transfer.exclusiveDeposit.selectToken": "Select token",
1165
+ "transfer.exclusiveDeposit.minDeposit": "Min. deposit",
1166
+ "transfer.exclusiveDeposit.estimatedTime": "Estimated time",
1167
+ "transfer.exclusiveDeposit.estimatedTime.default": "~ 5 min",
1168
+ "transfer.exclusiveDeposit.depositPending": "Deposit pending: {{amount}} {{symbol}}",
1176
1169
  "transfer.deposit.feeUnavailable": "Fee data is currently unavailable. Please try again later.",
1177
1170
  "transfer.deposit.notEnoughGas": "Not enough gas. Add some {{token}} to your wallet to continue.",
1178
1171
  "transfer.deposit.exceedCap": "Amount exceeds user deposit cap",
1179
1172
  "transfer.deposit.closeToMaxLimit": "Deposit amount too close to maximum limit. To ensure your transaction succeeds, please reduce the amount",
1173
+ "transfer.deposit.tab.connectedWallet": "From connected wallet",
1174
+ "transfer.deposit.tab.exchangeOrOtherWallet": "From exchange / other wallet",
1180
1175
  "transfer.deposit.estGasFee": "Est. gas fee",
1181
1176
  "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
1177
  "transfer.deposit.destinationGasFee": "Destination gas fee",
@@ -1431,10 +1426,10 @@ var en = {
1431
1426
  ...affiliate,
1432
1427
  ...ui,
1433
1428
  ...tradingLeaderboard,
1434
- ...tradingPoints,
1435
1429
  ...widget,
1436
1430
  ...vaults,
1437
- ...notification
1431
+ ...notification,
1432
+ ...navigation
1438
1433
  };
1439
1434
 
1440
1435
  // src/i18n.ts