diff --git a/app/(protected)/admin/api-key-active-chart.tsx b/app/(protected)/admin/api-key-active-chart.tsx index dff71f3..0a70e14 100644 --- a/app/(protected)/admin/api-key-active-chart.tsx +++ b/app/(protected)/admin/api-key-active-chart.tsx @@ -1,6 +1,7 @@ "use client"; import { TrendingUp } from "lucide-react"; +import { useTranslations } from "next-intl"; import { Label, PolarGrid, @@ -29,6 +30,7 @@ export function RadialShapeChart({ total: number; totalUser: number; }) { + const t = useTranslations("Components"); const chartData = [ { browser: "safari", actived: total, fill: "var(--color-safari)" }, ]; @@ -94,7 +96,7 @@ export function RadialShapeChart({
- Cumulative proportion of activated Api Key users + {t("Activated Api Key users")}
diff --git a/app/(protected)/admin/domains/domain-list.tsx b/app/(protected)/admin/domains/domain-list.tsx index a076c60..88adc77 100644 --- a/app/(protected)/admin/domains/domain-list.tsx +++ b/app/(protected)/admin/domains/domain-list.tsx @@ -9,7 +9,7 @@ import { toast } from "sonner"; import useSWR, { useSWRConfig } from "swr"; import { DomainFormData } from "@/lib/dto/domains"; -import { fetcher, timeAgo } from "@/lib/utils"; +import { fetcher } from "@/lib/utils"; import { useMediaQuery } from "@/hooks/use-media-query"; import { Button } from "@/components/ui/button"; import { @@ -35,6 +35,7 @@ import { FormType } from "@/components/forms/record-form"; import { EmptyPlaceholder } from "@/components/shared/empty-placeholder"; import { Icons } from "@/components/shared/icons"; import { PaginationWrapper } from "@/components/shared/pagination"; +import { TimeAgoIntl } from "@/components/shared/time-ago"; export interface DomainListProps { user: Pick; @@ -291,7 +292,7 @@ export default function DomainList({ user, action }: DomainListProps) { /> - {timeAgo(domain.updatedAt as Date)} + @@ -580,7 +580,7 @@ export default function UserUrlsList({ user, action }: UrlListProps) { }} > - Edit URL + {t("Edit URL")} @@ -614,7 +614,7 @@ export default function UserUrlsList({ user, action }: UrlListProps) { > )} - {timeAgo(short.updatedAt as Date)} + ("users"); + const t = useTranslations("Components"); + const { data, isLoading } = useSWR<{ list: [ { @@ -110,8 +113,8 @@ export function InteractiveBarChart() {
- Data Increase - Showing data increase in: + {t("Data Increase")} + {t("Showing data increase in")}: