feat(api, agents, i18n): enhance settlement features and multi-language support

Added new types and API functions for settlement period summaries and credit ledgers, improving the management of agent settlements. Updated the admin console to reflect these changes, enhancing user experience with better navigation and data presentation. Additionally, expanded multi-language support by incorporating new translations in English, Nepali, and Chinese for settlement-related terms, ensuring consistency across the platform.
This commit is contained in:
2026-06-05 18:00:59 +08:00
parent 65eaeecf8c
commit af982bb9f7
73 changed files with 4307 additions and 2494 deletions

View File

@@ -0,0 +1,13 @@
/** 后台展示用站点名:优先中文名,不暴露内部 code。 */
export function formatAdminSiteLabel(
name?: string | null,
code?: string | null,
): string {
const trimmedName = name?.trim();
if (trimmedName) {
return trimmedName;
}
const trimmedCode = code?.trim();
return trimmedCode ?? "—";
}