feat(agents, i18n): enhance agent management and settlement features with new translations and UI updates
Added new translations for agent management and settlement features in English, Nepali, and Chinese, improving multi-language support. Updated the agents console to reflect changes in funding modes and player details, enhancing user experience. Refactored the admin permission gate to include new logic for handling bound line agents, ensuring better permission management. Additionally, streamlined the UI for agent-related pages and improved navigation to the settlement center, consolidating related functionalities for better accessibility.
This commit is contained in:
@@ -1,15 +1,42 @@
|
||||
{
|
||||
"title": "Agent lines",
|
||||
"sitesTitle": "Sites",
|
||||
"sitesListHint": "For the full site table (keys, callbacks, etc.), go to",
|
||||
"sitesListLink": "Sites",
|
||||
"title": "Agent management",
|
||||
"sitesListHint": "For integration keys and callbacks, go to",
|
||||
"sitesListLink": "Config · Connected sites",
|
||||
"lineUi": {
|
||||
"kicker": "Credit share · Agent tree",
|
||||
"agentCount": "{{count}} agents in this group",
|
||||
"searchPlaceholder": "Search name or login",
|
||||
"directChildren": "{{count}} direct downline",
|
||||
"selectAgent": "Select an agent to view share & credit",
|
||||
"selectAgentHint": "Settlement boundaries follow the agent tree; share, credit and rebate are configured per node.",
|
||||
"allocatedCredit": "Allocated",
|
||||
"availableCredit": "Available",
|
||||
"profileFootnote": "Rebate cap {{rebate}}% · Default {{defaultRebate}}% · {{cycle}}",
|
||||
"tabOverview": "Overview",
|
||||
"tabProfile": "Share & credit",
|
||||
"tabProfileReadOnly": "Share & credit (read-only)",
|
||||
"currentSite": "Site",
|
||||
"viewAll": "View all",
|
||||
"shareRebateCap": "Rebate cap {{rate}}%",
|
||||
"overviewDownlineCard": "{{count}} direct downline — manage in the Downline tab.",
|
||||
"downlineEmptyTitle": "No direct downline yet",
|
||||
"editAccount": "Account & status",
|
||||
"saveProfile": "Save share & credit",
|
||||
"tabDownline": "Downline",
|
||||
"tabPlayers": "Players",
|
||||
"noDelegatedTabs": "This agent cannot create downline agents or players; only share and credit settings apply."
|
||||
},
|
||||
"listTitle": "Agents",
|
||||
"listSearch": "Search name / code / login",
|
||||
"parentAgent": "Parent",
|
||||
"childrenCount": "Direct downline",
|
||||
"subnav": {
|
||||
"label": "Agent line navigation",
|
||||
"label": "Agent management navigation",
|
||||
"noPermission": "No permission",
|
||||
"operations": "Operations",
|
||||
"provision": "Provision line",
|
||||
"sites": "Sites",
|
||||
"settlementBills": "Agent bills"
|
||||
"operations": "Line & agent tree",
|
||||
"provision": "Provision level-1 agent",
|
||||
"settlementBills": "Periods & bills",
|
||||
"provisionHint": "One-time onboarding; use Line & agent tree for daily work"
|
||||
},
|
||||
"includeRoots": "Include root nodes",
|
||||
"includeRootsHint": "Root nodes represent site boundaries and are excluded from operating agent counts by default.",
|
||||
@@ -35,7 +62,7 @@
|
||||
"detailTitle": "Node details",
|
||||
"selectNode": "Select an agent node from the tree",
|
||||
"loadFailed": "Failed to load agent tree",
|
||||
"siteLabel": "Site",
|
||||
"lineFilter": "Level-1 agent",
|
||||
"createChild": "Add child agent",
|
||||
"viewDownline": "View sub-agents and players",
|
||||
"downlineDialogTitle": "{{name}} — sub-agents and players",
|
||||
@@ -86,8 +113,8 @@
|
||||
"section": "Share & credit",
|
||||
"totalShareRate": "Share rate (%)",
|
||||
"creditLimit": "Credit limit",
|
||||
"rebateLimit": "Rebate ceiling",
|
||||
"defaultPlayerRebate": "Default player rebate",
|
||||
"rebateLimit": "Rebate ceiling (%)",
|
||||
"defaultPlayerRebate": "Default player rebate (%)",
|
||||
"settlementCycle": "Settlement cycle",
|
||||
"canGrantExtraRebate": "Allow extra rebate",
|
||||
"canCreatePlayer": "Allow creating players",
|
||||
@@ -101,41 +128,72 @@
|
||||
"validation": {
|
||||
"shareRange": "Share rate must be between 0 and 100",
|
||||
"creditInvalid": "Credit limit cannot be negative",
|
||||
"rebateLimitRange": "Rebate ceiling must be between 0 and 1 (e.g. 0.005 = 0.5%)",
|
||||
"defaultRebateRange": "Default player rebate must be between 0 and 1",
|
||||
"rebateLimitRange": "Rebate ceiling must be between 0 and 100%",
|
||||
"defaultRebateRange": "Default player rebate must be between 0 and 100%",
|
||||
"defaultExceedsLimit": "Default player rebate cannot exceed the rebate ceiling"
|
||||
}
|
||||
},
|
||||
"settlementBills": {
|
||||
"title": "Agent bills",
|
||||
"description": "Player/agent bills generated after a period is closed",
|
||||
"description": "Bills appear after a period is closed; latest period is selected by default.",
|
||||
"periodLabel": "Period",
|
||||
"periodPlaceholder": "Select period",
|
||||
"allPeriods": "All periods",
|
||||
"filteredByPeriodRange": "Bills for {{range}}",
|
||||
"emptyNoPeriodsManage": "No periods or bills yet. Use quick presets under Period management, then close the period.",
|
||||
"emptyNoPeriodsAgent": "No bills yet. Your upline or platform will close periods; you do not need to enter dates.",
|
||||
"emptyNoClosed": "No closed period yet. Bills are generated after close.",
|
||||
"typePlayer": "Player bill",
|
||||
"typeAgent": "Agent bill",
|
||||
"columns": {
|
||||
"id": "ID",
|
||||
"period": "Period",
|
||||
"type": "Type",
|
||||
"net": "Net",
|
||||
"unpaid": "Unpaid",
|
||||
"status": "Status"
|
||||
}
|
||||
},
|
||||
"settlementPeriods": {
|
||||
"manageTitle": "Period management",
|
||||
"manageHint": "Open and close periods here; bills above update automatically. Quick presets are usually enough.",
|
||||
"presetThisWeek": "This week",
|
||||
"presetLastWeek": "Last week",
|
||||
"presetThisMonth": "This month",
|
||||
"statusOpen": "Open",
|
||||
"statusClosed": "Closed"
|
||||
},
|
||||
"lineProvision": {
|
||||
"title": "Provision agent line",
|
||||
"description": "Creates site, root agent, and admin account in one step (site_code matches agent code).",
|
||||
"code": "Site code",
|
||||
"name": "Line name",
|
||||
"username": "Agent login",
|
||||
"title": "Create level-1 agent",
|
||||
"description": "Creates the level-1 agent, admin login, and line settings (share, credit, rebate, settlement cycle) in one step. Code cannot be changed later.",
|
||||
"code": "Agent code",
|
||||
"name": "Level-1 agent name",
|
||||
"username": "Admin login",
|
||||
"password": "Initial password",
|
||||
"walletUrl": "Wallet API URL",
|
||||
"submit": "Provision",
|
||||
"success": "Line provisioned",
|
||||
"secretsOnce": "Secrets are shown once — save them now",
|
||||
"link": "Provision line"
|
||||
"walletUrl": "Wallet API URL (optional technical field)",
|
||||
"submit": "Create level-1 agent",
|
||||
"success": "Level-1 agent created",
|
||||
"secretsOnce": "Integration secrets are shown once — save them now",
|
||||
"link": "Create level-1 agent"
|
||||
},
|
||||
"noAccess": "You do not have permission to manage agents. Contact an administrator.",
|
||||
"playersPanel": {
|
||||
"create": "Create player",
|
||||
"scopedTo": "Direct players: {{agent}}",
|
||||
"allUnderSite": "Players visible on this site",
|
||||
"filterHint": "Filter direct players by parent agent."
|
||||
"filterHint": "Filter direct players by parent agent.",
|
||||
"loginRequired": "Enter login username and initial password",
|
||||
"loginUsername": "Login username",
|
||||
"initialPassword": "Initial password",
|
||||
"externalIdOptional": "External ID (optional)",
|
||||
"externalIdHint": "Leave blank to auto-generate",
|
||||
"creditLimit": "Credit limit",
|
||||
"rebateRate": "Rebate rate (%)",
|
||||
"rebateRateHint": "Enter percent, e.g. 0.5 = 0.5%",
|
||||
"availableToGrant": "Agent available to grant: {{amount}}",
|
||||
"riskTags": "Risk tags",
|
||||
"riskTagsPlaceholder": "Comma-separated",
|
||||
"createSuccessNative": "Player {{name}} created — use lottery /login"
|
||||
},
|
||||
"delegation": {
|
||||
"title": "Delegation ceiling",
|
||||
|
||||
Reference in New Issue
Block a user