@orderly.network/i18n 2.12.0 → 2.12.1

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 (58) hide show
  1. package/README.md +27 -314
  2. package/bin/cli.js +92 -37
  3. package/dist/{constant-D_rlt5w0.d.mts → constant-DkvDyddr.d.mts} +12 -40
  4. package/dist/{constant-D_rlt5w0.d.ts → constant-DkvDyddr.d.ts} +12 -40
  5. package/dist/constant.d.mts +1 -1
  6. package/dist/constant.d.ts +1 -1
  7. package/dist/constant.js.map +1 -1
  8. package/dist/constant.mjs.map +1 -1
  9. package/dist/index.d.mts +84 -20
  10. package/dist/index.d.ts +84 -20
  11. package/dist/index.js +138 -107
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +129 -106
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/locale.csv +7 -105
  16. package/dist/locales/de.json +7 -37
  17. package/dist/locales/en.json +7 -37
  18. package/dist/locales/es.json +7 -37
  19. package/dist/locales/fr.json +7 -37
  20. package/dist/locales/id.json +7 -37
  21. package/dist/locales/it.json +7 -37
  22. package/dist/locales/ja.json +7 -37
  23. package/dist/locales/ko.json +7 -37
  24. package/dist/locales/nl.json +7 -37
  25. package/dist/locales/pl.json +7 -37
  26. package/dist/locales/pt.json +7 -37
  27. package/dist/locales/ru.json +7 -37
  28. package/dist/locales/tc.json +7 -37
  29. package/dist/locales/tr.json +7 -37
  30. package/dist/locales/uk.json +7 -37
  31. package/dist/locales/vi.json +7 -37
  32. package/dist/locales/zh.json +7 -37
  33. package/dist/utils.d.mts +1 -1
  34. package/dist/utils.d.ts +1 -1
  35. package/dist/utils.js +25 -50
  36. package/dist/utils.js.map +1 -1
  37. package/dist/utils.mjs +25 -50
  38. package/dist/utils.mjs.map +1 -1
  39. package/docs/guide/AGENTS.md +109 -0
  40. package/docs/guide/cli.md +133 -0
  41. package/docs/guide/examples.md +455 -0
  42. package/docs/guide/exports.md +14 -0
  43. package/docs/guide/integration.md +223 -0
  44. package/docs/guide/utils.md +14 -0
  45. package/package.json +13 -11
  46. package/{script → scripts}/copyLocales.js +1 -1
  47. package/scripts/filterLocaleKeys.js +127 -0
  48. package/{script → scripts}/generateCsv.js +3 -3
  49. package/{script → scripts}/utils.js +20 -14
  50. /package/{script → scripts}/csv2json.js +0 -0
  51. /package/{script → scripts}/diffCsv.js +0 -0
  52. /package/{script → scripts}/fillJson.js +0 -0
  53. /package/{script → scripts}/generateEnJson.js +0 -0
  54. /package/{script → scripts}/generateMissingKeys.js +0 -0
  55. /package/{script → scripts}/json-csv-converter.js +0 -0
  56. /package/{script → scripts}/json2csv.js +0 -0
  57. /package/{script → scripts}/mergeJson.js +0 -0
  58. /package/{script → scripts}/separateJson.js +0 -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.",
@@ -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",
@@ -471,6 +476,11 @@ var markets = {
471
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."
472
477
  };
473
478
 
479
+ // src/locale/module/navigation.ts
480
+ var navigation = {
481
+ "tradingPoints.points": "Points"
482
+ };
483
+
474
484
  // src/locale/module/notification.ts
