diff --git a/src/components/DomainStatus.tsx b/src/components/DomainStatus.tsx index d3ab5b2..923fe2d 100644 --- a/src/components/DomainStatus.tsx +++ b/src/components/DomainStatus.tsx @@ -1,15 +1,11 @@ -// src/components/DomainStatus.tsx (最终完整版) - import { useQuery } from '@tanstack/react-query'; import { getDomains, Domain } from '@/api/domain'; import { CalendarDays, DollarSign } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useEffect, useState } from 'react'; +import { useTranslation } from 'react-i18next'; import RemainPercentBar from "./RemainPercentBar"; -// ======================================================= -// 彩色备注标签组件 -// ======================================================= const DomainNoteTags = ({ notes }: { notes?: string }) => { if (!notes) { return null; @@ -42,11 +38,8 @@ const DomainNoteTags = ({ notes }: { notes?: string }) => { ); }; - -// ======================================================= -// 行内模式卡片 (Inline Mode Card) -// ======================================================= const DomainCardInline = ({ domain }: { domain: Domain }) => { + const { t } = useTranslation(); const expiresIn = domain.expires_in_days; const billingData = domain.BillingData || {}; const customBackgroundImage = (window as any).CustomBackgroundImage !== "" ? (window as any).CustomBackgroundImage : undefined; @@ -75,13 +68,13 @@ const DomainCardInline = ({ domain }: { domain: Domain }) => { {billingData.registrar || 'N/A'}
总域名数
+{t("serverOverview.totalDomains")}