Files
lotteryAdmin/src/lib/admin-site-display.ts
kang af982bb9f7 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.
2026-06-05 18:00:59 +08:00

14 lines
329 B
TypeScript

/** 后台展示用站点名:优先中文名,不暴露内部 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 ?? "—";
}