diff --git a/app/(protected)/dashboard/settings/page.tsx b/app/(protected)/dashboard/settings/page.tsx
index 7d63c18..6f46dd7 100644
--- a/app/(protected)/dashboard/settings/page.tsx
+++ b/app/(protected)/dashboard/settings/page.tsx
@@ -22,7 +22,7 @@ export default async function SettingsPage() {
<>
diff --git a/app/(protected)/dashboard/urls/globe/realtime-chart.tsx b/app/(protected)/dashboard/urls/globe/realtime-chart.tsx
index c1fabd0..9d41f53 100644
--- a/app/(protected)/dashboard/urls/globe/realtime-chart.tsx
+++ b/app/(protected)/dashboard/urls/globe/realtime-chart.tsx
@@ -1,13 +1,7 @@
"use client";
-import {
- Bar,
- BarChart,
- ResponsiveContainer,
- Tooltip,
- XAxis,
- YAxis,
-} from "recharts";
+import { useTranslations } from "next-intl";
+import { Bar, BarChart, Tooltip, XAxis, YAxis } from "recharts";
import { cn } from "@/lib/utils";
import StatusDot from "@/components/dashboard/status-dot";
@@ -29,6 +23,7 @@ export const RealtimeChart = ({
chartData,
totalClicks,
}: RealtimeChartProps) => {
+ const t = useTranslations("Components");
const getTickInterval = (dataLength: number) => {
if (dataLength <= 6) return 0;
if (dataLength <= 12) return 1;
@@ -45,7 +40,7 @@ export const RealtimeChart = ({
-
Realtime Visits
+ {t("Realtime Visits")}
{totalClicks}
diff --git a/app/(protected)/dashboard/urls/live-logs.tsx b/app/(protected)/dashboard/urls/live-logs.tsx
index 606ab5f..7d8004c 100644
--- a/app/(protected)/dashboard/urls/live-logs.tsx
+++ b/app/(protected)/dashboard/urls/live-logs.tsx
@@ -3,6 +3,7 @@
import { useEffect, useRef, useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import { RefreshCwIcon } from "lucide-react";
+import { useTranslations } from "next-intl";
import { useTheme } from "next-themes";
import useSWR, { useSWRConfig } from "swr";
@@ -54,6 +55,8 @@ export default function LiveLog({ admin = false }: { admin?: boolean }) {
const [limitDiplay, setLimitDisplay] = useState(100);
const newLogsRef = useRef
>(new Set()); // Track new log keys
+ const t = useTranslations("Components");
+
const {
data: newLogs,
error,
@@ -151,10 +154,10 @@ export default function LiveLog({ admin = false }: { admin?: boolean }) {
- Live Log
+ {t("Live Logs")}
- Real-time logs of short link visits.
+ {t("Real-time logs of short link visits")}.
@@ -166,7 +169,8 @@ export default function LiveLog({ admin = false }: { admin?: boolean }) {
isLive ? "border-dashed border-blue-600 text-blue-500" : ""
}`}
>
-
{isLive ? "Stop" : "Live"}
+
{" "}
+ {isLive ? t("Stop") : t("Live")}