475
485
  var notification = {
476
486
  // Announcement related keys
@@ -1072,46 +1082,6 @@ var tradingLeaderboard = {
1072
1082
  "tradingLeaderboard.tradingVolume.tooltip": "Total trading volume generated during the campaign period. Updated every 30 seconds."
1073
1083
  };
1074
1084
 
1075
- // src/locale/module/tradingPoints.ts
1076
- var tradingPoints = {
1077
- "tradingPoints.points": "Points",
1078
- "tradingPoints.startsIn": "Starts in",
1079
- "tradingPoints.days": "Days",
1080
- "tradingPoints.hours": "Hours",
1081
- "tradingPoints.minutes": "Minutes",
1082
- "tradingPoints.seconds": "Seconds",
1083
- "tradingPoints.learnMore": "Learn more",
1084
- "tradingPoints.stagePoints": "Stage points",
1085
- "tradingPoints.stageRanking": "Stage ranking",
1086
- "tradingPoints.referralCode": "Referral code",
1087
- "tradingPoints.referralLink": "Referral link",
1088
- "tradingPoints.currentPoints": "Current points",
1089
- "tradingPoints.ranking": "Ranking",
1090
- "tradingPoints.myPoints": "My points",
1091
- "tradingPoints.thisWeek": "This week",
1092
- "tradingPoints.lastWeek": "Last week",
1093
- "tradingPoints.all": "All",
1094
- "tradingPoints.tradePoints": "Trade points",
1095
- "tradingPoints.tradePointsTooltip": "Trade Points are calculated based on your perps trading volume.Updated daily.",
1096
- "tradingPoints.tradeNow": "Trade now",
1097
- "tradingPoints.pnlPoints": "PNL points",
1098
- "tradingPoints.pnlPointsTooltip": "Both profit or loss of each trade will be recorded. Updated daily.",
1099
- "tradingPoints.referralPoints": "Referral points",
1100
- "tradingPoints.referralPointsTooltip": "First-level invitee's rebates: {{l1}}%, Second-level invitee's rebates: {{l2}}%, Update daily.",
1101
- "tradingPoints.copyLink": "Copy Link",
1102
- "tradingPoints.faq.title": "FAQ",
1103
- "tradingPoints.faq.whatArePoints.question": "What are Points?",
1104
- "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.",
1105
- "tradingPoints.faq.allocation.question": "What is the points allocation criteria?",
1106
- "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",
1107
- "tradingPoints.faq.distribution.question": "When will points be distributed?",
1108
- "tradingPoints.faq.distribution.answer": "Points are distributed at 08:00 UTC everyday.",
1109
- "tradingPoints.faq.pnl.question": "How are PNL points calculated?",
1110
- "tradingPoints.faq.pnl.answer": "Points are based on your net profit or loss each trading.",
1111
- "tradingPoints.faq.referral.question": "How does the referral work?",
1112
- "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."
1113
- };
1114
-
1115
1085
  // src/locale/module/tradingRewards.ts
1116
1086
  var tradingRewards = {
1117
1087
  "tradingRewards.rewards": "Rewards",
@@ -1456,10 +1426,10 @@ var en = {
1456
1426
  ...affiliate,
1457
1427
  ...ui,
1458
1428
  ...tradingLeaderboard,
1459
- ...tradingPoints,
1460
1429
  ...widget,
1461
1430
  ...vaults,
1462
- ...notification
1431
+ ...notification,
1432
+ ...navigation
1463
1433
  };
1464
1434
 
1465
1435
  // src/i18n.ts
@@ -1471,15 +1441,20 @@ var languageDetector = new LanguageDetector(null, {
1471
1441
  lookupCookie: i18nCookieKey,
1472
1442
  caches: ["localStorage", "cookie"]
1473
1443
  });
1474
- var i18n = createInstance({
1475
- // lng: defaultLng,
1476
- fallbackLng: defaultLng,
1477
- // debug: true,
1478
- interpolation: {
1479
- escapeValue: false
1480
- },
1444
+ function createI18nInstance(options) {
1445
+ return createInstance({
1446
+ // lng: defaultLng,
1447
+ fallbackLng: defaultLng,
1448
+ // debug: true,
1449
+ interpolation: {
1450
+ escapeValue: false
1451
+ },
1452
+ ...options
1453
+ }).use(languageDetector);
1454
+ }
1455
+ var i18n = createI18nInstance({
1481
1456
  resources
1482
- }).use(languageDetector);
1457
+ });
1483
1458
  i18n.init();
1484
1459
  var i18n_default = i18n;
1485
1460